[latex3-commits] [git/LaTeX3-latex3-latex3] morechk: bruno-suggested improvements (128c31a)
Will Robertson
wspr81 at gmail.com
Mon Apr 15 13:45:31 CEST 2019
Repository : https://github.com/latex3/latex3
On branch : morechk
Link : https://github.com/latex3/latex3/commit/128c31abea34c04aaa1abeb836cb018bc4a3725b
>---------------------------------------------------------------
commit 128c31abea34c04aaa1abeb836cb018bc4a3725b
Author: Will Robertson <wspr81 at gmail.com>
Date: Thu Jan 17 00:09:32 2019 +1030
bruno-suggested improvements
>---------------------------------------------------------------
128c31abea34c04aaa1abeb836cb018bc4a3725b
l3kernel/l3basics.dtx | 5 +++--
l3kernel/l3msg.dtx | 9 ++++++++-
l3kernel/testfiles/m3chk001.luatex.tlg | 4 ++--
l3kernel/testfiles/m3chk001.tlg | 4 ++--
l3kernel/testfiles/m3chk004.luatex.tlg | 6 +++---
l3kernel/testfiles/m3chk004.tlg | 6 +++---
6 files changed, 21 insertions(+), 13 deletions(-)
diff --git a/l3kernel/l3basics.dtx b/l3kernel/l3basics.dtx
index 0d0aa3e..d9b4140 100644
--- a/l3kernel/l3basics.dtx
+++ b/l3kernel/l3basics.dtx
@@ -1820,7 +1820,7 @@
\@@_suspended:T \use_none:nnn
\cs_if_exist:NF ##1
{
- \__kernel_msg_error:nnx { kernel } { command-not-defined }
+ \__kernel_msg_error:nnx { kernel } { command-erroneous }
{ \token_to_str:N ##1 }
}
}
@@ -1830,7 +1830,7 @@
\cs_if_exist:NF ##1
{
\__kernel_msg_expandable_error:nnn
- { kernel } { command-not-defined } { ##1 }
+ { kernel } { command-erroneous } { ##1 }
}
}
\cs_set:Npn \__kernel_chk_exp_var_exist:NTF ##1 ##2 ##3
@@ -1839,6 +1839,7 @@
\cs_if_exist:NTF ##1
{ ##2 }
{
+ ##3
\__kernel_msg_expandable_error:nnn
{ kernel } { variable-not-defined } { ##1 }
##3
diff --git a/l3kernel/l3msg.dtx b/l3kernel/l3msg.dtx
index 6201bef..15462cb 100644
--- a/l3kernel/l3msg.dtx
+++ b/l3kernel/l3msg.dtx
@@ -1699,6 +1699,13 @@
LaTeX~has~been~asked~to~use~a~control~sequence~'#1':\\
this~has~not~been~defined~yet.
}
+\__kernel_msg_new:nnnn { kernel } { command-erroneous }
+ { Control~sequence~#1~undefined~or~invalid. }
+ {
+ \c_@@_coding_error_text_tl
+ LaTeX~has~been~asked~to~use~a~control~sequence~'#1':\\
+ this~has~not~been~defined~yet~or~is~invalid.
+ }
\__kernel_msg_new:nnn { kernel } { deprecated-command }
{
The~deprecated~command~'#2'~has~been~or~will~be~removed~on~#1.
@@ -1757,7 +1764,7 @@
Only~expandable~tests~can~have~a~predicate~version.
}
\__kernel_msg_new:nnn { kernel } { randint-backward-range }
- { Bounds~ordered~backwards~in~\iow_char:N\\int_rand:nn~{#1}~{#2}. }
+ { Bounds~ordered~backwards~in~\int_rand:nn {#1}~{#2}. }
\__kernel_msg_new:nnnn { kernel } { conditional-form-unknown }
{ Conditional~form~'#1'~for~function~'#2'~unknown. }
{
diff --git a/l3kernel/testfiles/m3chk001.luatex.tlg b/l3kernel/testfiles/m3chk001.luatex.tlg
index 5012e77..704e262 100644
--- a/l3kernel/testfiles/m3chk001.luatex.tlg
+++ b/l3kernel/testfiles/m3chk001.luatex.tlg
@@ -35,7 +35,7 @@ TEST 2: Use variables (undefined)
CS
! Undefined control sequence.
<argument> \LaTeX3 error:
- Control sequence \cs_bbb: undefined.
+ Control sequence \cs_bbb: undefined or invalid.
l. ... }
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
@@ -53,7 +53,7 @@ and I'll forget about whatever was undefined.
============================================================
! Undefined control sequence.
<argument> \LaTeX3 error:
- Control sequence \cs_bbb: undefined.
+ Control sequence \cs_bbb: undefined or invalid.
l. ... }
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
diff --git a/l3kernel/testfiles/m3chk001.tlg b/l3kernel/testfiles/m3chk001.tlg
index f3c2681..4d85573 100644
--- a/l3kernel/testfiles/m3chk001.tlg
+++ b/l3kernel/testfiles/m3chk001.tlg
@@ -35,7 +35,7 @@ TEST 2: Use variables (undefined)
CS
! Undefined control sequence.
<argument> \LaTeX3 error:
- Control sequence \cs_bbb: undefined.
+ Control sequence \cs_bbb: undefined or invalid.
l. ... }
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
@@ -53,7 +53,7 @@ and I'll forget about whatever was undefined.
============================================================
! Undefined control sequence.
<argument> \LaTeX3 error:
- Control sequence \cs_bbb: undefined.
+ Control sequence \cs_bbb: undefined or invalid.
l. ... }
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
diff --git a/l3kernel/testfiles/m3chk004.luatex.tlg b/l3kernel/testfiles/m3chk004.luatex.tlg
index d120f79..7a4a7fb 100644
--- a/l3kernel/testfiles/m3chk004.luatex.tlg
+++ b/l3kernel/testfiles/m3chk004.luatex.tlg
@@ -50,7 +50,7 @@ TEST 2: Use variables (undefined)
============================================================
! Undefined control sequence.
<argument> \LaTeX3 error:
- Control sequence \cs_bbb: undefined.
+ Control sequence \cs_bbb: undefined or invalid.
l. ... }
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
@@ -69,7 +69,7 @@ CS:
============================================================
! Undefined control sequence.
<argument> \LaTeX3 error:
- Control sequence \cs_bbb: undefined.
+ Control sequence \cs_bbb: undefined or invalid.
l. ... }
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
@@ -172,7 +172,7 @@ of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
-INT:0
+INT:0\l_B_int
============================================================
! Undefined control sequence.
<write> DIM:\dim_use:N \l_B_dim
diff --git a/l3kernel/testfiles/m3chk004.tlg b/l3kernel/testfiles/m3chk004.tlg
index 44a1f87..39cc52f 100644
--- a/l3kernel/testfiles/m3chk004.tlg
+++ b/l3kernel/testfiles/m3chk004.tlg
@@ -50,7 +50,7 @@ TEST 2: Use variables (undefined)
============================================================
! Undefined control sequence.
<argument> \LaTeX3 error:
- Control sequence \cs_bbb: undefined.
+ Control sequence \cs_bbb: undefined or invalid.
l. ... }
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
@@ -69,7 +69,7 @@ CS:
============================================================
! Undefined control sequence.
<argument> \LaTeX3 error:
- Control sequence \cs_bbb: undefined.
+ Control sequence \cs_bbb: undefined or invalid.
l. ... }
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
@@ -172,7 +172,7 @@ of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
-INT:0
+INT:0\l_B_int
============================================================
! Undefined control sequence.
<write> DIM:\dim_use:N \l_B_dim
More information about the latex3-commits
mailing list