[latex3-commits] [git/LaTeX3-latex3-latex2e] apdf161: Safer approach on delimited \@@_use_undefined:w (a83740f8)

PhelypeOleinik phelype.oleinik at latex-project.org
Thu Sep 10 15:31:59 CEST 2020


Repository : https://github.com/latex3/latex2e
On branch  : apdf161
Link       : https://github.com/latex3/latex2e/commit/a83740f8df33c86b3062ecdb25fd58f835fa7243

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

commit a83740f8df33c86b3062ecdb25fd58f835fa7243
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date:   Thu Sep 10 10:31:59 2020 -0300

    Safer approach on delimited \@@_use_undefined:w


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

a83740f8df33c86b3062ecdb25fd58f835fa7243
 base/lthooks.dtx | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/base/lthooks.dtx b/base/lthooks.dtx
index bced70ee..af59ff8e 100644
--- a/base/lthooks.dtx
+++ b/base/lthooks.dtx
@@ -3396,7 +3396,7 @@
 %
 % \begin{macro}{\hook_use:n}
 % \begin{macro}[EXP]{\@@_use_initialized:n}
-% \begin{macro}{\@@_use_undefined:nw}
+% \begin{macro}{\@@_use_undefined:w,\@@_use_end:}
 % \begin{macro}{\@@_preamble_hook:n}
 %   \cs{hook_use:n} as defined here is used in the preamble, where
 %   hooks aren't initialized by default.  \cs{@@_use_initialized:n} is
@@ -3437,15 +3437,16 @@
     \else:
       \@@_use_undefined:w
     \fi:
-    \cs:w @@~#1 \cs_end:
+    \cs:w @@~#1 \@@_use_end:
   }
-\cs_new:Npn \@@_use_undefined:w #1 #2 @@~#3 \cs_end:
+\cs_new:Npn \@@_use_undefined:w #1 #2 @@~#3 \@@_use_end:
   {
     #1 % fi
     \@@_use:wn #3 / \s_@@_mark {#3}
   }
 \cs_new_protected:Npn \@@_preamble_hook:n #1
   { \@@_initialize_hook_code:n {#1} }
+\cs_new_eq:NN \@@_use_end: \cs_end:
 %    \end{macrocode}
 % \end{macro}
 % \end{macro}





More information about the latex3-commits mailing list.