[latex3-commits] [git/LaTeX3-latex3-latex2e] TL21-2-kernel-msgs: xparse msg (a12a72b2)
Frank Mittelbach
frank.mittelbach at latex-project.org
Sun Jun 6 23:14:18 CEST 2021
Repository : https://github.com/latex3/latex2e
On branch : TL21-2-kernel-msgs
Link : https://github.com/latex3/latex2e/commit/a12a72b21544c8ed3036cc2bcd1269ba1c627bdf
>---------------------------------------------------------------
commit a12a72b21544c8ed3036cc2bcd1269ba1c627bdf
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date: Sun Jun 6 23:14:18 2021 +0200
xparse msg
>---------------------------------------------------------------
a12a72b21544c8ed3036cc2bcd1269ba1c627bdf
base/ltcmd.dtx | 4 ++--
base/testfiles-ltcmd/ltcmd007.lvt | 9 +++++++++
base/testfiles-ltcmd/ltcmd007.tlg | 14 +++++++++++++-
3 files changed, 24 insertions(+), 3 deletions(-)
diff --git a/base/ltcmd.dtx b/base/ltcmd.dtx
index c8134303..4f3203c2 100644
--- a/base/ltcmd.dtx
+++ b/base/ltcmd.dtx
@@ -1273,7 +1273,7 @@
{
\tl_if_empty:NF \l_@@_last_delimiters_tl
{
- \msg_error:nnxx { cmd } { invalid-after-optional-expandably }
+ \msg_error:nnxx { xparse } { invalid-after-optional-expandably }
{ \iow_char:N \\ \l_@@_function_tl } { \tl_to_str:n {#1} }
\@@_bad_def:wn
}
@@ -3577,7 +3577,7 @@
in~an~expandable~command.
\c_@@_ignore_def_tl
}
-\msg_new:nnnn { cmd } { invalid-after-optional-expandably }
+\msg_new:nnnn { xparse } { invalid-after-optional-expandably }
% { Invalid~argument~type~'#2'~in~#1. }
{
Argument~type~'#2'~not~available~after~optional~argument~
diff --git a/base/testfiles-ltcmd/ltcmd007.lvt b/base/testfiles-ltcmd/ltcmd007.lvt
index f27f8eda..8de88a8b 100644
--- a/base/testfiles-ltcmd/ltcmd007.lvt
+++ b/base/testfiles-ltcmd/ltcmd007.lvt
@@ -32,4 +32,13 @@
}
+\OMIT
+\RequirePackage{xparse}
+\TIMO
+
+\TEST { deprecated~ stuff }
+ {
+ \NewExpandableDocumentCommand\dummy{ol}{}
+ }
+
\END
diff --git a/base/testfiles-ltcmd/ltcmd007.tlg b/base/testfiles-ltcmd/ltcmd007.tlg
index 21ccb9f9..0c384699 100644
--- a/base/testfiles-ltcmd/ltcmd007.tlg
+++ b/base/testfiles-ltcmd/ltcmd007.tlg
@@ -31,7 +31,7 @@ not find this argument and will insert a default value for further processing.
============================================================
TEST 2: Optional + mandatory same delimiters
============================================================
-LaTeX cmd Warning: Optional and mandatory argument with same delimiter '['
+LaTeX cmd Warning: Optional and mandatory argument with same delimiter '['.
(cmd)
(cmd) The mandatory argument specified with 'r' or 'R' has the
(cmd) same delimiter '[' as an earlier optional argument. It will
@@ -50,3 +50,15 @@ not find this argument and will insert a default value for further processing.
|C|\BooleanFalse |D|
|E|\BooleanTrue |G|
============================================================
+============================================================
+TEST 3: deprecated stuff
+============================================================
+! Package xparse Error: Argument type 'l' not available after optional
+(xparse) argument for expandable command '\dummy'.
+For immediate help type H <return>.
+ ...
+l. ... }
+The letter 'l' specifies an argument type which cannot be used in an
+expandable command after an optional argument.
+LaTeX will ignore this entire definition.
+============================================================
More information about the latex3-commits
mailing list.