[latex3-commits] [git/LaTeX3-latex3-latex2e] cmd: Rename xparse->ltcmd in message modules (ec127dab)

PhelypeOleinik phelype.oleinik at latex-project.org
Wed Jan 27 01:17:46 CET 2021


Repository : https://github.com/latex3/latex2e
On branch  : cmd
Link       : https://github.com/latex3/latex2e/commit/ec127dabfd4e29f791da70e9fa6b2b33e7418862

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

commit ec127dabfd4e29f791da70e9fa6b2b33e7418862
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date:   Tue Jan 26 21:17:46 2021 -0300

    Rename xparse->ltcmd in message modules
    
    Because it's not xparse anymore, and to allow roll-forward


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

ec127dabfd4e29f791da70e9fa6b2b33e7418862
 base/ltcmd.dtx | 154 ++++++++++++++++++++++++++++-----------------------------
 1 file changed, 77 insertions(+), 77 deletions(-)

diff --git a/base/ltcmd.dtx b/base/ltcmd.dtx
index 763d6c84..900cca83 100644
--- a/base/ltcmd.dtx
+++ b/base/ltcmd.dtx
@@ -329,7 +329,7 @@
 %   switched off by default, unless the |log-declarations| package
 %   option was used, so here we'll switch that off as well.
 %    \begin{macrocode}
-\msg_redirect_module:nnn { LaTeX / xparse } { info } { none }
+\msg_redirect_module:nnn { LaTeX / ltcmd } { info } { none }
 %    \end{macrocode}
 %
 % \subsection{Declaring commands and environments}
@@ -359,7 +359,7 @@
   {
     \cs_if_exist:NTF #1
       {
-        \__kernel_msg_info:nnxx { xparse } { redefine-command }
+        \__kernel_msg_info:nnxx { ltcmd } { redefine-command }
           { \token_to_str:N #1 } { \tl_to_str:n {#2} }
       }
       {
@@ -367,10 +367,10 @@
           { \cs_if_exist_p:c { \cs_to_str:N #1 ~ code } }
           { \cs_if_exist_p:c { \cs_to_str:N #1 ~ defaults } }
           {
-            \__kernel_msg_warning:nnx { xparse } { unsupported-let }
+            \__kernel_msg_warning:nnx { ltcmd } { unsupported-let }
               { \token_to_str:N #1 }
           }
-        \__kernel_msg_info:nnxx { xparse } { define-command }
+        \__kernel_msg_info:nnxx { ltcmd } { define-command }
           { \token_to_str:N #1 } { \tl_to_str:n {#2} }
       }
     \bool_set_false:N \l_@@_environment_bool
@@ -529,11 +529,11 @@
       { \tl_trim_spaces:o { \l_@@_environment_str } }
     \cs_if_exist:cTF { \l_@@_environment_str }
       {
-        \__kernel_msg_info:nnxx { xparse } { redefine-environment }
+        \__kernel_msg_info:nnxx { ltcmd } { redefine-environment }
           { \l_@@_environment_str } { \tl_to_str:n {#2} }
       }
       {
-        \__kernel_msg_info:nnxx { xparse } { define-environment }
+        \__kernel_msg_info:nnxx { ltcmd } { define-environment }
           { \l_@@_environment_str } { \tl_to_str:n {#2} }
       }
     \bool_set_false:N \l_@@_expandable_bool
@@ -686,7 +686,7 @@
   }
 \cs_new_protected:Npn \@@_defaults_error:w \q_recursion_stop
   {
-    \__kernel_msg_error:nnx { xparse } { loop-in-defaults }
+    \__kernel_msg_error:nnx { ltcmd } { loop-in-defaults }
       { \@@_environment_or_command: }
   }
 %    \end{macrocode}
@@ -815,7 +815,7 @@
       { } { } { } { } { } { } { } { } { } { }
       {
         \__kernel_msg_expandable_error:nnf
-          { xparse } { loop-in-defaults }
+          { ltcmd } { loop-in-defaults }
           { \exp_args:Nf \tl_trim_spaces:n { \token_to_str:N #4 } }
         \use_iv:nnnn
       }
@@ -913,7 +913,7 @@
       \q_recursion_tail \q_recursion_tail \q_recursion_tail \q_recursion_stop
     \int_compare:nNnT \l_@@_current_arg_int > 9
       {
-        \__kernel_msg_error:nnxx { xparse } { too-many-arguments }
+        \__kernel_msg_error:nnxx { ltcmd } { too-many-arguments }
           { \@@_environment_or_command: } { \tl_to_str:n {#1} }
         \@@_bad_def:wn
       }
@@ -921,7 +921,7 @@
       {
         \tl_if_empty:NF \l_@@_last_delimiters_tl
           {
-            \__kernel_msg_error:nnxx { xparse } { expandable-ending-optional }
+            \__kernel_msg_error:nnxx { ltcmd } { expandable-ending-optional }
               { \iow_char:N \\ \l_@@_function_tl } { \tl_to_str:n {#1} }
             \@@_bad_def:wn
           }
@@ -945,11 +945,11 @@
             { \str_if_eq_p:nn {#1} { u } }
           }
           {
-            \__kernel_msg_error:nnxx { xparse } { xparse-argument-type }
+            \__kernel_msg_error:nnxx { ltcmd } { xparse-argument-type }
               { \@@_environment_or_command: } { \tl_to_str:n {#1} }
           }
           {
-            \__kernel_msg_error:nnxx { xparse } { unknown-argument-type }
+            \__kernel_msg_error:nnxx { ltcmd } { unknown-argument-type }
               { \@@_environment_or_command: } { \tl_to_str:n {#1} }
           }
         \@@_bad_def:wn
@@ -1021,7 +1021,7 @@
     \quark_if_recursion_tail_stop_do:nn {#2} { \@@_bad_arg_spec:wn }
     \bool_if:NT \l_@@_expandable_bool
       {
-        \__kernel_msg_error:nnxx { xparse } { processor-in-expandable }
+        \__kernel_msg_error:nnxx { ltcmd } { processor-in-expandable }
           { \iow_char:N \\ \l_@@_function_tl } { \tl_to_str:n {#1} }
         \@@_bad_def:wn
       }
@@ -1035,7 +1035,7 @@
     \quark_if_recursion_tail_stop_do:nn {#1} { \@@_bad_arg_spec:wn }
     \bool_if:NT \l_@@_long_bool
       {
-        \__kernel_msg_error:nnxx { xparse } { two-markers }
+        \__kernel_msg_error:nnxx { ltcmd } { two-markers }
           { \@@_environment_or_command: } { + }
         \@@_bad_def:wn
       }
@@ -1048,7 +1048,7 @@
     \quark_if_recursion_tail_stop_do:nn {#1} { \@@_bad_arg_spec:wn }
     \bool_if:NT \l_@@_obey_spaces_bool
       {
-        \__kernel_msg_error:nnxx { xparse } { two-markers }
+        \__kernel_msg_error:nnxx { ltcmd } { two-markers }
           { \@@_environment_or_command: } { ! }
         \@@_bad_def:wn
       }
@@ -1181,14 +1181,14 @@
     \bool_if:NF \l_@@_environment_bool
       {
         \__kernel_msg_error:nnxx
-          { xparse } { invalid-command-arg }
+          { ltcmd } { invalid-command-arg }
           { \@@_environment_or_command: } { b }
         \@@_bad_def:wn
       }
     \tl_clear:N \l_@@_last_delimiters_tl
     \@@_add_arg_spec:n { b }
     \quark_if_recursion_tail_stop:n {#1}
-    \__kernel_msg_error:nnxx { xparse } { arg-after-body }
+    \__kernel_msg_error:nnxx { ltcmd } { arg-after-body }
       { \@@_environment_or_command: }
       { \tl_to_str:n {#1} }
     \@@_bad_def:wn
@@ -1204,7 +1204,7 @@
   {
     \tl_trim_spaces_apply:nN {#1} \tl_if_single_token:nF
       {
-        \__kernel_msg_error:nnxx { xparse } { not-single-token }
+        \__kernel_msg_error:nnxx { ltcmd } { not-single-token }
           { \@@_environment_or_command: } { \tl_to_str:n {#1} }
         \@@_bad_def:wn
       }
@@ -1237,7 +1237,7 @@
         }
       {
         \__kernel_msg_error:nnxxx
-          { xparse } { forbidden-implicit-group-token }
+          { ltcmd } { forbidden-implicit-group-token }
           { \@@_environment_or_command: } { \tl_to_str:n {#1} }
           {
             \token_if_eq_meaning:NNTF #1 \c_group_begin_token
@@ -1258,7 +1258,7 @@
     \bool_if:NT \l_@@_expandable_bool
       {
         \__kernel_msg_error:nnxx
-          { xparse } { invalid-expandable-argument-type }
+          { ltcmd } { invalid-expandable-argument-type }
           { \iow_char:N \\ \l_@@_function_tl } { \tl_to_str:n {#1} }
         \@@_bad_def:wn
       }
@@ -1271,7 +1271,7 @@
         \tl_if_empty:NF \l_@@_last_delimiters_tl
           {
             \__kernel_msg_error:nnxx
-              { xparse } { invalid-after-optional-expandably }
+              { ltcmd } { invalid-after-optional-expandably }
               { \iow_char:N \\ \l_@@_function_tl } { \tl_to_str:n {#1} }
             \@@_bad_def:wn
           }
@@ -1292,7 +1292,7 @@
       {
         \tl_if_eq:nnT {##1} {#1}
           {
-            \__kernel_msg_warning:nnxx { xparse } { optional-mandatory }
+            \__kernel_msg_warning:nnxx { ltcmd } { optional-mandatory }
               {#2} {#3}
           }
       }
@@ -1306,7 +1306,7 @@
 %    \begin{macrocode}
 \cs_new_protected:Npn \@@_bad_arg_spec:wn #1 \@@_break_point:n #2
   {
-    \__kernel_msg_error:nnxx { xparse } { bad-arg-spec }
+    \__kernel_msg_error:nnxx { ltcmd } { bad-arg-spec }
       { \@@_environment_or_command: } { \tl_to_str:n {#2} }
   }
 \cs_new_protected:Npn \@@_bad_def:wn #1 \@@_break_point:n #2 { }
@@ -1332,7 +1332,7 @@
       {
         \bool_if:NT \l_@@_expandable_bool
           {
-            \__kernel_msg_error:nnx { xparse } { inconsistent-long }
+            \__kernel_msg_error:nnx { ltcmd } { inconsistent-long }
               { \iow_char:N \\ \l_@@_function_tl }
             \@@_bad_def:wn
           }
@@ -1354,7 +1354,7 @@
   {
     \bool_if:NT \l_@@_some_obey_spaces_bool
       {
-        \__kernel_msg_error:nnxx { xparse } { non-trailing-obey-spaces }
+        \__kernel_msg_error:nnxx { ltcmd } { non-trailing-obey-spaces }
           { \@@_environment_or_command: } { \tl_to_str:n {#1} }
         \@@_bad_def:wn
       }
@@ -2332,7 +2332,7 @@
     \@@_peek_nonspace_remove:NTF #1
       { \@@_grab_D_call:Nw #1 }
       {
-        \__kernel_msg_error:nnxx { xparse } { missing-required }
+        \__kernel_msg_error:nnxx { ltcmd } { missing-required }
           { \@@_environment_or_command: }
           { \token_to_str:N #1 }
         \@@_add_arg:o \c_novalue_tl
@@ -2585,14 +2585,14 @@
     \exp_after:wN \exp_after:wN \exp_after:wN
       \peek_meaning_remove:NTF \char_generate:nn { \tex_endlinechar:D } { 6 }
       {
-        \__kernel_msg_error:nnxxx { xparse } { verbatim-newline }
+        \__kernel_msg_error:nnxxx { ltcmd } { verbatim-newline }
           { \@@_environment_or_command: }
           { \tl_to_str:N \l_@@_v_arg_tl }
           { \tl_to_str:n {#1} }
         \@@_add_arg:o \c_novalue_tl
       }
       {
-        \__kernel_msg_error:nnxxx { xparse } { verbatim-tokenized }
+        \__kernel_msg_error:nnxxx { ltcmd } { verbatim-tokenized }
           { \@@_environment_or_command: }
           { \tl_to_str:N \l_@@_v_arg_tl }
           { \tl_to_str:n {#1} }
@@ -2944,7 +2944,7 @@
           }
           {
             \__kernel_msg_expandable_error:nnff
-              { xparse } { missing-required }
+              { ltcmd } { missing-required }
               { \exp_args:Nf \tl_trim_spaces:n { \token_to_str:N ##5 } }
               { \tl_to_str:n {##2} }
             ##4 {#1} \q_@@ ##5 ##6 {##7}
@@ -2982,7 +2982,7 @@
           }
           {
             \__kernel_msg_expandable_error:nnff
-              { xparse } { missing-required }
+              { ltcmd } { missing-required }
               { \exp_args:Nf \tl_trim_spaces:n { \token_to_str:N ##4 } }
               { \tl_to_str:n {##2} }
             ##3 {#1} \q_@@ ##4 ##5 {##6}
@@ -3115,7 +3115,7 @@
                   \ProcessedArgument
                   \q_stop
               }
-            \__kernel_msg_error:nnxxx { xparse } { split-excess-tokens }
+            \__kernel_msg_error:nnxxx { ltcmd } { split-excess-tokens }
               { \tl_to_str:n {#3} } { \int_eval:n { #2 + 1 } }
               { \tl_to_str:n {#4} }
           }
@@ -3178,11 +3178,11 @@
   {
     #1
       {
-        \__kernel_msg_error:nnx { xparse } { non-xparse }
+        \__kernel_msg_error:nnx { ltcmd } { non-xparse }
           { \@@_environment_or_command: }
       }
       {
-        \__kernel_msg_error:nnx { xparse } { unknown }
+        \__kernel_msg_error:nnx { ltcmd } { unknown }
           { \@@_environment_or_command: }
       }
   }
@@ -3296,11 +3296,11 @@
         }
         { \group_end: \use_ii:nnn }
       {
-        \__kernel_msg_error:nnxx { xparse } { not-definable }
+        \__kernel_msg_error:nnxx { ltcmd } { not-definable }
           { \tl_to_str:n {#1} } { \token_to_str:N #2 }
       }
       {
-        \__kernel_msg_error:nnxx { xparse } { not-one-token }
+        \__kernel_msg_error:nnxx { ltcmd } { not-one-token }
           { \tl_to_str:n {#1} } { \token_to_str:N #2 }
       }
     }
@@ -3488,49 +3488,49 @@
 %
 % Some messages intended as errors when defining commands/environments.
 %    \begin{macrocode}
-\__kernel_msg_new:nnnn { xparse } { arg-after-body }
+\__kernel_msg_new:nnnn { ltcmd } { arg-after-body }
   { In~the~definition~of~#1,~b~(body)~argument~must~be~last. }
   {
     The~'body'~argument~type~is~followed~by~'#2'~in~the~argument~
     specification~of~the~#1.~This~is~not~allowed.
     \c_@@_ignore_def_tl
   }
-\__kernel_msg_new:nnnn { xparse } { bad-arg-spec }
+\__kernel_msg_new:nnnn { ltcmd } { bad-arg-spec }
   { Bad~argument~specification~'#2'~for~#1. }
   {
     The~argument~specification~provided~was~not~valid:~
     one~or~more~mandatory~pieces~of~information~were~missing.
     \c_@@_ignore_def_tl
   }
-\__kernel_msg_new:nnnn { xparse } { command-already-defined }
+\__kernel_msg_new:nnnn { ltcmd } { command-already-defined }
   { Command~'#1'~already~defined! }
   {
     You~have~used~#2~
     with~a~command~that~already~has~a~definition. \\ \\
     The~existing~definition~of~'#1'~will~not~be~altered.
   }
-\__kernel_msg_new:nnnn { xparse } { command-not-yet-defined }
+\__kernel_msg_new:nnnn { ltcmd } { command-not-yet-defined }
   { Command ~'#1'~not~yet~defined! }
   {
     You~have~used~#2~
     with~a~command~that~was~never~defined.
     \c_@@_ignore_def_tl
   }
-\__kernel_msg_new:nnnn { xparse } { environment-already-defined }
+\__kernel_msg_new:nnnn { ltcmd } { environment-already-defined }
   { Environment~'#1'~already~defined! }
   {
     You~have~used~\NewDocumentEnvironment
     with~an~environment~that~already~has~a~definition. \\ \\
     The~existing~definition~of~'#1'~will~not~be~altered.
   }
-\__kernel_msg_new:nnnn { xparse } { environment-not-yet-defined }
+\__kernel_msg_new:nnnn { ltcmd } { environment-not-yet-defined }
   { Environment~'#1'~not~yet~defined! }
   {
     You~have~used~\RenewDocumentEnvironment
     with~an~environment~that~was~never~defined.
     \c_@@_ignore_def_tl
   }
-\__kernel_msg_new:nnnn { xparse } { expandable-ending-optional }
+\__kernel_msg_new:nnnn { ltcmd } { expandable-ending-optional }
   {
     Argument~specification~'#2'~for~expandable~command~'#1'~
     ends~with~optional~argument.
@@ -3540,13 +3540,13 @@
     (or~no~arguments~at~all).~You~cannot~have~a~terminal~optional~
     argument~with~expandable~commands.
   }
-\__kernel_msg_new:nnnn { xparse } { inconsistent-long }
+\__kernel_msg_new:nnnn { ltcmd } { inconsistent-long }
   { Inconsistent~long~arguments~for~expandable~command~'#1'. }
   {
     The~arguments~for~an~expandable~command~must~not~involve~short~
     arguments~after~long~arguments.~You~have~tried~to~mix~the~two~types.
   }
-\__kernel_msg_new:nnnn { xparse } { invalid-command-arg }
+\__kernel_msg_new:nnnn { ltcmd } { invalid-command-arg }
   { Argument~type~'#2'~not~available~for~#1. }
   {
     The~letter~'#2'~can~only~be~used~in~environment~argument~
@@ -3554,14 +3554,14 @@
     \\ \\
     LaTeX~will~ignore~this~entire~definition.
   }
-\__kernel_msg_new:nnnn { xparse } { invalid-expandable-argument-type }
+\__kernel_msg_new:nnnn { ltcmd } { invalid-expandable-argument-type }
   { Argument~type~'#2'~not~available~for~expandable~command~'#1'. }
   {
     The~letter~'#2'~specifies~an~argument~type~which~cannot~be~used~
     in~an~expandable~command.
     \c_@@_ignore_def_tl
   }
-\__kernel_msg_new:nnnn { xparse } { invalid-after-optional-expandably }
+\__kernel_msg_new:nnnn { ltcmd } { invalid-after-optional-expandably }
   {
     Argument~type~'#2'~not~available~after~optional~argument~
     for~expandable~command~'#1'.
@@ -3571,13 +3571,13 @@
     in~an~expandable~command~after~an~optional~argument.
     \c_@@_ignore_def_tl
   }
-\__kernel_msg_new:nnnn { xparse } { non-trailing-obey-spaces }
+\__kernel_msg_new:nnnn { ltcmd } { non-trailing-obey-spaces }
   { Prefix~'!'~used~before~mandatory~argument~'#2'~of~#1. }
   {
     The~prefix~'!'~can~only~apply~to~trailing~optional~arguments.
     \c_@@_ignore_def_tl
   }
-\__kernel_msg_new:nnnn { xparse } { not-definable }
+\__kernel_msg_new:nnnn { ltcmd } { not-definable }
   { First~argument~of~'#2'~must~be~a~command. }
   {
     The~first~argument~of~'#2'~should~be~the~document~command~that~will~
@@ -3585,7 +3585,7 @@
     backslash~is~missing?
     \c_@@_ignore_def_tl
   }
-\__kernel_msg_new:nnnn { xparse } { not-one-token }
+\__kernel_msg_new:nnnn { ltcmd } { not-one-token }
   { First~argument~of~'#2'~must~be~a~command. }
   {
     The~first~argument~of~'#2'~should~be~the~document~command~that~will~
@@ -3593,7 +3593,7 @@
     token.~Perhaps~a~backslash~is~missing?
     \c_@@_ignore_def_tl
   }
-\__kernel_msg_new:nnnn { xparse } { not-single-token }
+\__kernel_msg_new:nnnn { ltcmd } { not-single-token }
   {
     Argument~delimiter~'#2'~for~the~#1~should~be~
     a~single~non-space~token.
@@ -3603,40 +3603,40 @@
     where~a~single~token~is~required,~LaTeX~found~'#2'.
     \c_@@_ignore_def_tl
   }
-\__kernel_msg_new:nnnn { xparse } { forbidden-implicit-group-token }
+\__kernel_msg_new:nnnn { ltcmd } { forbidden-implicit-group-token }
   { Argument~delimiter~'#2'~for~the~#1~is~not~allowed. }
   {
     The~argument~specification~provided~was~not~valid:~the~implicit~
     #3-group~token~'#2'~is~not~allowed~as~an~argument~delimiter.
     \c_@@_ignore_def_tl
   }
-\__kernel_msg_new:nnnn { xparse } { processor-in-expandable }
+\__kernel_msg_new:nnnn { ltcmd } { processor-in-expandable }
   { Argument~processor~'>{#2}'~cannot~be~used~for~the~expandable~command~'#1'. }
   {
     The~argument~specification~for~#1~contains~a~processor~function:~
     this~is~only~supported~for~standard~robust~commands.
     \c_@@_ignore_def_tl
   }
-\__kernel_msg_new:nnnn { xparse } { too-many-arguments }
+\__kernel_msg_new:nnnn { ltcmd } { too-many-arguments }
   { Too~many~arguments~in~argument~specification~'#2'~of~#1. }
   {
     The~argument~specification~provided~has~more~than~9~arguments.~
     This~cannot~be~implemented.
     \c_@@_ignore_def_tl
   }
-\__kernel_msg_new:nnnn { xparse } { two-markers }
+\__kernel_msg_new:nnnn { ltcmd } { two-markers }
   { Two~'#2'~apply~to~the~same~argument~in~argument~specification~of~#1. }
   {
     The~argument~specification~provided~has~two~markers~'#2'~applying~
     to~the~same~argument;~these~are~redundant.
   }
-\__kernel_msg_new:nnnn { xparse } { unknown-argument-type }
+\__kernel_msg_new:nnnn { ltcmd } { unknown-argument-type }
   { Unknown~argument~type~'#2'~for~the~#1. }
   {
     The~letter~'#2'~does~not~specify~a~known~argument~type.
     \c_@@_ignore_def_tl
   }
-\__kernel_msg_new:nnnn { xparse } { xparse-argument-type }
+\__kernel_msg_new:nnnn { ltcmd } { xparse-argument-type }
   { Deprecated~argument~type~'#2'~for~the~#1~requires~xparse. }
   {
     The~letter~'#2'~specifies~a~known~argument~type~that~requires~
@@ -3650,40 +3650,40 @@
 % \texttt{loop-in-defaults} and \texttt{missing-required} messages can
 % be expandable or not expandable.
 %    \begin{macrocode}
-\__kernel_msg_new:nnn { xparse } { if-boolean }
+\__kernel_msg_new:nnn { ltcmd } { if-boolean }
   { Invalid~use~\iow_char:N\\IfBooleanTF~{#1} }
-\__kernel_msg_new:nnnn { xparse } { loop-in-defaults }
+\__kernel_msg_new:nnnn { ltcmd } { loop-in-defaults }
   { Defaults~of~#1~have~circular~dependency. }
   {
     The~default~values~of~two~or~more~arguments~of~the~#1~
     depend~on~each~other~in~a~way~that~cannot~be~resolved.
   }
-\__kernel_msg_new:nnnn { xparse } { missing-required }
+\__kernel_msg_new:nnnn { ltcmd } { missing-required }
   { Missing~required~argument~for~#1. }
   {
     The~current~#1~expects~an~argument~starting~with~'#2'.~
     LaTeX~did~not~find~it,~and~will~insert~a~default~value~to~be~processed.
   }
-\__kernel_msg_new:nnnn { xparse } { non-xparse }
+\__kernel_msg_new:nnnn { ltcmd } { non-xparse }
   { \str_uppercase:n #1~not~defined~using~xparse. }
   {
     You~have~asked~for~the~argument~specification~for~the~#1,~
     but~this~was~not~defined~using~xparse.
   }
-\__kernel_msg_new:nnnn { xparse } { split-excess-tokens }
+\__kernel_msg_new:nnnn { ltcmd } { split-excess-tokens }
   { Too~many~'#1'~tokens~when~trying~to~split~argument. }
   {
     LaTeX~was~asked~to~split~the~input~'#3'~
     at~each~occurrence~of~the~token~'#1',~up~to~a~maximum~of~#2~parts.~
     There~were~too~many~'#1'~tokens.
   }
-\__kernel_msg_new:nnnn { xparse } { unknown }
+\__kernel_msg_new:nnnn { ltcmd } { unknown }
   { Unknown~document~#1. }
   {
     You~have~asked~for~the~argument~specification~for~the~#1,~
     but~it~is~not~defined.
   }
-\__kernel_msg_new:nnnn { xparse } { verbatim-newline }
+\__kernel_msg_new:nnnn { ltcmd } { verbatim-newline }
   { Verbatim~argument~of~#1~ended~by~end~of~line. }
   {
     The~verbatim~argument~of~the~#1~cannot~contain~more~than~one~line,~
@@ -3693,7 +3693,7 @@
     \\ \\
     LaTeX~will~ignore~'#2'.
   }
-\__kernel_msg_new:nnnn { xparse } { verbatim-tokenized }
+\__kernel_msg_new:nnnn { ltcmd } { verbatim-tokenized }
   { The~verbatim~#1~cannot~be~used~inside~an~argument. }
   {
     The~#1~takes~a~verbatim~argument.~
@@ -3706,33 +3706,33 @@
 %
 % Intended more for information.
 %    \begin{macrocode}
-\__kernel_msg_new:nnn { xparse } { define-command }
+\__kernel_msg_new:nnn { ltcmd } { define-command }
   {
     Defining~command~#1~
     with~sig.~'#2'~\msg_line_context:.
   }
-\__kernel_msg_new:nnn { xparse } { define-environment }
+\__kernel_msg_new:nnn { ltcmd } { define-environment }
   {
     Defining~environment~'#1'~
     with~sig.~'#2'~\msg_line_context:.
   }
-\__kernel_msg_new:nnn { xparse } { redefine-command }
+\__kernel_msg_new:nnn { ltcmd } { redefine-command }
   {
     Redefining~command~#1~
     with~sig.~'#2'~\msg_line_context:.
   }
-\__kernel_msg_new:nnn { xparse } { redefine-environment }
+\__kernel_msg_new:nnn { ltcmd } { redefine-environment }
   {
     Redefining~environment~'#1'~
     with~sig.~'#2'~\msg_line_context:.
   }
-\__kernel_msg_new:nnn { xparse } { optional-mandatory }
+\__kernel_msg_new:nnn { ltcmd } { optional-mandatory }
   {
     Since~the~mandatory~argument~'#1'~has~the~same~delimiter~'#2'~
     as~a~previous~optional~argument,~it~will~not~be~possible~to~
     omit~all~optional~arguments~when~calling~this~command.
   }
-\__kernel_msg_new:nnn { xparse } { unsupported-let }
+\__kernel_msg_new:nnn { ltcmd } { unsupported-let }
   {
     The~command~'#1'~was~undefined~but~not~the~associated~commands~
     '#1~code'~and/or~'#1~defaults'.~Maybe~you~tried~using~
@@ -3770,7 +3770,7 @@
       {
         \cs_if_exist:NTF #1
           {
-            \__kernel_msg_error:nnxx { xparse } { command-already-defined }
+            \__kernel_msg_error:nnxx { ltcmd } { command-already-defined }
               { \use:nnn \token_to_str:N #1 { } }
               { \token_to_str:N \NewDocumentCommand }
           }
@@ -3784,7 +3784,7 @@
         \cs_if_exist:NTF #1
           { \@@_declare_cmd:Nnn #1 {#2} {#3} }
           {
-            \__kernel_msg_error:nnxx { xparse } { command-not-yet-defined }
+            \__kernel_msg_error:nnxx { ltcmd } { command-not-yet-defined }
               { \use:nnn \token_to_str:N #1 { } }
               { \token_to_str:N \RenewDocumentCommand }
           }
@@ -3815,14 +3815,14 @@
 \cs_new_protected:Npn \NewDocumentEnvironment #1#2#3#4
   {
     \cs_if_exist:cTF {#1}
-      { \__kernel_msg_error:nnx { xparse } { environment-already-defined } {#1} }
+      { \__kernel_msg_error:nnx { ltcmd } { environment-already-defined } {#1} }
       { \@@_declare_env:nnnn {#1} {#2} {#3} {#4} }
   }
 \cs_new_protected:Npn \RenewDocumentEnvironment #1#2#3#4
   {
     \cs_if_exist:cTF {#1}
       { \@@_declare_env:nnnn {#1} {#2} {#3} {#4} }
-      { \__kernel_msg_error:nnx { xparse } { environment-not-yet-defined } {#1} }
+      { \__kernel_msg_error:nnx { ltcmd } { environment-not-yet-defined } {#1} }
   }
 \cs_new_protected:Npn \ProvideDocumentEnvironment #1#2#3#4
   { \cs_if_exist:cF {#1} { \@@_declare_env:nnnn {#1} {#2} {#3} {#4} } }
@@ -3849,7 +3849,7 @@
       {
         \cs_if_exist:NTF #1
           {
-            \__kernel_msg_error:nnxx { xparse } { command-already-defined }
+            \__kernel_msg_error:nnxx { ltcmd } { command-already-defined }
               { \use:nnn \token_to_str:N #1 { } }
               { \token_to_str:N \NewExpandableDocumentCommand }
           }
@@ -3863,7 +3863,7 @@
         \cs_if_exist:NTF #1
           { \@@_declare_expandable_cmd:Nnn #1 {#2} {#3} }
           {
-            \__kernel_msg_error:nnxx { xparse } { command-not-yet-defined }
+            \__kernel_msg_error:nnxx { ltcmd } { command-not-yet-defined }
               { \use:nnn \token_to_str:N #1 { } }
               { \token_to_str:N \RenewExpandableDocumentCommand }
           }
@@ -3915,7 +3915,7 @@
     \prg_break:n { \use:n }
     \prg_break_point:
     {
-      \__kernel_msg_expandable_error:nnn { xparse } { if-boolean } {#1}
+      \__kernel_msg_expandable_error:nnn { ltcmd } { if-boolean } {#1}
       \use_ii:nn
     }
   }





More information about the latex3-commits mailing list.