[latex3-commits] [git/LaTeX3-latex3-latex2e] hook-args: Return true for an undefined cs too (9c8c24ba)
PhelypeOleinik
phelype.oleinik at latex-project.org
Fri Mar 31 04:54:26 CEST 2023
Repository : https://github.com/latex3/latex2e
On branch : hook-args
Link : https://github.com/latex3/latex2e/commit/9c8c24ba1cc1846ec0543ddb9211989ab0fa36c7
>---------------------------------------------------------------
commit 9c8c24ba1cc1846ec0543ddb9211989ab0fa36c7
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date: Thu Mar 30 23:54:26 2023 -0300
Return true for an undefined cs too
>---------------------------------------------------------------
9c8c24ba1cc1846ec0543ddb9211989ab0fa36c7
base/lthooks.dtx | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/base/lthooks.dtx b/base/lthooks.dtx
index b2d719f2..54873ecd 100644
--- a/base/lthooks.dtx
+++ b/base/lthooks.dtx
@@ -4424,12 +4424,17 @@
%<latexrelease> {Hooks~with~args}
\prg_new_conditional:Npnn \@@_cs_if_empty:c #1 { p, T, F, TF }
{
- \if:w \scan_stop: \cs_replacement_spec:c {#1} \scan_stop:
+ \if:w \scan_stop: \@@_replacement_spec:c {#1} \scan_stop:
\prg_return_true:
\else:
\prg_return_false:
\fi:
}
+\cs_new:Npn \@@_replacement_spec:c #1
+ {
+ \exp_args:Nc \token_if_macro:NT {#1}
+ { \cs_replacement_spec:c {#1} }
+ }
%<latexrelease>\EndIncludeInRelease
% \end{macrocode}
%
More information about the latex3-commits
mailing list.