[latex3-commits] [git/LaTeX3-latex3-latex2e] develop: Update xparse to 2021-06-18 (26e0dc34)

Joseph Wright joseph.wright at morningstar2.co.uk
Fri Jun 18 11:47:04 CEST 2021


Repository : https://github.com/latex3/latex2e
On branch  : develop
Link       : https://github.com/latex3/latex2e/commit/26e0dc345b7131689f966184108e346181413b06

>---------------------------------------------------------------

commit 26e0dc345b7131689f966184108e346181413b06
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Fri Jun 18 09:31:10 2021 +0100

    Update xparse to 2021-06-18


>---------------------------------------------------------------

26e0dc345b7131689f966184108e346181413b06
 texmf/tex/latex/l3packages/xparse/xparse.sty | 16 ++++++++++------
 1 file changed, 10 insertions(+), 6 deletions(-)

diff --git a/texmf/tex/latex/l3packages/xparse/xparse.sty b/texmf/tex/latex/l3packages/xparse/xparse.sty
index 94fa2667..b11af04a 100644
--- a/texmf/tex/latex/l3packages/xparse/xparse.sty
+++ b/texmf/tex/latex/l3packages/xparse/xparse.sty
@@ -60,21 +60,26 @@
       }
   }
 \ExplSyntaxOff
-\ProvidesExplPackage{xparse}{2021-05-27}{}
+\ProvidesExplPackage{xparse}{2021-06-18}{}
   {L3 Experimental document command parser}
 \clist_new:N \l__cmd_options_clist
 \DeclareOption* { \clist_put_right:NV \l__cmd_options_clist \CurrentOption }
 \ProcessOptions \relax
 \cs_set_protected:Npn \__cmd_tmp:w #1
   {
-    \keys_define:nn { ltcmd }
+    \keys_define:nn {#1}
       {
         log-declarations .bool_set:N = \l__cmd_log_bool ,
         log-declarations .initial:n  = false
       }
-    \keys_set:nV { ltcmd } \l__cmd_options_clist
+    \keys_set:nV {#1} \l__cmd_options_clist
     \bool_if:NF \l__cmd_log_bool
-      { \msg_redirect_module:nnn { LaTeX / ltcmd } { info } { none } }
+      { \msg_redirect_module:nnn { LaTeX / #1 } { info } { none } }
+    \cs_new_protected:Npn \__cmd_unknown_argument_type_error:n ##1
+      {
+        \__kernel_msg_error:nnxx {#1} { unknown-argument-type }
+          { \__cmd_environment_or_command: } { \tl_to_str:n {##1} }
+      }
   }
 \msg_if_exist:nnTF { cmd } { define-command }
   { \__cmd_tmp:w { cmd } }
@@ -85,8 +90,7 @@
     \int_incr:N \l__cmd_current_arg_int
     \cs_if_exist_use:cF { __cmd_normalize_type_ \tl_to_str:n {#1} :w }
       {
-        \__kernel_msg_error:nnxx { ltcmd } { unknown-argument-type }
-          { \__cmd_environment_or_command: } { \tl_to_str:n {#1} }
+        \__cmd_unknown_argument_type_error:n {#1}
         \__cmd_bad_def:wn
       }
   }





More information about the latex3-commits mailing list.