Skip to content

Commit

Permalink
L3debug (#817)
Browse files Browse the repository at this point in the history
* Fix future l3debug error on \prop_gclear:c

* Update test files with TL'22 LuaTeX primitives

* changes.txt

* Revert "Update test files with TL'22 LuaTeX primitives"

This reverts commit e4ca1f9
because GH actions is still on TL 2021

* Only clear if the prop exists

* Third time's the charm

* add a test

Co-authored-by: Frank Mittelbach <frank.mittelbach@latex-project.org>
  • Loading branch information
PhelypeOleinik and FrankMittelbach committed May 19, 2022
1 parent 0dceaa6 commit 6ed8c29
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 8 deletions.
6 changes: 6 additions & 0 deletions base/changes.txt
Expand Up @@ -5,11 +5,17 @@ It is provided for convenience only. It therefore makes no claims to
completeness or accuracy and it contains some references to files that
are not part of the distribution.
================================================================================

2022-05-17 Ulrike Fischer <Ulrike.Fischer@latex-project.org>

* ltmeta.dtx:
Added dummy definitions for target commands.

2022-05-13 Phelype Oleinik <phelype.oleinik@latex-project.org>

* lthooks.dtx (subsection{Using the hook}):
Avoid l3debug error on an undeclared variable in \hook_use_once:nnn.

2022-05-08 Marcel Krüger <Marcel.Krueger@latex-project.org>

* utf8ienc.dtx:
Expand Down
4 changes: 2 additions & 2 deletions base/ltdefns.dtx
Expand Up @@ -32,7 +32,7 @@
%<*driver>
% \fi
\ProvidesFile{ltdefns.dtx}
[2021/06/04 v1.5q LaTeX Kernel (definition commands)]
[2022/05/13 v1.5q LaTeX Kernel (definition commands)]
% \iffalse
\documentclass{ltxdoc}
\GetFileInfo{ltdefns.dtx}
Expand Down Expand Up @@ -1601,7 +1601,7 @@
% But more importantly, the most common use case of copying a command is to
% redefine it later, while preserving the old definition, as in:
% \begin{verbatim}
% \ProvideComandCopy \A \B
% \ProvideCommandCopy \A \B
% \renewcommand \B { ... \A ... }
% \end{verbatim}
% then, if \verb=\A= is already defined the first line is skipped, an in this
Expand Down
8 changes: 4 additions & 4 deletions base/lthooks.dtx
Expand Up @@ -31,8 +31,8 @@
%%% From File: lthooks.dtx
%
% \begin{macrocode}
\def\lthooksversion{v1.0t}
\def\lthooksdate{2022/04/14}
\def\lthooksversion{v1.0u}
\def\lthooksdate{2022/05/13}
% \end{macrocode}
%
%<*driver>
Expand Down Expand Up @@ -2196,7 +2196,6 @@
% \end{macro}
%
%
%
% \subsection{Providing new hooks}
%
% \subsubsection{The data structures of a hook}
Expand Down Expand Up @@ -4850,6 +4849,7 @@
% clears the hook so that any further call to \cs{hook_use:n} or
% \cs{hook_use_once:n} will expand to nothing.
% \changes{v1.0r}{2021/09/06}{Clean up after \cs{UseOneTimeHook} (gh/606)}
% \changes{v1.0u}{2022/05/13}{Check if prop exists to avoid l3debug error}
% \begin{macrocode}
\cs_new_protected:Npn \@@_use_once_set:n #1
{ \@@_tl_gset:cn { g_@@_#1_reversed_tl } { I } }
Expand All @@ -4858,7 +4858,7 @@
\@@_tl_gclear:c { @@~#1 }
\@@_tl_gclear:c { @@_next~#1 }
\@@_tl_gclear:c { @@_toplevel~#1 }
\prop_gclear:c { g_@@_#1_code_prop }
\prop_gclear_new:c { g_@@_#1_code_prop }
}
% \end{macrocode}
% \end{macro}
Expand Down
4 changes: 2 additions & 2 deletions base/ltpara.dtx
Expand Up @@ -15,7 +15,7 @@
%
% \begin{macrocode}
\def\ltparaversion{v1.0k}
\def\ltparadate{2021/11/11}
\def\ltparadate{2022/05/13}
% \end{macrocode}
%<*driver>
\documentclass{l3doc}
Expand Down Expand Up @@ -484,7 +484,7 @@
%
% To avoid issues a paragraph started by them should always be
% ended by \cs{RawParEnd}\footnote{Technical note for those who
% know their \textit{\TeX book\/}: the \cs{RawParEnd} comand
% know their \textit{\TeX book\/}: the \cs{RawParEnd} command
% invokes the original \TeX{} engine definition of \cs{par} that
% (soley) triggers the paragraph builder in \TeX{} when found
% inside unrestricted horizontal mode and does nothing in other
Expand Down
18 changes: 18 additions & 0 deletions base/testfiles-lthooks/lthooks-032.lvt
@@ -0,0 +1,18 @@

\RequirePackage[enable-debug]{expl3}
\ExplSyntaxOn
\debug_on:n { check-declarations , deprecation }
\ExplSyntaxOff

\documentclass{article}

\input{regression-test}


\usepackage{tracefnt}

\START

\AddToHook{package/tracefnt/after}{\typeout{-> Too late so execute directly, but no error!}}

\END
3 changes: 3 additions & 0 deletions base/testfiles-lthooks/lthooks-032.tlg
@@ -0,0 +1,3 @@
This is a generated file for the l3build validation system.
Don't change this file in any respect.
-> Too late so execute directly, but no error!

0 comments on commit 6ed8c29

Please sign in to comment.