[latex3-commits] [git/LaTeX3-latex3-latex2e] kernel-msgs: Move ltcmd messages from \__kernel_msg to \msg (25654142)

PhelypeOleinik phelype.oleinik at latex-project.org
Tue May 18 05:08:42 CEST 2021


Repository : https://github.com/latex3/latex2e
On branch  : kernel-msgs
Link       : https://github.com/latex3/latex2e/commit/256541422771276187864902fc08069feb296186

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

commit 256541422771276187864902fc08069feb296186
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date:   Tue May 18 00:08:42 2021 -0300

    Move ltcmd messages from \__kernel_msg to \msg


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

256541422771276187864902fc08069feb296186
 base/ltcmd.dtx | 157 +++++++++++++++++++++++++++++----------------------------
 1 file changed, 81 insertions(+), 76 deletions(-)

diff --git a/base/ltcmd.dtx b/base/ltcmd.dtx
index fee55558..a0e9ae71 100644
--- a/base/ltcmd.dtx
+++ b/base/ltcmd.dtx
@@ -331,6 +331,11 @@
 \msg_redirect_module:nnn { LaTeX / ltcmd } { info } { none }
 %    \end{macrocode}
 %
+%   Also add \pkg{ltcmd} to the \pkg{LaTeX} messages.
+%    \begin{macrocode}
+\prop_gput:Nnn \g_msg_module_type_prop { ltcmd } { LaTeX }
+%    \end{macrocode}
+%
 % \subsection{Declaring commands and environments}
 %
 % \begin{macro}{\@@_declare_cmd:Nnn, \@@_declare_expandable_cmd:Nnn}
@@ -358,7 +363,7 @@
   {
     \cs_if_exist:NTF #1
       {
-        \__kernel_msg_info:nnxx { ltcmd } { redefine-command }
+        \msg_info:nnxx { ltcmd } { redefine-command }
           { \token_to_str:N #1 } { \tl_to_str:n {#2} }
       }
       {
@@ -366,10 +371,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 { ltcmd } { unsupported-let }
+            \msg_warning:nnx { ltcmd } { unsupported-let }
               { \token_to_str:N #1 }
           }
-        \__kernel_msg_info:nnxx { ltcmd } { define-command }
+        \msg_info:nnxx { ltcmd } { define-command }
           { \token_to_str:N #1 } { \tl_to_str:n {#2} }
       }
     \bool_set_false:N \l_@@_environment_bool
@@ -528,11 +533,11 @@
       { \tl_trim_spaces:o { \l_@@_environment_str } }
     \cs_if_exist:cTF { \l_@@_environment_str }
       {
-        \__kernel_msg_info:nnxx { ltcmd } { redefine-environment }
+        \msg_info:nnxx { ltcmd } { redefine-environment }
           { \l_@@_environment_str } { \tl_to_str:n {#2} }
       }
       {
-        \__kernel_msg_info:nnxx { ltcmd } { define-environment }
+        \msg_info:nnxx { ltcmd } { define-environment }
           { \l_@@_environment_str } { \tl_to_str:n {#2} }
       }
     \bool_set_false:N \l_@@_expandable_bool
@@ -685,7 +690,7 @@
   }
 \cs_new_protected:Npn \@@_defaults_error:w \q_recursion_stop
   {
-    \__kernel_msg_error:nnx { ltcmd } { loop-in-defaults }
+    \msg_error:nnx { ltcmd } { loop-in-defaults }
       { \@@_environment_or_command: }
   }
 %    \end{macrocode}
@@ -813,7 +818,7 @@
     \@@_end_expandable_defaults:nnnNNn {#1} { } {#1} #2#3
       { } { } { } { } { } { } { } { } { } { }
       {
-        \__kernel_msg_expandable_error:nnf
+        \msg_expandable_error:nnf
           { ltcmd } { loop-in-defaults }
           { \exp_args:Nf \tl_trim_spaces:n { \token_to_str:N #4 } }
         \use_iv:nnnn
@@ -912,7 +917,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 { ltcmd } { too-many-arguments }
+        \msg_error:nnxx { ltcmd } { too-many-arguments }
           { \@@_environment_or_command: } { \tl_to_str:n {#1} }
         \@@_bad_def:wn
       }
@@ -920,7 +925,7 @@
       {
         \tl_if_empty:NF \l_@@_last_delimiters_tl
           {
-            \__kernel_msg_error:nnxx { ltcmd } { expandable-ending-optional }
+            \msg_error:nnxx { ltcmd } { expandable-ending-optional }
               { \iow_char:N \\ \l_@@_function_tl } { \tl_to_str:n {#1} }
             \@@_bad_def:wn
           }
@@ -944,11 +949,11 @@
             { \str_if_eq_p:nn {#1} { u } }
           }
           {
-            \__kernel_msg_error:nnxx { ltcmd } { xparse-argument-type }
+            \msg_error:nnxx { ltcmd } { xparse-argument-type }
               { \@@_environment_or_command: } { \tl_to_str:n {#1} }
           }
           {
-            \__kernel_msg_error:nnxx { ltcmd } { unknown-argument-type }
+            \msg_error:nnxx { ltcmd } { unknown-argument-type }
               { \@@_environment_or_command: } { \tl_to_str:n {#1} }
           }
         \@@_bad_def:wn
@@ -1020,7 +1025,7 @@
     \quark_if_recursion_tail_stop_do:nn {#2} { \@@_bad_arg_spec:wn }
     \bool_if:NT \l_@@_expandable_bool
       {
-        \__kernel_msg_error:nnxx { ltcmd } { processor-in-expandable }
+        \msg_error:nnxx { ltcmd } { processor-in-expandable }
           { \iow_char:N \\ \l_@@_function_tl } { \tl_to_str:n {#1} }
         \@@_bad_def:wn
       }
@@ -1034,7 +1039,7 @@
     \quark_if_recursion_tail_stop_do:nn {#1} { \@@_bad_arg_spec:wn }
     \bool_if:NT \l_@@_long_bool
       {
-        \__kernel_msg_error:nnxx { ltcmd } { two-markers }
+        \msg_error:nnxx { ltcmd } { two-markers }
           { \@@_environment_or_command: } { + }
         \@@_bad_def:wn
       }
@@ -1047,7 +1052,7 @@
     \quark_if_recursion_tail_stop_do:nn {#1} { \@@_bad_arg_spec:wn }
     \bool_if:NT \l_@@_obey_spaces_bool
       {
-        \__kernel_msg_error:nnxx { ltcmd } { two-markers }
+        \msg_error:nnxx { ltcmd } { two-markers }
           { \@@_environment_or_command: } { ! }
         \@@_bad_def:wn
       }
@@ -1179,7 +1184,7 @@
   {
     \bool_if:NF \l_@@_environment_bool
       {
-        \__kernel_msg_error:nnxx
+        \msg_error:nnxx
           { ltcmd } { invalid-command-arg }
           { \@@_environment_or_command: } { b }
         \@@_bad_def:wn
@@ -1187,7 +1192,7 @@
     \tl_clear:N \l_@@_last_delimiters_tl
     \@@_add_arg_spec:n { b }
     \quark_if_recursion_tail_stop:n {#1}
-    \__kernel_msg_error:nnxx { ltcmd } { arg-after-body }
+    \msg_error:nnxx { ltcmd } { arg-after-body }
       { \@@_environment_or_command: }
       { \tl_to_str:n {#1} }
     \@@_bad_def:wn
@@ -1203,7 +1208,7 @@
   {
     \tl_trim_spaces_apply:nN {#1} \tl_if_single_token:nF
       {
-        \__kernel_msg_error:nnxx { ltcmd } { not-single-token }
+        \msg_error:nnxx { ltcmd } { not-single-token }
           { \@@_environment_or_command: } { \tl_to_str:n {#1} }
         \@@_bad_def:wn
       }
@@ -1235,7 +1240,7 @@
             { \use_none:n }
         }
       {
-        \__kernel_msg_error:nnxxx
+        \msg_error:nnxxx
           { ltcmd } { forbidden-implicit-group-token }
           { \@@_environment_or_command: } { \tl_to_str:n {#1} }
           {
@@ -1256,7 +1261,7 @@
   {
     \bool_if:NT \l_@@_expandable_bool
       {
-        \__kernel_msg_error:nnxx
+        \msg_error:nnxx
           { ltcmd } { invalid-expandable-argument-type }
           { \iow_char:N \\ \l_@@_function_tl } { \tl_to_str:n {#1} }
         \@@_bad_def:wn
@@ -1269,7 +1274,7 @@
       {
         \tl_if_empty:NF \l_@@_last_delimiters_tl
           {
-            \__kernel_msg_error:nnxx
+            \msg_error:nnxx
               { ltcmd } { invalid-after-optional-expandably }
               { \iow_char:N \\ \l_@@_function_tl } { \tl_to_str:n {#1} }
             \@@_bad_def:wn
@@ -1291,7 +1296,7 @@
       {
         \tl_if_eq:nnT {##1} {#1}
           {
-            \__kernel_msg_warning:nnxx { ltcmd } { optional-mandatory }
+            \msg_warning:nnxx { ltcmd } { optional-mandatory }
               {#2} {#3}
           }
       }
@@ -1305,7 +1310,7 @@
 %    \begin{macrocode}
 \cs_new_protected:Npn \@@_bad_arg_spec:wn #1 \@@_break_point:n #2
   {
-    \__kernel_msg_error:nnxx { ltcmd } { bad-arg-spec }
+    \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 { }
@@ -1331,7 +1336,7 @@
       {
         \bool_if:NT \l_@@_expandable_bool
           {
-            \__kernel_msg_error:nnx { ltcmd } { inconsistent-long }
+            \msg_error:nnx { ltcmd } { inconsistent-long }
               { \iow_char:N \\ \l_@@_function_tl }
             \@@_bad_def:wn
           }
@@ -1353,7 +1358,7 @@
   {
     \bool_if:NT \l_@@_some_obey_spaces_bool
       {
-        \__kernel_msg_error:nnxx { ltcmd } { non-trailing-obey-spaces }
+        \msg_error:nnxx { ltcmd } { non-trailing-obey-spaces }
           { \@@_environment_or_command: } { \tl_to_str:n {#1} }
         \@@_bad_def:wn
       }
@@ -2331,7 +2336,7 @@
     \@@_peek_nonspace_remove:NTF #1
       { \@@_grab_D_call:Nw #1 }
       {
-        \__kernel_msg_error:nnxx { ltcmd } { missing-required }
+        \msg_error:nnxx { ltcmd } { missing-required }
           { \@@_environment_or_command: }
           { \token_to_str:N #1 }
         \@@_add_arg:o \c_novalue_tl
@@ -2584,14 +2589,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 { ltcmd } { verbatim-newline }
+        \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 { ltcmd } { verbatim-tokenized }
+        \msg_error:nnxxx { ltcmd } { verbatim-tokenized }
           { \@@_environment_or_command: }
           { \tl_to_str:N \l_@@_v_arg_tl }
           { \tl_to_str:n {#1} }
@@ -2942,7 +2947,7 @@
               \q_nil { } ##2 \ERROR \q_@@ \ERROR
           }
           {
-            \__kernel_msg_expandable_error:nnff
+            \msg_expandable_error:nnff
               { ltcmd } { missing-required }
               { \exp_args:Nf \tl_trim_spaces:n { \token_to_str:N ##5 } }
               { \tl_to_str:n {##2} }
@@ -2980,7 +2985,7 @@
               ##6 \ERROR
           }
           {
-            \__kernel_msg_expandable_error:nnff
+            \msg_expandable_error:nnff
               { ltcmd } { missing-required }
               { \exp_args:Nf \tl_trim_spaces:n { \token_to_str:N ##4 } }
               { \tl_to_str:n {##2} }
@@ -3114,7 +3119,7 @@
                   \ProcessedArgument
                   \q_stop
               }
-            \__kernel_msg_error:nnxxx { ltcmd } { split-excess-tokens }
+            \msg_error:nnxxx { ltcmd } { split-excess-tokens }
               { \tl_to_str:n {#3} } { \int_eval:n { #2 + 1 } }
               { \tl_to_str:n {#4} }
           }
@@ -3177,11 +3182,11 @@
   {
     #1
       {
-        \__kernel_msg_error:nnx { ltcmd } { non-xparse }
+        \msg_error:nnx { ltcmd } { non-xparse }
           { \@@_environment_or_command: }
       }
       {
-        \__kernel_msg_error:nnx { ltcmd } { unknown }
+        \msg_error:nnx { ltcmd } { unknown }
           { \@@_environment_or_command: }
       }
   }
@@ -3305,11 +3310,11 @@
         }
         { \group_end: \use_ii:nnn }
       {
-        \__kernel_msg_error:nnxx { ltcmd } { not-definable }
+        \msg_error:nnxx { ltcmd } { not-definable }
           { \tl_to_str:n {#1} } { \token_to_str:N #2 }
       }
       {
-        \__kernel_msg_error:nnxx { ltcmd } { not-one-token }
+        \msg_error:nnxx { ltcmd } { not-one-token }
           { \tl_to_str:n {#1} } { \token_to_str:N #2 }
       }
     }
@@ -3504,49 +3509,49 @@
 %
 % Some messages intended as errors when defining commands/environments.
 %    \begin{macrocode}
-\__kernel_msg_new:nnnn { ltcmd } { arg-after-body }
+\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 { ltcmd } { bad-arg-spec }
+\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 { ltcmd } { command-already-defined }
+\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 { ltcmd } { command-not-yet-defined }
+\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 { ltcmd } { environment-already-defined }
+\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 { ltcmd } { environment-not-yet-defined }
+\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 { ltcmd } { expandable-ending-optional }
+\msg_new:nnnn { ltcmd } { expandable-ending-optional }
   {
     Argument~specification~'#2'~for~expandable~command~'#1'~
     ends~with~optional~argument.
@@ -3556,13 +3561,13 @@
     (or~no~arguments~at~all).~You~cannot~have~a~terminal~optional~
     argument~with~expandable~commands.
   }
-\__kernel_msg_new:nnnn { ltcmd } { inconsistent-long }
+\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 { ltcmd } { invalid-command-arg }
+\msg_new:nnnn { ltcmd } { invalid-command-arg }
   { Argument~type~'#2'~not~available~for~#1. }
   {
     The~letter~'#2'~can~only~be~used~in~environment~argument~
@@ -3570,14 +3575,14 @@
     \\ \\
     LaTeX~will~ignore~this~entire~definition.
   }
-\__kernel_msg_new:nnnn { ltcmd } { invalid-expandable-argument-type }
+\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 { ltcmd } { invalid-after-optional-expandably }
+\msg_new:nnnn { ltcmd } { invalid-after-optional-expandably }
   {
     Argument~type~'#2'~not~available~after~optional~argument~
     for~expandable~command~'#1'.
@@ -3587,13 +3592,13 @@
     in~an~expandable~command~after~an~optional~argument.
     \c_@@_ignore_def_tl
   }
-\__kernel_msg_new:nnnn { ltcmd } { non-trailing-obey-spaces }
+\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 { ltcmd } { not-definable }
+\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~
@@ -3601,7 +3606,7 @@
     backslash~is~missing?
     \c_@@_ignore_def_tl
   }
-\__kernel_msg_new:nnnn { ltcmd } { not-one-token }
+\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~
@@ -3609,7 +3614,7 @@
     token.~Perhaps~a~backslash~is~missing?
     \c_@@_ignore_def_tl
   }
-\__kernel_msg_new:nnnn { ltcmd } { not-single-token }
+\msg_new:nnnn { ltcmd } { not-single-token }
   {
     Argument~delimiter~'#2'~for~the~#1~should~be~
     a~single~non-space~token.
@@ -3619,40 +3624,40 @@
     where~a~single~token~is~required,~LaTeX~found~'#2'.
     \c_@@_ignore_def_tl
   }
-\__kernel_msg_new:nnnn { ltcmd } { forbidden-implicit-group-token }
+\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 { ltcmd } { processor-in-expandable }
+\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 { ltcmd } { too-many-arguments }
+\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 { ltcmd } { two-markers }
+\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 { ltcmd } { unknown-argument-type }
+\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 { ltcmd } { xparse-argument-type }
+\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~
@@ -3666,40 +3671,40 @@
 % \texttt{loop-in-defaults} and \texttt{missing-required} messages can
 % be expandable or not expandable.
 %    \begin{macrocode}
-\__kernel_msg_new:nnn { ltcmd } { if-boolean }
+\msg_new:nnn { ltcmd } { if-boolean }
   { Invalid~use~\iow_char:N\\IfBooleanTF~{#1} }
-\__kernel_msg_new:nnnn { ltcmd } { loop-in-defaults }
+\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 { ltcmd } { missing-required }
+\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 { ltcmd } { non-xparse }
+\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 { ltcmd } { split-excess-tokens }
+\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 { ltcmd } { unknown }
+\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 { ltcmd } { verbatim-newline }
+\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,~
@@ -3709,7 +3714,7 @@
     \\ \\
     LaTeX~will~ignore~'#2'.
   }
-\__kernel_msg_new:nnnn { ltcmd } { verbatim-tokenized }
+\msg_new:nnnn { ltcmd } { verbatim-tokenized }
   { The~verbatim~#1~cannot~be~used~inside~an~argument. }
   {
     The~#1~takes~a~verbatim~argument.~
@@ -3722,33 +3727,33 @@
 %
 % Intended more for information.
 %    \begin{macrocode}
-\__kernel_msg_new:nnn { ltcmd } { define-command }
+\msg_new:nnn { ltcmd } { define-command }
   {
     Defining~command~#1~
     with~sig.~'#2'~\msg_line_context:.
   }
-\__kernel_msg_new:nnn { ltcmd } { define-environment }
+\msg_new:nnn { ltcmd } { define-environment }
   {
     Defining~environment~'#1'~
     with~sig.~'#2'~\msg_line_context:.
   }
-\__kernel_msg_new:nnn { ltcmd } { redefine-command }
+\msg_new:nnn { ltcmd } { redefine-command }
   {
     Redefining~command~#1~
     with~sig.~'#2'~\msg_line_context:.
   }
-\__kernel_msg_new:nnn { ltcmd } { redefine-environment }
+\msg_new:nnn { ltcmd } { redefine-environment }
   {
     Redefining~environment~'#1'~
     with~sig.~'#2'~\msg_line_context:.
   }
-\__kernel_msg_new:nnn { ltcmd } { optional-mandatory }
+\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 { ltcmd } { unsupported-let }
+\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~
@@ -3786,7 +3791,7 @@
       {
         \cs_if_exist:NTF #1
           {
-            \__kernel_msg_error:nnxx { ltcmd } { command-already-defined }
+            \msg_error:nnxx { ltcmd } { command-already-defined }
               { \use:nnn \token_to_str:N #1 { } }
               { \token_to_str:N \NewDocumentCommand }
           }
@@ -3800,7 +3805,7 @@
         \cs_if_exist:NTF #1
           { \@@_declare_cmd:Nnn #1 {#2} {#3} }
           {
-            \__kernel_msg_error:nnxx { ltcmd } { command-not-yet-defined }
+            \msg_error:nnxx { ltcmd } { command-not-yet-defined }
               { \use:nnn \token_to_str:N #1 { } }
               { \token_to_str:N \RenewDocumentCommand }
           }
@@ -3831,14 +3836,14 @@
 \cs_new_protected:Npn \NewDocumentEnvironment #1#2#3#4
   {
     \cs_if_exist:cTF {#1}
-      { \__kernel_msg_error:nnx { ltcmd } { environment-already-defined } {#1} }
+      { \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 { ltcmd } { environment-not-yet-defined } {#1} }
+      { \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} } }
@@ -3865,7 +3870,7 @@
       {
         \cs_if_exist:NTF #1
           {
-            \__kernel_msg_error:nnxx { ltcmd } { command-already-defined }
+            \msg_error:nnxx { ltcmd } { command-already-defined }
               { \use:nnn \token_to_str:N #1 { } }
               { \token_to_str:N \NewExpandableDocumentCommand }
           }
@@ -3879,7 +3884,7 @@
         \cs_if_exist:NTF #1
           { \@@_declare_expandable_cmd:Nnn #1 {#2} {#3} }
           {
-            \__kernel_msg_error:nnxx { ltcmd } { command-not-yet-defined }
+            \msg_error:nnxx { ltcmd } { command-not-yet-defined }
               { \use:nnn \token_to_str:N #1 { } }
               { \token_to_str:N \RenewExpandableDocumentCommand }
           }
@@ -3931,7 +3936,7 @@
     \prg_break:n { \use:n }
     \prg_break_point:
     {
-      \__kernel_msg_expandable_error:nnn { ltcmd } { if-boolean } {#1}
+      \msg_expandable_error:nnn { ltcmd } { if-boolean } {#1}
       \use_ii:nn
     }
   }





More information about the latex3-commits mailing list.