[latex3-commits] [git/LaTeX3-latex3-latex2e] develop, gh818: L3debug (#817) (6ed8c299)

GitHub noreply at github.com
Thu May 19 10:20:51 CEST 2022


Repository : https://github.com/latex3/latex2e
On branches: develop,gh818
Link       : https://github.com/latex3/latex2e/commit/6ed8c299844183c1eac641f54cc382ac0dee8038

>---------------------------------------------------------------

commit 6ed8c299844183c1eac641f54cc382ac0dee8038
Author: Phelype Oleinik <phelype.oleinik at latex-project.org>
Date:   Thu May 19 05:20:51 2022 -0300

    L3debug (#817)
    
    * 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 e4ca1f93d2c9b68e8761c4b5afd4240a8f30b608
    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 at latex-project.org>


>---------------------------------------------------------------

6ed8c299844183c1eac641f54cc382ac0dee8038
 base/changes.txt                                                  | 6 ++++++
 base/ltdefns.dtx                                                  | 4 ++--
 base/lthooks.dtx                                                  | 8 ++++----
 base/ltpara.dtx                                                   | 4 ++--
 base/testfiles-lthooks/{shipout-000.lvt => lthooks-032.lvt}       | 5 +++--
 .../tlb-dox013.tlg => testfiles-lthooks/lthooks-032.tlg}          | 2 +-
 6 files changed, 18 insertions(+), 11 deletions(-)

diff --git a/base/changes.txt b/base/changes.txt
index 4a77d73c..4bd004b7 100644
--- a/base/changes.txt
+++ b/base/changes.txt
@@ -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 at latex-project.org>
 
 	* ltmeta.dtx:
 	Added dummy definitions for target commands.
 
+2022-05-13  Phelype Oleinik  <phelype.oleinik at 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 at latex-project.org>
 
   * utf8ienc.dtx:
diff --git a/base/ltdefns.dtx b/base/ltdefns.dtx
index 3a92e827..9e1fa43f 100644
--- a/base/ltdefns.dtx
+++ b/base/ltdefns.dtx
@@ -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}
@@ -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
diff --git a/base/lthooks.dtx b/base/lthooks.dtx
index 806189ee..eff44672 100644
--- a/base/lthooks.dtx
+++ b/base/lthooks.dtx
@@ -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>
@@ -2196,7 +2196,6 @@
 % \end{macro}
 %
 %
-%
 % \subsection{Providing new hooks}
 %
 % \subsubsection{The data structures of a hook}
@@ -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 } }
@@ -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}
diff --git a/base/ltpara.dtx b/base/ltpara.dtx
index 36d07337..9296f2b2 100644
--- a/base/ltpara.dtx
+++ b/base/ltpara.dtx
@@ -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}
@@ -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
diff --git a/base/testfiles-lthooks/shipout-000.lvt b/base/testfiles-lthooks/lthooks-032.lvt
similarity index 61%
copy from base/testfiles-lthooks/shipout-000.lvt
copy to base/testfiles-lthooks/lthooks-032.lvt
index bd2bda8d..ddf5baf0 100644
--- a/base/testfiles-lthooks/shipout-000.lvt
+++ b/base/testfiles-lthooks/lthooks-032.lvt
@@ -1,4 +1,3 @@
-% testing atbegshi and evershi inclusion
 
 \RequirePackage[enable-debug]{expl3}
 \ExplSyntaxOn
@@ -10,8 +9,10 @@
 \input{regression-test}
 
 
+\usepackage{tracefnt}
+
 \START
 
-\usepackage{atbegshi}
+\AddToHook{package/tracefnt/after}{\typeout{-> Too late so execute directly, but no error!}}
 
 \END
diff --git a/base/testfiles-doc/tlb-dox013.tlg b/base/testfiles-lthooks/lthooks-032.tlg
similarity index 67%
copy from base/testfiles-doc/tlb-dox013.tlg
copy to base/testfiles-lthooks/lthooks-032.tlg
index 0762c44d..ecb9ae51 100644
--- a/base/testfiles-doc/tlb-dox013.tlg
+++ b/base/testfiles-lthooks/lthooks-032.tlg
@@ -1,3 +1,3 @@
 This is a generated file for the l3build validation system.
 Don't change this file in any respect.
----- Start of checking ----
+-> Too late so execute directly, but no error!





More information about the latex3-commits mailing list.