[latex3-commits] [git/LaTeX3-latex3-latex2e] gh606: No need to normalise when being ignored (1cee70af)

PhelypeOleinik phelype.oleinik at latex-project.org
Mon Sep 6 14:55:55 CEST 2021


Repository : https://github.com/latex3/latex2e
On branch  : gh606
Link       : https://github.com/latex3/latex2e/commit/1cee70af1e44b44c75983c48544426dbe963143f

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

commit 1cee70af1e44b44c75983c48544426dbe963143f
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date:   Mon Sep 6 09:55:55 2021 -0300

    No need to normalise when being ignored


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

1cee70af1e44b44c75983c48544426dbe963143f
 base/lthooks.dtx | 18 ++++++++++--------
 1 file changed, 10 insertions(+), 8 deletions(-)

diff --git a/base/lthooks.dtx b/base/lthooks.dtx
index e4e9be20..597dbc79 100644
--- a/base/lthooks.dtx
+++ b/base/lthooks.dtx
@@ -4801,6 +4801,7 @@
 % \end{macro}
 %
 % \begin{macro}{\hook_use_once:n}
+% \begin{macro}{\@@_use_once:n}
 %   For hooks that can and should be used only once we have a special
 %   use command that further inhibits the hook from getting more code
 %   added to it.  This has the effect that any
@@ -4813,16 +4814,16 @@
 %
 %    \begin{macrocode}
 \cs_new_protected:Npn \hook_use_once:n #1
-  { \@@_normalize_hook_args:Nn \@@_use_once:n { \use:n {#1} } }
-\cs_new_protected:Npn \@@_use_once:n #1
   {
     \@@_if_execute_immediately:nF {#1}
-      {
-        \@@_preamble_hook:n {#1}
-        \@@_use_once_set:n {#1}
-        \@@_use_initialized:n {#1}
-        \@@_use_once_clear:n {#1}
-      }
+      { \@@_normalize_hook_args:Nn \@@_use_once:n { \use:n {#1} } }
+  }
+\cs_new_protected:Npn \@@_use_once:n #1
+  {
+    \@@_preamble_hook:n {#1}
+    \@@_use_once_set:n {#1}
+    \@@_use_initialized:n {#1}
+    \@@_use_once_clear:n {#1}
   }
 %    \end{macrocode}
 %
@@ -4849,6 +4850,7 @@
 % \end{macro}
 % \end{macro}
 % \end{macro}
+% \end{macro}
 %
 % \begin{macro}[pTF]{\@@_if_execute_immediately:n}
 %   To check if code being added should be executed immediately (that





More information about the latex3-commits mailing list.