summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/l3kernel/l3expan.dtx
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-10-03 21:10:08 +0000
committerKarl Berry <karl@freefriends.org>2019-10-03 21:10:08 +0000
commit71ecc95ce2991aad5dd4ccf39558250e185fad25 (patch)
tree1f468740bf52a950d30b0c3414df59a7543ef362 /Master/texmf-dist/source/latex/l3kernel/l3expan.dtx
parent25aff3bb866d4722d9372cacffcb1bc0cb6afabc (diff)
l3kernel (3oct19)
git-svn-id: svn://tug.org/texlive/trunk@52274 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/l3kernel/l3expan.dtx')
-rw-r--r--Master/texmf-dist/source/latex/l3kernel/l3expan.dtx15
1 files changed, 12 insertions, 3 deletions
diff --git a/Master/texmf-dist/source/latex/l3kernel/l3expan.dtx b/Master/texmf-dist/source/latex/l3kernel/l3expan.dtx
index 06c78048ad1..fe85c98bd5a 100644
--- a/Master/texmf-dist/source/latex/l3kernel/l3expan.dtx
+++ b/Master/texmf-dist/source/latex/l3kernel/l3expan.dtx
@@ -43,7 +43,7 @@
% }^^A
% }
%
-% \date{Released 2019-09-30}
+% \date{Released 2019-10-02}
%
% \maketitle
%
@@ -2556,7 +2556,8 @@
% \cs{cs_new_protected:cpn} \cs{use:x} (for protected) or
% \cs{cs_new:cpn} \cs{tex_expanded:D} (expandable) and the signature. If |p|
% appears in the signature, or if the function to be defined is
-% expandable and the primitive \tn{expanded} is not available, call
+% expandable and the primitive \tn{expanded} is not available, or if there
+% are more than $8$ arguments, call
% some fall-back code that just puts the appropriate |\::| commands.
% Otherwise, call \cs{@@_generate_internal_one_go:NNn} to construct
% the \cs[no-index]{exp_args:N\dots} function as a macro taking up to
@@ -2588,7 +2589,15 @@
{
\cs_new_protected:Npn \@@_generate_internal_variant:NNn ##1##2##3
{
- \@@_generate_internal_test:Nw ##2 ##3
+ \if_catcode:w X \use_none:nnnnnnnn ##3
+ \prg_do_nothing: \prg_do_nothing: \prg_do_nothing:
+ \prg_do_nothing: \prg_do_nothing: \prg_do_nothing:
+ \prg_do_nothing: \prg_do_nothing: X
+ \exp_after:wN \@@_generate_internal_test:Nw \exp_after:wN ##2
+ \else:
+ \exp_after:wN \@@_generate_internal_test_aux:w \exp_after:wN #1
+ \fi:
+ ##3
\q_mark
{
\use:x