Skip to content

Commit

Permalink
Merge branch 'develop' into gh818
Browse files Browse the repository at this point in the history
# Conflicts:
#	base/changes.txt
#	base/lthooks.dtx
  • Loading branch information
FrankMittelbach committed May 19, 2022
2 parents f27392b + 6ed8c29 commit 2009137
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 6 deletions.
5 changes: 5 additions & 0 deletions base/changes.txt
Expand Up @@ -16,6 +16,11 @@ are not part of the distribution.
* 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
4 changes: 2 additions & 2 deletions base/lthooks.dtx
Expand Up @@ -2196,7 +2196,6 @@
% \end{macro}
%
%
%
% \subsection{Providing new hooks}
%
% \subsubsection{The data structures of a hook}
Expand Down Expand Up @@ -4893,6 +4892,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 @@ -4901,7 +4901,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!
1 change: 1 addition & 0 deletions base/update-lthooks-tests.sh
Expand Up @@ -86,6 +86,7 @@ l3build save -cconfig-lthooks \
lthooks-029-deprecated \
lthooks-030 \
lthooks-031 \
lthooks-032 \
lthooks-errors \
lthooks-errors-deprecated \
lthooks-etoolbox \
Expand Down

0 comments on commit 2009137

Please sign in to comment.