[latex3-commits] [latex3/latex2e] gh1189: Ensure param count is always expanded (9f1b0ea4)
github at latex-project.org
github at latex-project.org
Thu Nov 30 09:10:46 CET 2023
Repository : https://github.com/latex3/latex2e
On branch : gh1189
Link : https://github.com/latex3/latex2e/commit/9f1b0ea4144f7f733831f5179f63182765c7882f
>---------------------------------------------------------------
commit 9f1b0ea4144f7f733831f5179f63182765c7882f
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Thu Nov 30 07:58:41 2023 +0000
Ensure param count is always expanded
>---------------------------------------------------------------
9f1b0ea4144f7f733831f5179f63182765c7882f
base/ltcmd.dtx | 3 ++-
base/testfiles-ltcmd/github-1009.tlg | 4 ----
2 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/base/ltcmd.dtx b/base/ltcmd.dtx
index ce304bac..12d4fa5f 100644
--- a/base/ltcmd.dtx
+++ b/base/ltcmd.dtx
@@ -2653,7 +2653,7 @@
\int_step_function:nN
{
\int_div_truncate:nn
- { \tl_count:n { \cs_parameter_spec:N #1 } }
+ { \tl_count:e { \cs_parameter_spec:N #1 } }
{ 2 }
}
\@@_show_optimized_aux:N
@@ -2661,6 +2661,7 @@
\cs_replacement_spec:N #1
}
}
+\cs_generate_variant:Nn \tl_count:n { e }
% \end{macrocode}
%
% We can reuse most of the above to show an environment, except that
diff --git a/base/testfiles-ltcmd/github-1009.tlg b/base/testfiles-ltcmd/github-1009.tlg
index 24098de3..b123cdfa 100644
--- a/base/testfiles-ltcmd/github-1009.tlg
+++ b/base/testfiles-ltcmd/github-1009.tlg
@@ -4,12 +4,10 @@ Don't change this file in any respect.
TEST 1: Non-expandable Document Commands with m-type arguments
============================================================
> \foo=document command:
- #1:m
->.
<recently read> }
l. ...}
> \baz=document command:
- #1:m
->.
<recently read> }
l. ...}
@@ -48,12 +46,10 @@ l. ...}
TEST 2: Expandable Document Commands with m-type arguments
============================================================
> \foo=expandable document command:
- #1:m
->.
<recently read> }
l. ...}
> \baz=expandable document command:
- #1:m
->.
<recently read> }
l. ...}
More information about the latex3-commits
mailing list.