[latex3-commits] [latex3/latex2e] cmd-args: Declare all cmd hooks with 9 args (811e1895)

github at latex-project.org github at latex-project.org
Thu May 18 22:00:30 CEST 2023


Repository : https://github.com/latex3/latex2e
On branch  : cmd-args
Link       : https://github.com/latex3/latex2e/commit/811e189557e78dcae6bb0c5f9715b65898e92356

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

commit 811e189557e78dcae6bb0c5f9715b65898e92356
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date:   Thu May 18 17:00:30 2023 -0300

    Declare all cmd hooks with 9 args
    
    hooks for which the command is already defined will already be declared with the right number of arguments, so the call to \@@_make_usable:nn is ignored


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

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

diff --git a/base/lthooks.dtx b/base/lthooks.dtx
index 4c5f2de8..8c496691 100644
--- a/base/lthooks.dtx
+++ b/base/lthooks.dtx
@@ -3919,11 +3919,8 @@
             \str_if_eq:nnT {#1} { cmd }
               {
                 \@@_try_put_cmd_hook:n {#5}
-                \cs_if_exist:NT \@@_cmd_begindocument_code:
-                  {
-                    \@@_make_usable:nn {#5} { 9 }
-                    \use_none:nnn
-                  }
+                \@@_make_usable:nn {#5} { 9 }
+                \use_none:nnn
               }
 %    \end{macrocode}
 %





More information about the latex3-commits mailing list.