[latex3-commits] [latex3/latex2e] cmd-args: Ensure \NewHook is obeyed wrt number of arguments (3237122d)

github at latex-project.org github at latex-project.org
Thu May 18 05:30:11 CEST 2023


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

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

commit 3237122ddda42ca3fc7607f64c37d2dd8d1da213
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date:   Thu May 18 00:30:11 2023 -0300

    Ensure \NewHook is obeyed wrt number of arguments


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

3237122ddda42ca3fc7607f64c37d2dd8d1da213
 base/lthooks.dtx | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/base/lthooks.dtx b/base/lthooks.dtx
index 20a20425..0c31d2d3 100644
--- a/base/lthooks.dtx
+++ b/base/lthooks.dtx
@@ -2719,6 +2719,8 @@
       { \msg_error:nnn { hooks } { exists } {#1} }
       {
         \tl_new:c { g_@@_#1_declared_tl }
+        \cs_undefine:c { @@~#1 }
+        \cs_undefine:c { c_@@_#1_parameter_tl }
         \@@_make_usable:nn {#1} {#2}
 %    \end{macrocode}
 %   In case there is already code in a hook, but it's undeclared, run





More information about the latex3-commits mailing list.