[latex3-commits] [git/LaTeX3-latex3-latex2e] ltcmdhooks: Fix a signature (5b216bd3)

PhelypeOleinik phelype.oleinik at latex-project.org
Tue Apr 20 05:20:49 CEST 2021


Repository : https://github.com/latex3/latex2e
On branch  : ltcmdhooks
Link       : https://github.com/latex3/latex2e/commit/5b216bd32e571d1514f02fea7e17e50e2df2d176

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

commit 5b216bd32e571d1514f02fea7e17e50e2df2d176
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date:   Tue Apr 20 00:20:49 2021 -0300

    Fix a signature


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

5b216bd32e571d1514f02fea7e17e50e2df2d176
 base/ltcmdhooks.dtx | 11 +++++------
 base/lthooks.dtx    |  2 +-
 2 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/base/ltcmdhooks.dtx b/base/ltcmdhooks.dtx
index aa86ed62..30d6e977 100644
--- a/base/ltcmdhooks.dtx
+++ b/base/ltcmdhooks.dtx
@@ -559,7 +559,7 @@
   {
     { \@if at DeclareRobustCommand \@@_patch_DeclareRobustCommand:Nnn }
     { \@if at newcommand \@@_patch_newcommand:Nnn }
-    { \__kernel_cmd_if_xparse:NTF \@@_cmd_patch_xparse:Nn }
+    { \__kernel_cmd_if_xparse:NTF \@@_cmd_patch_xparse:Nnn }
   }
 %    \end{macrocode}
 % \end{macro}
@@ -606,16 +606,15 @@
   }
 %    \end{macrocode}
 % \end{macro}
-
-  
-%  \begin{macro}{\@@_cmd_patch_xparse:Nn}
+%
+%  \begin{macro}{\@@_cmd_patch_xparse:Nnn}
 %    And for commands defined by the \pkg{xparse} commands use this
 %    for patching:
 %    \begin{macrocode}
-\cs_new_protected:Npn \@@_cmd_patch_xparse:Nn #1 #2
+\cs_new_protected:Npn \@@_cmd_patch_xparse:Nnn #1
   {
     \exp_args:NNc \@@_patch_expand_redefine:NNnn \c_false_bool
-      { \cs_to_str:N #1 ~ code } {#2}
+      { \cs_to_str:N #1 ~ code }
   }
 %    \end{macrocode}
 %  \end{macro}
diff --git a/base/lthooks.dtx b/base/lthooks.dtx
index 0b39ff21..226ffe9b 100644
--- a/base/lthooks.dtx
+++ b/base/lthooks.dtx
@@ -2170,7 +2170,7 @@
 %
 %    This initializes all hook data structures for the hook but if
 %    used on its own doesn mark the hook as declared (as
-%    \cs{hook_new:n} does, so a later\cs{hook_new:n} on that hook will
+%    \cs{hook_new:n} does, so a later \cs{hook_new:n} on that hook will
 %    not result in an error.  This command is internally used by
 %    \cs{hook_gput_code:n} when adding code to a generic hook.
 %    \begin{macrocode}





More information about the latex3-commits mailing list.