[latex3-commits] [git/LaTeX3-latex3-latex2e] hook-args: Revert "Only normalise if the cs is defined" (9af5da22)

PhelypeOleinik phelype.oleinik at latex-project.org
Thu Apr 6 01:19:24 CEST 2023


Repository : https://github.com/latex3/latex2e
On branch  : hook-args
Link       : https://github.com/latex3/latex2e/commit/9af5da22a266265e54c4e61d5775edfa95780b18

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

commit 9af5da22a266265e54c4e61d5775edfa95780b18
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date:   Wed Apr 5 20:19:24 2023 -0300

    Revert "Only normalise if the cs is defined"
    
    This reverts commit f8042dd4f0706f10b8aa6101a907aab1f8695e0b.


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

9af5da22a266265e54c4e61d5775edfa95780b18
 base/lthooks.dtx | 18 +++++++-----------
 1 file changed, 7 insertions(+), 11 deletions(-)

diff --git a/base/lthooks.dtx b/base/lthooks.dtx
index 54873ecd..4d77f657 100644
--- a/base/lthooks.dtx
+++ b/base/lthooks.dtx
@@ -2693,7 +2693,6 @@
       {
         \tl_new:c { g_@@_#1_declared_tl }
         \@@_make_usable:nn {#1} {#2}
-        \@@_update_hook_code:n {#1}
       }
   }
 %<latexrelease>\EndIncludeInRelease
@@ -4390,20 +4389,17 @@
 %<latexrelease>                 {Hooks~with~args}
 \cs_new_protected:Npn \@@_normalise_cs_args:nn #1 #2
   {
-    \cs_if_exist:cT { @@#1~#2 }
+    \@@_code_gset_auxi:veen
+      { c_@@_#2_parameter_tl }
       {
-        \@@_code_gset_auxi:veen
-          { c_@@_#2_parameter_tl }
+        \exp_args:NNo \exp_args:No \@@_double_hashes:n
           {
-            \exp_args:NNo \exp_args:No \@@_double_hashes:n
-              {
-                \cs:w @@#1~#2 \exp_last_unbraced:Ne \cs_end:
-                  { \@@_braced_cs_parameter:n { @@#1~#2 } }
-              }
+            \cs:w @@#1~#2 \exp_last_unbraced:Ne \cs_end:
+              { \@@_braced_cs_parameter:n { @@#1~#2 } }
           }
-          { }
-          { @@#1~#2 }
       }
+      { }
+      { @@#1~#2 }
   }
 %<latexrelease>\EndIncludeInRelease
 %    \end{macrocode}





More information about the latex3-commits mailing list.