[latex3-commits] [git/LaTeX3-latex3-latex2e] hook-args: Revert "_next typeout workaround no longer necessary" (018759a1)
PhelypeOleinik
phelype.oleinik at latex-project.org
Wed Mar 8 04:52:27 CET 2023
Repository : https://github.com/latex3/latex2e
On branch : hook-args
Link : https://github.com/latex3/latex2e/commit/018759a15c2cc2e331df980cbd072c4a4687e45f
>---------------------------------------------------------------
commit 018759a15c2cc2e331df980cbd072c4a4687e45f
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date: Wed Mar 8 00:52:27 2023 -0300
Revert "_next typeout workaround no longer necessary"
This reverts commit 81714df5439f029c9d1679ce6f8bd420f405d7d4.
Workaround actually necessary when the code is working properly ;-)
>---------------------------------------------------------------
018759a15c2cc2e331df980cbd072c4a4687e45f
base/lthooks.dtx | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/base/lthooks.dtx b/base/lthooks.dtx
index 0a8bb069..76012c3b 100644
--- a/base/lthooks.dtx
+++ b/base/lthooks.dtx
@@ -5171,7 +5171,7 @@
% the first tokens (the code to clear itself) so we call a helper
% command to get rid of them.
% \begin{macrocode}
- { ->~ \exp_args:Nv \tl_to_str:n { @@_next~#1 } }
+ { ->~ \exp_args:Nv \@@_log_next_code:n { @@_next~#1 } }
}
% \end{macrocode}
%
@@ -5328,6 +5328,17 @@
%<latexrelease> }
%<latexrelease>\EndIncludeInRelease
% \end{macrocode}
+%
+% \begin{macro}{\@@_log_next_code:n}
+% To display the code for next invocation only (i.e., from
+% \cs{AddToHookNext} we have to remove the first two tokens at the
+% front which are \cs{tl_gclear:N} and the token list to clear.
+% \begin{macrocode}
+\cs_new:Npn \@@_log_next_code:n #1
+ { \exp_args:No \tl_to_str:n { \use_none:nn #1 } }
+% \end{macrocode}
+% \end{macro}
+%
% \end{macro}
% \end{macro}
% \end{macro}
More information about the latex3-commits
mailing list.