summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/l3packages/xparse/xparse.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-05-27 19:55:46 +0000
committerKarl Berry <karl@freefriends.org>2021-05-27 19:55:46 +0000
commit320846e8206ce020a038e0f44bd24a18f7b0e881 (patch)
treefb693659157f36ee2f0fac599f4b659728949668 /Master/texmf-dist/tex/latex/l3packages/xparse/xparse.sty
parentad4ddc33e3bcfed3e2ac7b06a93bc9e61c41d8fb (diff)
l3 (27may21)
git-svn-id: svn://tug.org/texlive/trunk@59371 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/l3packages/xparse/xparse.sty')
-rw-r--r--Master/texmf-dist/tex/latex/l3packages/xparse/xparse.sty20
1 files changed, 13 insertions, 7 deletions
diff --git a/Master/texmf-dist/tex/latex/l3packages/xparse/xparse.sty b/Master/texmf-dist/tex/latex/l3packages/xparse/xparse.sty
index b9743d48f7e..94fa2667b3c 100644
--- a/Master/texmf-dist/tex/latex/l3packages/xparse/xparse.sty
+++ b/Master/texmf-dist/tex/latex/l3packages/xparse/xparse.sty
@@ -60,19 +60,25 @@
}
}
\ExplSyntaxOff
-\ProvidesExplPackage{xparse}{2021-05-07}{}
+\ProvidesExplPackage{xparse}{2021-05-27}{}
{L3 Experimental document command parser}
\clist_new:N \l__cmd_options_clist
\DeclareOption* { \clist_put_right:NV \l__cmd_options_clist \CurrentOption }
\ProcessOptions \relax
-\keys_define:nn { ltcmd }
+\cs_set_protected:Npn \__cmd_tmp:w #1
{
- log-declarations .bool_set:N = \l__cmd_log_bool ,
- log-declarations .initial:n = false
+ \keys_define:nn { ltcmd }
+ {
+ log-declarations .bool_set:N = \l__cmd_log_bool ,
+ log-declarations .initial:n = false
+ }
+ \keys_set:nV { ltcmd } \l__cmd_options_clist
+ \bool_if:NF \l__cmd_log_bool
+ { \msg_redirect_module:nnn { LaTeX / ltcmd } { info } { none } }
}
-\keys_set:nV { ltcmd } \l__cmd_options_clist
-\bool_if:NF \l__cmd_log_bool
- { \msg_redirect_module:nnn { LaTeX / ltcmd } { info } { none } }
+\msg_if_exist:nnTF { cmd } { define-command }
+ { \__cmd_tmp:w { cmd } }
+ { \__cmd_tmp:w { ltcmd } }
\cs_gset_protected:Npn \__cmd_normalize_arg_spec_loop:n #1
{
\quark_if_recursion_tail_stop:n {#1}