[latex3-commits] [git/LaTeX3-latex3-latex2e] gh606: Some reordering (5119294c)

PhelypeOleinik phelype.oleinik at latex-project.org
Sun Sep 5 22:20:11 CEST 2021


Repository : https://github.com/latex3/latex2e
On branch  : gh606
Link       : https://github.com/latex3/latex2e/commit/5119294c1ebe79291ff668f93981d7d32c517c5e

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

commit 5119294c1ebe79291ff668f93981d7d32c517c5e
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date:   Sun Sep 5 17:20:11 2021 -0300

    Some reordering


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

5119294c1ebe79291ff668f93981d7d32c517c5e
 base/lthooks.dtx | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/base/lthooks.dtx b/base/lthooks.dtx
index 6e178318..290f6f18 100644
--- a/base/lthooks.dtx
+++ b/base/lthooks.dtx
@@ -4813,12 +4813,14 @@
 %
 %    \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}
       {
-        \@@_normalize_hook_args:Nn \@@_use_once_set:n { \use:n {#1} }
+        \@@_use_once_set:n {#1}
         \hook_use:n {#1}
-        \@@_normalize_hook_args:Nn \@@_use_once_clear:n { \use:n {#1} }
+        \@@_use_once_clear:n {#1}
       }
   }
 %    \end{macrocode}
@@ -4845,6 +4847,7 @@
 %    \end{macrocode}
 % \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.