[latex3-commits] [git/LaTeX3-latex3-latex2e] apdf161: Use \cs_gset_eq:NN to avoid l3debug (2abf34ba)

PhelypeOleinik phelype.oleinik at latex-project.org
Thu Sep 10 15:30:13 CEST 2020


Repository : https://github.com/latex3/latex2e
On branch  : apdf161
Link       : https://github.com/latex3/latex2e/commit/2abf34ba28b8ad8f5eeebae30942f0e36b85c2f1

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

commit 2abf34ba28b8ad8f5eeebae30942f0e36b85c2f1
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date:   Thu Sep 10 10:30:13 2020 -0300

    Use \cs_gset_eq:NN to avoid l3debug


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

2abf34ba28b8ad8f5eeebae30942f0e36b85c2f1
 base/lthooks.dtx | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

diff --git a/base/lthooks.dtx b/base/lthooks.dtx
index 2557bad1..bced70ee 100644
--- a/base/lthooks.dtx
+++ b/base/lthooks.dtx
@@ -3342,8 +3342,13 @@
 %
 %  \subsection{Specifying code for next invocation}
 %
-%  \begin{macro}{\hook_gput_next_code:nn}
-%    
+% \begin{macro}{\hook_gput_next_code:nn}
+% \begin{macro}{%
+%     \@@_gput_next_code:nn,
+%     \@@_gput_next_do:nn,
+%     \@@_gput_next_do:Nnn,
+%     \@@_clear_next:n
+%   }
 %    \begin{macrocode}
 \cs_new_protected:Npn \hook_gput_next_code:nn #1
   { \@@_normalize_hook_args:Nn \@@_gput_next_code:nn {#1} }
@@ -3377,11 +3382,14 @@
     \tl_if_empty:cT { @@~#2 }
       { \@@_update_hook_code:n {#2} }
     \tl_if_empty:NT #1
-      { \tl_gset:Nn #1 { \tl_gclear:c { g_@@_#2_code_next_tl } } }
+      { \tl_gset:Nn #1 { \@@_clear_next:n {#2} } }
     \tl_gput_right:Nn #1
   }
+\cs_new_protected:Npn \@@_clear_next:n #1
+  { \cs_gset_eq:cN { @@_next~#1 } \c_empty_tl }
 %    \end{macrocode}
 %  \end{macro}
+%  \end{macro}
 %
 %
 % \subsection{Using the hook}





More information about the latex3-commits mailing list.