[latex3-commits] [git/LaTeX3-latex3-latex3] main: One more ltcmd removed (01b7853d8)

PhelypeOleinik phelype.oleinik at latex-project.org
Mon Jun 7 22:37:59 CEST 2021


Repository : https://github.com/latex3/latex3
On branch  : main
Link       : https://github.com/latex3/latex3/commit/01b7853d87a3604e27ff0a7322324c44836996ec

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

commit 01b7853d87a3604e27ff0a7322324c44836996ec
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date:   Mon Jun 7 17:37:59 2021 -0300

    One more ltcmd removed


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

01b7853d87a3604e27ff0a7322324c44836996ec
 l3packages/xparse/xparse.dtx | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/l3packages/xparse/xparse.dtx b/l3packages/xparse/xparse.dtx
index edb6ef1b8..7ec18fee8 100644
--- a/l3packages/xparse/xparse.dtx
+++ b/l3packages/xparse/xparse.dtx
@@ -1088,6 +1088,11 @@
     \keys_set:nV {#1} \l_@@_options_clist
     \bool_if:NF \l_@@_log_bool
       { \msg_redirect_module:nnn { LaTeX / #1 } { info } { none } }
+    \cs_new_protected:Npn \@@_unknown_argument_type_error:n ##1
+      {
+        \__kernel_msg_error:nnxx {#1} { unknown-argument-type }
+          { \@@_environment_or_command: } { \tl_to_str:n {##1} }
+      }
   }
 \msg_if_exist:nnTF { cmd } { define-command }
   { \@@_tmp:w { cmd } }
@@ -1109,8 +1114,7 @@
     \int_incr:N \l_@@_current_arg_int
     \cs_if_exist_use:cF { @@_normalize_type_ \tl_to_str:n {#1} :w }
       {
-        \__kernel_msg_error:nnxx { ltcmd } { unknown-argument-type }
-          { \@@_environment_or_command: } { \tl_to_str:n {#1} }
+        \@@_unknown_argument_type_error:n {#1}
         \@@_bad_def:wn
       }
   }





More information about the latex3-commits mailing list.