[latex3-commits] [git/LaTeX3-latex3-latex3] ltcmd-xparse-msg: Add xparse support for ltcmd message renames (2451e5f92)
PhelypeOleinik
phelype.oleinik at latex-project.org
Tue May 18 22:44:27 CEST 2021
Repository : https://github.com/latex3/latex3
On branch : ltcmd-xparse-msg
Link : https://github.com/latex3/latex3/commit/2451e5f9200e98bdf4a0f03b6da669198bfab4d5
>---------------------------------------------------------------
commit 2451e5f9200e98bdf4a0f03b6da669198bfab4d5
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date: Tue May 18 17:44:27 2021 -0300
Add xparse support for ltcmd message renames
>---------------------------------------------------------------
2451e5f9200e98bdf4a0f03b6da669198bfab4d5
l3packages/xparse/xparse.dtx | 18 ++++++++++++------
1 file changed, 12 insertions(+), 6 deletions(-)
diff --git a/l3packages/xparse/xparse.dtx b/l3packages/xparse/xparse.dtx
index 30f39c197..bfb1695fd 100644
--- a/l3packages/xparse/xparse.dtx
+++ b/l3packages/xparse/xparse.dtx
@@ -1078,14 +1078,20 @@
\clist_new:N \l_@@_options_clist
\DeclareOption* { \clist_put_right:NV \l_@@_options_clist \CurrentOption }
\ProcessOptions \relax
-\keys_define:nn { ltcmd }
+\cs_set_protected:Npn \@@_tmp:w #1
{
- log-declarations .bool_set:N = \l_@@_log_bool ,
- log-declarations .initial:n = false
+ \keys_define:nn { ltcmd }
+ {
+ log-declarations .bool_set:N = \l_@@_log_bool ,
+ log-declarations .initial:n = false
+ }
+ \keys_set:nV { ltcmd } \l_@@_options_clist
+ \bool_if:NF \l_@@_log_bool
+ { \msg_redirect_module:nnn { LaTeX / ltcmd } { info } { none } }
}
-\keys_set:nV { ltcmd } \l_@@_options_clist
-\bool_if:NF \l_@@_log_bool
- { \msg_redirect_module:nnn { LaTeX / ltcmd } { info } { none } }
+\msg_if_exist:nnTF { cmd } { define-command }
+ { \@@_tmp:w { cmd } }
+ { \@@_tmp:w { ltcmd } }
% \end{macrocode}
% \end{variable}
% \end{variable}
More information about the latex3-commits
mailing list.