diff --git a/l3kernel/l3basics.dtx b/l3kernel/l3basics.dtx index 18aac1bbe8..7902f4ddc3 100644 --- a/l3kernel/l3basics.dtx +++ b/l3kernel/l3basics.dtx @@ -751,6 +751,8 @@ % Unlike \cs{use:c}, these functions check for the existence of the control sequence % when the \texttt{check-declarations} option is in effect. % This affords a level of safety when testing. +% When checking, these functions consider \cs{relax} and \cs{scan_stop:} to be invalid +% and throw an error. % \end{function} % % \begin{function}[noTF, EXP, added = 2012-11-10] @@ -1754,7 +1756,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 } } } @@ -1764,28 +1766,32 @@ \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:N ##1 - { - \@@_suspended:T \use_none:nnn - \cs_if_exist:NF ##1 - { - \__kernel_msg_expandable_error:nnn - { kernel } { non-declared-variable } { ##1 } - } - } - \cs_set:Npn \__kernel_chk_exp_var_exist:NT ##1 ##2 + \cs_set:Npn \__kernel_chk_exp_var_exist:NTF ##1 ##2 ##3 { \@@_suspended:T \use_none:nnnn \cs_if_exist:NTF ##1 { ##2 } { + ##3 \__kernel_msg_expandable_error:nnn { kernel } { non-declared-variable } { ##1 } } } + \cs_set:Npn \__kernel_chk_exp_var_exist:NT ##1 ##2 + { + \__kernel_chk_exp_var_exist:NTF ##1 { ##2 } { } + } + \cs_set:Npn \__kernel_chk_exp_var_exist:NF ##1 ##2 + { + \__kernel_chk_exp_var_exist:NTF ##1 { } { ##2 } + } + \cs_set:Npn \__kernel_chk_exp_var_exist:N ##1 + { + \__kernel_chk_exp_var_exist:NTF ##1 { } { } + } \cs_set_protected:Npn \__kernel_chk_var_scope:NN { \@@_suspended:T \use_none:nnn @@ -1811,6 +1817,8 @@ \cs_set:Npn \__kernel_chk_exp_cs_exist:N ##1 { } \cs_set:Npn \__kernel_chk_exp_var_exist:N ##1 { } \cs_set:Npn \__kernel_chk_exp_var_exist:NT ##1##2 { ##2 } + \cs_set:Npn \__kernel_chk_exp_var_exist:NF ##1##2 { } + \cs_set:Npn \__kernel_chk_exp_var_exist:NTF ##1##2##3 { ##2 } \cs_set_protected:Npn \__kernel_chk_var_local:N ##1 { } \cs_set_protected:Npn \__kernel_chk_var_global:N ##1 { } \cs_set_protected:Npn \__kernel_chk_var_scope:NN ##1##2 { } @@ -1823,8 +1831,8 @@ { \exp_args:Nc \__kernel_chk_exp_cs_exist:N } \cs_set:Npn \__kernel_chk_exp_var_exist:c { \exp_args:Nc \__kernel_chk_exp_var_exist:N } - \cs_set:Npn \__kernel_chk_exp_var_exist:cT - { \exp_args:Nc \__kernel_chk_exp_var_exist:NT } + \cs_set:Npn \__kernel_chk_exp_var_exist:cF + { \exp_args:Nc \__kernel_chk_exp_var_exist:NF } \tex_ifodd:D \l@expl@check@declarations@bool \use:c { @@_check-declarations_on: } \else: @@ -2863,13 +2871,11 @@ { \cs_set:Npn \cs_use:N #1 { - \__kernel_chk_exp_cs_exist:N #1 - #1 + \exp:w \__kernel_chk_exp_cs_exist:N #1 \exp_after:wN \exp_end: #1 } \cs_set:Npn \cs_use:c #1 { - \__kernel_chk_exp_cs_exist:c {#1} - \cs:w #1 \cs_end: + \cs:w \__kernel_chk_exp_cs_exist:c {#1} #1 \cs_end: } } { diff --git a/l3kernel/l3int.dtx b/l3kernel/l3int.dtx index 6faaf1a980..c5b8304663 100644 --- a/l3kernel/l3int.dtx +++ b/l3kernel/l3int.dtx @@ -1443,8 +1443,9 @@ { \cs_new:Npn \int_use:c #1 { - \__kernel_chk_exp_var_exist:c {#1} - \tex_the:D \cs:w #1 \cs_end: + \tex_the:D + \__kernel_chk_exp_var_exist:cF {#1} { \c_zero_int } + \cs:w #1 \cs_end: } } { diff --git a/l3kernel/l3msg.dtx b/l3kernel/l3msg.dtx index fe4010b94a..243556d053 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. diff --git a/l3kernel/l3skip.dtx b/l3kernel/l3skip.dtx index 1d23f2fe20..f434e8717f 100644 --- a/l3kernel/l3skip.dtx +++ b/l3kernel/l3skip.dtx @@ -1671,8 +1671,9 @@ { \cs_new:Npn \dim_use:c #1 { - \__kernel_chk_exp_var_exist:c {#1} - \tex_the:D \cs:w #1 \cs_end: + \tex_the:D + \__kernel_chk_exp_var_exist:cF {#1} { \c_zero_dim } + \cs:w #1 \cs_end: } } { @@ -2026,8 +2027,9 @@ { \cs_new:Npn \skip_use:c #1 { - \__kernel_chk_exp_var_exist:c {#1} - \tex_the:D \cs:w #1 \cs_end: + \tex_the:D + \__kernel_chk_exp_var_exist:cF {#1} { \c_zero_skip } + \cs:w #1 \cs_end: } } { @@ -2306,8 +2308,9 @@ { \cs_new:Npn \muskip_use:c #1 { - \__kernel_chk_exp_var_exist:c {#1} - \tex_the:D \cs:w #1 \cs_end: + \tex_the:D + \__kernel_chk_exp_var_exist:cF {#1} { \c_zero_muskip } + \cs:w #1 \cs_end: } } { diff --git a/l3kernel/l3tl.dtx b/l3kernel/l3tl.dtx index 4ad65c0e04..40d1c05dbf 100644 --- a/l3kernel/l3tl.dtx +++ b/l3kernel/l3tl.dtx @@ -2391,17 +2391,17 @@ { \cs_new:Npn \tl_use:N #1 { - \tl_if_exist:NTF #1 {#1} - { - \__kernel_msg_expandable_error:nnn - { kernel } { bad-variable } {#1} - } + \exp:w \__kernel_chk_exp_var_exist:N #1 \exp_after:wN \exp_end: #1 + } + \cs_new:Npn \tl_use:c #1 + { + \cs:w \__kernel_chk_exp_var_exist:c {#1} #1 \cs_end: } } { - \cs_new:Npn \tl_use:N #1 {#1} + \cs_new_eq:NN \tl_use:N \cs_use:N + \cs_new_eq:NN \tl_use:c \cs_use:c } -\cs_generate_variant:Nn \tl_use:N { c } % \end{macrocode} % \end{macro} % diff --git a/l3kernel/testfiles/m3chk001.luatex.tlg b/l3kernel/testfiles/m3chk001.luatex.tlg index ff26677068..4d0fbdf78c 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. \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 @@ -50,9 +50,10 @@ 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. +============================================================ ! Undefined control sequence. \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 @@ -63,7 +64,7 @@ and I'll forget about whatever was undefined. TL ! Undefined control sequence. \LaTeX3 error: - Erroneous variable \l_B_tl used! + The variable \l_B_tl has not been declared \msg_line_context: l. ... } The control sequence at the end of the top line of your error message was never \def'ed. If you have @@ -71,8 +72,17 @@ 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. ! Undefined control sequence. + \l_B_tl +l. ... } +The control sequence at the end of the top line +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. +============================================================ +! Undefined control sequence. \LaTeX3 error: - Erroneous variable \l_B_tl used! + The variable \l_B_tl has not been declared \msg_line_context: l. ... } The control sequence at the end of the top line of your error message was never \def'ed. If you have @@ -83,7 +93,7 @@ and I'll forget about whatever was undefined. STR ! Undefined control sequence. \LaTeX3 error: - Erroneous variable \l_B_str used! + The variable \l_B_str has not been declared \msg_line_context: l. ... } The control sequence at the end of the top line of your error message was never \def'ed. If you have @@ -91,8 +101,7 @@ 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. ! Undefined control sequence. - \LaTeX3 error: - Erroneous variable \l_B_str used! + \l_B_str l. ... } The control sequence at the end of the top line of your error message was never \def'ed. If you have @@ -100,19 +109,20 @@ 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 ! Undefined control sequence. - ..._str}\SEPARATOR \TYPE {INT}\int_use:N \l_B_int - \int_use:c {l_B_int}\SEPAR... + \LaTeX3 error: + The variable \l_B_str has not been declared \msg_line_context: l. ... } The control sequence at the end of the top line 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 ! Undefined control sequence. - \LaTeX3 error: - The variable \l_B_int has not been declared \msg_line_context: + ...elax \SEPARATOR \TYPE {INT}\int_use:N \l_B_int + \relax \SEPARATOR \int_use... l. ... } The control sequence at the end of the top line of your error message was never \def'ed. If you have @@ -120,27 +130,25 @@ 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. ! You can't use `\relax' after \the. - \l_B_int -l. ... } -I'm forgetting what you said and using zero instead. -! You can't use `the character 0' after \the. - 0 + ...EPARATOR \TYPE {INT}\int_use:N \l_B_int \relax + \SEPARATOR \int_use:c {l_B... l. ... } I'm forgetting what you said and using zero instead. ============================================================ -DIM ! Undefined control sequence. - ..._int}\SEPARATOR \TYPE {DIM}\dim_use:N \l_B_dim - \dim_use:c {l_B_dim}\SEPAR... + \LaTeX3 error: + The variable \l_B_int has not been declared \msg_line_context: l. ... } The control sequence at the end of the top line 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. +============================================================ +DIM ! Undefined control sequence. - \LaTeX3 error: - The variable \l_B_dim has not been declared \msg_line_context: + ...elax \SEPARATOR \TYPE {DIM}\dim_use:N \l_B_dim + \relax \SEPARATOR \dim_use... l. ... } The control sequence at the end of the top line of your error message was never \def'ed. If you have @@ -148,27 +156,25 @@ 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. ! You can't use `\relax' after \the. - \l_B_dim -l. ... } -I'm forgetting what you said and using zero instead. -! You can't use `the character 0' after \the. - 0 + ...EPARATOR \TYPE {DIM}\dim_use:N \l_B_dim \relax + \SEPARATOR \dim_use:c {l_B... l. ... } I'm forgetting what you said and using zero instead. ============================================================ -SKIP ! Undefined control sequence. - ...m}\SEPARATOR \TYPE {SKIP}\skip_use:N \l_B_skip - \skip_use:c {l_B_skip}\SEP... + \LaTeX3 error: + The variable \l_B_dim has not been declared \msg_line_context: l. ... } The control sequence at the end of the top line 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. +============================================================ +SKIP ! Undefined control sequence. - \LaTeX3 error: - The variable \l_B_skip has not been declared \msg_line_context + ...x \SEPARATOR \TYPE {SKIP}\skip_use:N \l_B_skip + \relax \SEPARATOR \skip_us... l. ... } The control sequence at the end of the top line of your error message was never \def'ed. If you have @@ -176,24 +182,37 @@ 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. ! You can't use `\relax' after \the. - \l_B_skip + ...RATOR \TYPE {SKIP}\skip_use:N \l_B_skip \relax + \SEPARATOR \skip_use:c {l_... l. ... } I'm forgetting what you said and using zero instead. -! You can't use `the character 0' after \the. - 0 +============================================================ +! Undefined control sequence. + \LaTeX3 error: + The variable \l_B_skip has not been declared \msg_line_context l. ... } -I'm forgetting what you said and using zero instead. +The control sequence at the end of the top line +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. ============================================================ MUSKIP ! Undefined control sequence. ...ARATOR \TYPE {MUSKIP}\muskip_use:N \l_B_muskip - \muskip_use:c {l_B_muskip}... + \relax \SEPARATOR \muskip_... l. ... } The control sequence at the end of the top line 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. +! You can't use `\relax' after \the. + ...\TYPE {MUSKIP}\muskip_use:N \l_B_muskip \relax + \SEPARATOR \muskip_use:c {... +l. ... } +I'm forgetting what you said and using zero instead. +============================================================ ! Undefined control sequence. \LaTeX3 error: The variable \l_B_muskip has not been declared \msg_line_conte @@ -203,14 +222,6 @@ 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. -! You can't use `\relax' after \the. - \l_B_muskip -l. ... } -I'm forgetting what you said and using zero instead. -! You can't use `the character 0' after \the. - 0 -l. ... } -I'm forgetting what you said and using zero instead. ============================================================ BOX ! LaTeX3 Error: The variable \l_B_box has not been declared on line .... @@ -233,11 +244,12 @@ spelling (e.g., `I\hbox'). Otherwise just continue, and I'll forget about whatever was undefined. ! Missing number, treated as zero. -\cs_set_nopar:Npx +\relax l. ... } A number should have been here; I inserted `0'. (If you can't figure out why I needed to see a number, look up `weird error' in the index to The TeXbook.) +============================================================ ! LaTeX3 Error: The variable \l_B_box has not been declared on line .... For immediate help type H . ... @@ -274,6 +286,7 @@ l. ... } A number should have been here; I inserted `0'. (If you can't figure out why I needed to see a number, look up `weird error' in the index to The TeXbook.) +============================================================ ! LaTeX3 Error: The variable \l_B_box has not been declared on line .... For immediate help type H . ... @@ -302,6 +315,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. +============================================================ ! Undefined control sequence. \LaTeX3 error: Erroneous variable \l_B_seq used! @@ -322,6 +336,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. +============================================================ ! Undefined control sequence. \LaTeX3 error: Erroneous variable \l_B_clist used! @@ -342,6 +357,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. +============================================================ ! Undefined control sequence. \LaTeX3 error: The variable \l_B_fp has not been declared \msg_line_context: diff --git a/l3kernel/testfiles/m3chk001.lvt b/l3kernel/testfiles/m3chk001.lvt index c67a41068d..1330f02572 100644 --- a/l3kernel/testfiles/m3chk001.lvt +++ b/l3kernel/testfiles/m3chk001.lvt @@ -48,7 +48,7 @@ \TYPE{TL} \tl_use:N \l_A_tl \tl_use:c {l_A_tl} \SEPARATOR \TYPE{STR} \str_use:N \l_A_str - \str_use:c {l_A_str} \SEPARATOR + \str_use:c {l_A_str} \SEPARATOR \TYPE{INT} \int_use:N \l_A_int \int_use:c {l_A_int} \SEPARATOR \TYPE{DIM} \dim_use:N \l_A_dim @@ -64,39 +64,39 @@ \TYPE{SEQ} \seq_use:Nn \l_A_seq {} \seq_use:cn {l_A_seq} {} \SEPARATOR \TYPE{CLIST} \clist_use:Nn \l_A_clist {} - \clist_use:cn {l_A_clist} {} \SEPARATOR + \clist_use:cn {l_A_clist} {}\SEPARATOR \TYPE{FP} \fp_use:N \l_A_fp - \fp_use:c {l_A_fp} \SEPARATOR + \fp_use:c {l_A_fp} \SEPARATOR } %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \TEST { Use~ variables~ (undefined) } { - \TYPE{CS} \cs_use:N \cs_bbb: - \cs_use:c {cs_bbb:} \SEPARATOR - \TYPE{TL} \tl_use:N \l_B_tl - \tl_use:c {l_B_tl} \SEPARATOR - \TYPE{STR} \str_use:N \l_B_str - \str_use:c {l_B_str} \SEPARATOR - \TYPE{INT} \int_use:N \l_B_int - \int_use:c {l_B_int} \SEPARATOR - \TYPE{DIM} \dim_use:N \l_B_dim - \dim_use:c {l_B_dim} \SEPARATOR - \TYPE{SKIP} \skip_use:N \l_B_skip - \skip_use:c {l_B_skip} \SEPARATOR - \TYPE{MUSKIP} \muskip_use:N \l_B_muskip - \muskip_use:c {l_B_muskip} \SEPARATOR - \TYPE{BOX} \box_use:N \l_B_box - \box_use:c {l_B_box} \SEPARATOR - \TYPE{BOX} \box_use_drop:N \l_B_box - \box_use_drop:c {l_B_box} \SEPARATOR - \TYPE{SEQ} \seq_use:Nn \l_B_seq {} - \seq_use:cn {l_B_seq} {} \SEPARATOR - \TYPE{CLIST} \clist_use:Nn \l_B_clist {} - \clist_use:cn {l_B_clist} {} \SEPARATOR - \TYPE{FP} \fp_use:N \l_B_fp - \fp_use:c {l_B_fp} \SEPARATOR + \TYPE{CS} \cs_use:N \cs_bbb: \relax \SEPARATOR + \cs_use:c {cs_bbb:} \relax \SEPARATOR + \TYPE{TL} \tl_use:N \l_B_tl \relax \SEPARATOR + \tl_use:c {l_B_tl} \relax \SEPARATOR + \TYPE{STR} \str_use:N \l_B_str \relax \SEPARATOR + \str_use:c {l_B_str} \relax \SEPARATOR + \TYPE{INT} \int_use:N \l_B_int \relax \SEPARATOR + \int_use:c {l_B_int} \relax \SEPARATOR + \TYPE{DIM} \dim_use:N \l_B_dim \relax \SEPARATOR + \dim_use:c {l_B_dim} \relax \SEPARATOR + \TYPE{SKIP} \skip_use:N \l_B_skip \relax \SEPARATOR + \skip_use:c {l_B_skip} \relax \SEPARATOR + \TYPE{MUSKIP} \muskip_use:N \l_B_muskip \relax \SEPARATOR + \muskip_use:c {l_B_muskip} \relax \SEPARATOR + \TYPE{BOX} \box_use:N \l_B_box \relax \SEPARATOR + \box_use:c {l_B_box} \relax \SEPARATOR + \TYPE{BOX} \box_use_drop:N \l_B_box \relax \SEPARATOR + \box_use_drop:c {l_B_box} \relax \SEPARATOR + \TYPE{SEQ} \seq_use:Nn \l_B_seq {} \relax \SEPARATOR + \seq_use:cn {l_B_seq} {} \relax \SEPARATOR + \TYPE{CLIST} \clist_use:Nn \l_B_clist {} \relax \SEPARATOR + \clist_use:cn {l_B_clist} {} \relax \SEPARATOR + \TYPE{FP} \fp_use:N \l_B_fp \relax \SEPARATOR + \fp_use:c {l_B_fp} \relax \SEPARATOR } %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% diff --git a/l3kernel/testfiles/m3chk001.tlg b/l3kernel/testfiles/m3chk001.tlg index 80b4067491..26ad34e9e3 100644 --- a/l3kernel/testfiles/m3chk001.tlg +++ b/l3kernel/testfiles/m3chk001.tlg @@ -35,7 +35,7 @@ TEST 2: Use variables (undefined) CS ! Undefined control sequence. \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 @@ -50,9 +50,10 @@ 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. +============================================================ ! Undefined control sequence. \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 @@ -63,7 +64,7 @@ and I'll forget about whatever was undefined. TL ! Undefined control sequence. \LaTeX3 error: - Erroneous variable \l_B_tl used! + The variable \l_B_tl has not been declared \msg_... l. ... } The control sequence at the end of the top line of your error message was never \def'ed. If you have @@ -71,8 +72,17 @@ 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. ! Undefined control sequence. + \l_B_tl +l. ... } +The control sequence at the end of the top line +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. +============================================================ +! Undefined control sequence. \LaTeX3 error: - Erroneous variable \l_B_tl used! + The variable \l_B_tl has not been declared \msg_... l. ... } The control sequence at the end of the top line of your error message was never \def'ed. If you have @@ -83,7 +93,7 @@ and I'll forget about whatever was undefined. STR ! Undefined control sequence. \LaTeX3 error: - Erroneous variable \l_B_str used! + The variable \l_B_str has not been declared \msg... l. ... } The control sequence at the end of the top line of your error message was never \def'ed. If you have @@ -91,8 +101,17 @@ 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. ! Undefined control sequence. + \l_B_str +l. ... } +The control sequence at the end of the top line +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. +============================================================ +! Undefined control sequence. \LaTeX3 error: - Erroneous variable \l_B_str used! + The variable \l_B_str has not been declared \msg... l. ... } The control sequence at the end of the top line of your error message was never \def'ed. If you have @@ -103,13 +122,19 @@ and I'll forget about whatever was undefined. INT ! Undefined control sequence. ...ATOR \TYPE {INT}\int_use:N \l_B_int - \int_use:c {l_B_int}\SEPAR... + \relax \SEPARATOR \int_use... l. ... } The control sequence at the end of the top line 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. +! You can't use `\relax' after \the. + ...YPE {INT}\int_use:N \l_B_int \relax + \SEPARATOR \int_use:c {l_B... +l. ... } +I'm forgetting what you said and using zero instead. +============================================================ ! Undefined control sequence. \LaTeX3 error: The variable \l_B_int has not been declared \msg... @@ -119,25 +144,23 @@ 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. -! You can't use `\relax' after \the. - \l_B_int -l. ... } -I'm forgetting what you said and using zero instead. -! You can't use `the character 0' after \the. - 0 -l. ... } -I'm forgetting what you said and using zero instead. ============================================================ DIM ! Undefined control sequence. ...ATOR \TYPE {DIM}\dim_use:N \l_B_dim - \dim_use:c {l_B_dim}\SEPAR... + \relax \SEPARATOR \dim_use... l. ... } The control sequence at the end of the top line 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. +! You can't use `\relax' after \the. + ...YPE {DIM}\dim_use:N \l_B_dim \relax + \SEPARATOR \dim_use:c {l_B... +l. ... } +I'm forgetting what you said and using zero instead. +============================================================ ! Undefined control sequence. \LaTeX3 error: The variable \l_B_dim has not been declared \msg... @@ -147,25 +170,23 @@ 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. -! You can't use `\relax' after \the. - \l_B_dim -l. ... } -I'm forgetting what you said and using zero instead. -! You can't use `the character 0' after \the. - 0 -l. ... } -I'm forgetting what you said and using zero instead. ============================================================ SKIP ! Undefined control sequence. ...R \TYPE {SKIP}\skip_use:N \l_B_skip - \skip_use:c {l_B_skip}\SEP... + \relax \SEPARATOR \skip_us... l. ... } The control sequence at the end of the top line 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. +! You can't use `\relax' after \the. + ... {SKIP}\skip_use:N \l_B_skip \relax + \SEPARATOR \skip_use:c {l_... +l. ... } +I'm forgetting what you said and using zero instead. +============================================================ ! Undefined control sequence. \LaTeX3 error: The variable \l_B_skip has not been declared \ms... @@ -175,25 +196,23 @@ 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. -! You can't use `\relax' after \the. - \l_B_skip -l. ... } -I'm forgetting what you said and using zero instead. -! You can't use `the character 0' after \the. - 0 -l. ... } -I'm forgetting what you said and using zero instead. ============================================================ MUSKIP ! Undefined control sequence. ...E {MUSKIP}\muskip_use:N \l_B_muskip - \muskip_use:c {l_B_muskip}... + \relax \SEPARATOR \muskip_... l. ... } The control sequence at the end of the top line 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. +! You can't use `\relax' after \the. + ...IP}\muskip_use:N \l_B_muskip \relax + \SEPARATOR \muskip_use:c {... +l. ... } +I'm forgetting what you said and using zero instead. +============================================================ ! Undefined control sequence. \LaTeX3 error: The variable \l_B_muskip has not been declared \... @@ -203,14 +222,6 @@ 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. -! You can't use `\relax' after \the. - \l_B_muskip -l. ... } -I'm forgetting what you said and using zero instead. -! You can't use `the character 0' after \the. - 0 -l. ... } -I'm forgetting what you said and using zero instead. ============================================================ BOX ! LaTeX3 Error: The variable \l_B_box has not been declared on line .... @@ -233,11 +244,12 @@ spelling (e.g., `I\hbox'). Otherwise just continue, and I'll forget about whatever was undefined. ! Missing number, treated as zero. - \cs_set_nopar:Npx + \relax l. ... } A number should have been here; I inserted `0'. (If you can't figure out why I needed to see a number, look up `weird error' in the index to The TeXbook.) +============================================================ ! LaTeX3 Error: The variable \l_B_box has not been declared on line .... For immediate help type H . ... @@ -274,6 +286,7 @@ l. ... } A number should have been here; I inserted `0'. (If you can't figure out why I needed to see a number, look up `weird error' in the index to The TeXbook.) +============================================================ ! LaTeX3 Error: The variable \l_B_box has not been declared on line .... For immediate help type H . ... @@ -302,6 +315,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. +============================================================ ! Undefined control sequence. \LaTeX3 error: Erroneous variable \l_B_seq used! @@ -322,6 +336,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. +============================================================ ! Undefined control sequence. \LaTeX3 error: Erroneous variable \l_B_clist used! @@ -342,6 +357,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. +============================================================ ! Undefined control sequence. \LaTeX3 error: The variable \l_B_fp has not been declared \msg_... diff --git a/l3kernel/testfiles/m3chk002.luatex.tlg b/l3kernel/testfiles/m3chk002.luatex.tlg index 4e4165ee56..ab5b3af160 100644 --- a/l3kernel/testfiles/m3chk002.luatex.tlg +++ b/l3kernel/testfiles/m3chk002.luatex.tlg @@ -42,19 +42,10 @@ 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. ============================================================ +============================================================ TL ! Undefined control sequence. - \LaTeX3 error: - Erroneous variable \l_B_tl used! -l. ... } -The control sequence at the end of the top line -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. -! Undefined control sequence. - \LaTeX3 error: - Erroneous variable \l_B_tl used! + \l_B_tl l. ... } The control sequence at the end of the top line of your error message was never \def'ed. If you have @@ -62,19 +53,10 @@ 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. ============================================================ +============================================================ STR ! Undefined control sequence. - \LaTeX3 error: - Erroneous variable \l_B_str used! -l. ... } -The control sequence at the end of the top line -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. -! Undefined control sequence. - \LaTeX3 error: - Erroneous variable \l_B_str used! + \l_B_str l. ... } The control sequence at the end of the top line of your error message was never \def'ed. If you have @@ -82,10 +64,11 @@ 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 ! Undefined control sequence. - ..._str}\SEPARATOR \TYPE {INT}\int_use:N \l_B_int - \int_use:c {l_B_int}\SEPAR... + ...elax \SEPARATOR \TYPE {INT}\int_use:N \l_B_int + \relax \SEPARATOR \int_use... l. ... } The control sequence at the end of the top line of your error message was never \def'ed. If you have @@ -93,18 +76,20 @@ 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. ! You can't use `\relax' after \the. - \l_B_int + ...EPARATOR \TYPE {INT}\int_use:N \l_B_int \relax + \SEPARATOR \int_use:c {l_B... l. ... } I'm forgetting what you said and using zero instead. -! You can't use `the character 0' after \the. - 0 +============================================================ +! You can't use `\relax' after \the. + \l_B_int l. ... } I'm forgetting what you said and using zero instead. ============================================================ DIM ! Undefined control sequence. - ..._int}\SEPARATOR \TYPE {DIM}\dim_use:N \l_B_dim - \dim_use:c {l_B_dim}\SEPAR... + ...elax \SEPARATOR \TYPE {DIM}\dim_use:N \l_B_dim + \relax \SEPARATOR \dim_use... l. ... } The control sequence at the end of the top line of your error message was never \def'ed. If you have @@ -112,18 +97,20 @@ 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. ! You can't use `\relax' after \the. - \l_B_dim + ...EPARATOR \TYPE {DIM}\dim_use:N \l_B_dim \relax + \SEPARATOR \dim_use:c {l_B... l. ... } I'm forgetting what you said and using zero instead. -! You can't use `the character 0' after \the. - 0 +============================================================ +! You can't use `\relax' after \the. + \l_B_dim l. ... } I'm forgetting what you said and using zero instead. ============================================================ SKIP ! Undefined control sequence. - ...m}\SEPARATOR \TYPE {SKIP}\skip_use:N \l_B_skip - \skip_use:c {l_B_skip}\SEP... + ...x \SEPARATOR \TYPE {SKIP}\skip_use:N \l_B_skip + \relax \SEPARATOR \skip_us... l. ... } The control sequence at the end of the top line of your error message was never \def'ed. If you have @@ -131,18 +118,20 @@ 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. ! You can't use `\relax' after \the. - \l_B_skip + ...RATOR \TYPE {SKIP}\skip_use:N \l_B_skip \relax + \SEPARATOR \skip_use:c {l_... l. ... } I'm forgetting what you said and using zero instead. -! You can't use `the character 0' after \the. - 0 +============================================================ +! You can't use `\relax' after \the. + \l_B_skip l. ... } I'm forgetting what you said and using zero instead. ============================================================ MUSKIP ! Undefined control sequence. ...ARATOR \TYPE {MUSKIP}\muskip_use:N \l_B_muskip - \muskip_use:c {l_B_muskip}... + \relax \SEPARATOR \muskip_... l. ... } The control sequence at the end of the top line of your error message was never \def'ed. If you have @@ -150,11 +139,13 @@ 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. ! You can't use `\relax' after \the. - \l_B_muskip + ...\TYPE {MUSKIP}\muskip_use:N \l_B_muskip \relax + \SEPARATOR \muskip_use:c {... l. ... } I'm forgetting what you said and using zero instead. -! You can't use `the character 0' after \the. - 0 +============================================================ +! You can't use `\relax' after \the. + \l_B_muskip l. ... } I'm forgetting what you said and using zero instead. ============================================================ @@ -169,11 +160,12 @@ spelling (e.g., `I\hbox'). Otherwise just continue, and I'll forget about whatever was undefined. ! Missing number, treated as zero. -\tex_copy:D +\relax l. ... } A number should have been here; I inserted `0'. (If you can't figure out why I needed to see a number, look up `weird error' in the index to The TeXbook.) +============================================================ ! Missing number, treated as zero. \l_B_box @@ -190,6 +182,7 @@ l. ... } A number should have been here; I inserted `0'. (If you can't figure out why I needed to see a number, look up `weird error' in the index to The TeXbook.) +============================================================ ! Missing number, treated as zero. \l_B_box @@ -208,6 +201,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. +============================================================ ! Undefined control sequence. \LaTeX3 error: Erroneous variable \l_B_seq used! @@ -228,6 +222,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. +============================================================ ! Undefined control sequence. \LaTeX3 error: Erroneous variable \l_B_clist used! @@ -249,7 +244,7 @@ spelling (e.g., `I\hbox'). Otherwise just continue, and I'll forget about whatever was undefined. ) Runaway argument? -\fp_use:c {l_B_fp}\SEPARATOR \endgroup \SEPARATOR \LONGTYPEOUT {}\END \ETC. +\relax \SEPARATOR \fp_use:c {l_B_fp}\relax \SEPARATOR \endgroup \SEPARATOR \ETC. ! File ended while scanning use of \__fp_to_decimal_recover:w. \par diff --git a/l3kernel/testfiles/m3chk002.lvt b/l3kernel/testfiles/m3chk002.lvt index 3a61f5fea6..85a06f013a 100644 --- a/l3kernel/testfiles/m3chk002.lvt +++ b/l3kernel/testfiles/m3chk002.lvt @@ -39,6 +39,7 @@ \TIMO + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \TEST { Use~ variables~ (defined) } @@ -48,7 +49,7 @@ \TYPE{TL} \tl_use:N \l_A_tl \tl_use:c {l_A_tl} \SEPARATOR \TYPE{STR} \str_use:N \l_A_str - \str_use:c {l_A_str} \SEPARATOR + \str_use:c {l_A_str} \SEPARATOR \TYPE{INT} \int_use:N \l_A_int \int_use:c {l_A_int} \SEPARATOR \TYPE{DIM} \dim_use:N \l_A_dim @@ -64,39 +65,39 @@ \TYPE{SEQ} \seq_use:Nn \l_A_seq {} \seq_use:cn {l_A_seq} {} \SEPARATOR \TYPE{CLIST} \clist_use:Nn \l_A_clist {} - \clist_use:cn {l_A_clist} {} \SEPARATOR + \clist_use:cn {l_A_clist} {}\SEPARATOR \TYPE{FP} \fp_use:N \l_A_fp - \fp_use:c {l_A_fp} \SEPARATOR + \fp_use:c {l_A_fp} \SEPARATOR } %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \TEST { Use~ variables~ (undefined) } { - \TYPE{CS} \cs_use:N \cs_bbb: - \cs_use:c {cs_bbb:} \SEPARATOR - \TYPE{TL} \tl_use:N \l_B_tl - \tl_use:c {l_B_tl} \SEPARATOR - \TYPE{STR} \str_use:N \l_B_str - \str_use:c {l_B_str} \SEPARATOR - \TYPE{INT} \int_use:N \l_B_int - \int_use:c {l_B_int} \SEPARATOR - \TYPE{DIM} \dim_use:N \l_B_dim - \dim_use:c {l_B_dim} \SEPARATOR - \TYPE{SKIP} \skip_use:N \l_B_skip - \skip_use:c {l_B_skip} \SEPARATOR - \TYPE{MUSKIP} \muskip_use:N \l_B_muskip - \muskip_use:c {l_B_muskip} \SEPARATOR - \TYPE{BOX} \box_use:N \l_B_box - \box_use:c {l_B_box} \SEPARATOR - \TYPE{BOX} \box_use_drop:N \l_B_box - \box_use_drop:c {l_B_box} \SEPARATOR - \TYPE{SEQ} \seq_use:Nn \l_B_seq {} - \seq_use:cn {l_B_seq} {} \SEPARATOR - \TYPE{CLIST} \clist_use:Nn \l_B_clist {} - \clist_use:cn {l_B_clist} {} \SEPARATOR - \TYPE{FP} \fp_use:N \l_B_fp - \fp_use:c {l_B_fp} \SEPARATOR + \TYPE{CS} \cs_use:N \cs_bbb: \relax \SEPARATOR + \cs_use:c {cs_bbb:} \relax \SEPARATOR + \TYPE{TL} \tl_use:N \l_B_tl \relax \SEPARATOR + \tl_use:c {l_B_tl} \relax \SEPARATOR + \TYPE{STR} \str_use:N \l_B_str \relax \SEPARATOR + \str_use:c {l_B_str} \relax \SEPARATOR + \TYPE{INT} \int_use:N \l_B_int \relax \SEPARATOR + \int_use:c {l_B_int} \relax \SEPARATOR + \TYPE{DIM} \dim_use:N \l_B_dim \relax \SEPARATOR + \dim_use:c {l_B_dim} \relax \SEPARATOR + \TYPE{SKIP} \skip_use:N \l_B_skip \relax \SEPARATOR + \skip_use:c {l_B_skip} \relax \SEPARATOR + \TYPE{MUSKIP} \muskip_use:N \l_B_muskip \relax \SEPARATOR + \muskip_use:c {l_B_muskip} \relax \SEPARATOR + \TYPE{BOX} \box_use:N \l_B_box \relax \SEPARATOR + \box_use:c {l_B_box} \relax \SEPARATOR + \TYPE{BOX} \box_use_drop:N \l_B_box \relax \SEPARATOR + \box_use_drop:c {l_B_box} \relax \SEPARATOR + \TYPE{SEQ} \seq_use:Nn \l_B_seq {} \relax \SEPARATOR + \seq_use:cn {l_B_seq} {} \relax \SEPARATOR + \TYPE{CLIST} \clist_use:Nn \l_B_clist {} \relax \SEPARATOR + \clist_use:cn {l_B_clist} {} \relax \SEPARATOR + \TYPE{FP} \fp_use:N \l_B_fp \relax \SEPARATOR + \fp_use:c {l_B_fp} \relax \SEPARATOR } %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% diff --git a/l3kernel/testfiles/m3chk002.tlg b/l3kernel/testfiles/m3chk002.tlg index c7b6148714..02a0523204 100644 --- a/l3kernel/testfiles/m3chk002.tlg +++ b/l3kernel/testfiles/m3chk002.tlg @@ -42,19 +42,10 @@ 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. ============================================================ +============================================================ TL ! Undefined control sequence. - \LaTeX3 error: - Erroneous variable \l_B_tl used! -l. ... } -The control sequence at the end of the top line -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. -! Undefined control sequence. - \LaTeX3 error: - Erroneous variable \l_B_tl used! + \l_B_tl l. ... } The control sequence at the end of the top line of your error message was never \def'ed. If you have @@ -62,19 +53,10 @@ 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. ============================================================ +============================================================ STR ! Undefined control sequence. - \LaTeX3 error: - Erroneous variable \l_B_str used! -l. ... } -The control sequence at the end of the top line -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. -! Undefined control sequence. - \LaTeX3 error: - Erroneous variable \l_B_str used! + \l_B_str l. ... } The control sequence at the end of the top line of your error message was never \def'ed. If you have @@ -82,10 +64,11 @@ 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 ! Undefined control sequence. ...ATOR \TYPE {INT}\int_use:N \l_B_int - \int_use:c {l_B_int}\SEPAR... + \relax \SEPARATOR \int_use... l. ... } The control sequence at the end of the top line of your error message was never \def'ed. If you have @@ -93,18 +76,20 @@ 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. ! You can't use `\relax' after \the. - \l_B_int + ...YPE {INT}\int_use:N \l_B_int \relax + \SEPARATOR \int_use:c {l_B... l. ... } I'm forgetting what you said and using zero instead. -! You can't use `the character 0' after \the. - 0 +============================================================ +! You can't use `\relax' after \the. + \l_B_int l. ... } I'm forgetting what you said and using zero instead. ============================================================ DIM ! Undefined control sequence. ...ATOR \TYPE {DIM}\dim_use:N \l_B_dim - \dim_use:c {l_B_dim}\SEPAR... + \relax \SEPARATOR \dim_use... l. ... } The control sequence at the end of the top line of your error message was never \def'ed. If you have @@ -112,18 +97,20 @@ 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. ! You can't use `\relax' after \the. - \l_B_dim + ...YPE {DIM}\dim_use:N \l_B_dim \relax + \SEPARATOR \dim_use:c {l_B... l. ... } I'm forgetting what you said and using zero instead. -! You can't use `the character 0' after \the. - 0 +============================================================ +! You can't use `\relax' after \the. + \l_B_dim l. ... } I'm forgetting what you said and using zero instead. ============================================================ SKIP ! Undefined control sequence. ...R \TYPE {SKIP}\skip_use:N \l_B_skip - \skip_use:c {l_B_skip}\SEP... + \relax \SEPARATOR \skip_us... l. ... } The control sequence at the end of the top line of your error message was never \def'ed. If you have @@ -131,18 +118,20 @@ 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. ! You can't use `\relax' after \the. - \l_B_skip + ... {SKIP}\skip_use:N \l_B_skip \relax + \SEPARATOR \skip_use:c {l_... l. ... } I'm forgetting what you said and using zero instead. -! You can't use `the character 0' after \the. - 0 +============================================================ +! You can't use `\relax' after \the. + \l_B_skip l. ... } I'm forgetting what you said and using zero instead. ============================================================ MUSKIP ! Undefined control sequence. ...E {MUSKIP}\muskip_use:N \l_B_muskip - \muskip_use:c {l_B_muskip}... + \relax \SEPARATOR \muskip_... l. ... } The control sequence at the end of the top line of your error message was never \def'ed. If you have @@ -150,11 +139,13 @@ 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. ! You can't use `\relax' after \the. - \l_B_muskip + ...IP}\muskip_use:N \l_B_muskip \relax + \SEPARATOR \muskip_use:c {... l. ... } I'm forgetting what you said and using zero instead. -! You can't use `the character 0' after \the. - 0 +============================================================ +! You can't use `\relax' after \the. + \l_B_muskip l. ... } I'm forgetting what you said and using zero instead. ============================================================ @@ -169,11 +160,12 @@ spelling (e.g., `I\hbox'). Otherwise just continue, and I'll forget about whatever was undefined. ! Missing number, treated as zero. - \tex_copy:D + \relax l. ... } A number should have been here; I inserted `0'. (If you can't figure out why I needed to see a number, look up `weird error' in the index to The TeXbook.) +============================================================ ! Missing number, treated as zero. \l_B_box @@ -190,6 +182,7 @@ l. ... } A number should have been here; I inserted `0'. (If you can't figure out why I needed to see a number, look up `weird error' in the index to The TeXbook.) +============================================================ ! Missing number, treated as zero. \l_B_box @@ -208,6 +201,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. +============================================================ ! Undefined control sequence. \LaTeX3 error: Erroneous variable \l_B_seq used! @@ -228,6 +222,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. +============================================================ ! Undefined control sequence. \LaTeX3 error: Erroneous variable \l_B_clist used! @@ -249,7 +244,7 @@ spelling (e.g., `I\hbox'). Otherwise just continue, and I'll forget about whatever was undefined. ) Runaway argument? -\fp_use:c {l_B_fp}\SEPARATOR \endgroup \SEPARATOR \LONGTYPEOUT {}\END \ETC. +\relax \SEPARATOR \fp_use:c {l_B_fp}\relax \SEPARATOR \endgroup \SEPARATOR \ETC. ! File ended while scanning use of \__fp_to_decimal_recover:w. \par diff --git a/l3kernel/testfiles/m3chk003.luatex.tlg b/l3kernel/testfiles/m3chk003.luatex.tlg index 434efd3561..f45cc4376d 100644 --- a/l3kernel/testfiles/m3chk003.luatex.tlg +++ b/l3kernel/testfiles/m3chk003.luatex.tlg @@ -42,6 +42,7 @@ 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. ============================================================ +============================================================ TL ! Undefined control sequence. \l_B_tl @@ -52,6 +53,7 @@ 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. ============================================================ +============================================================ STR ! Undefined control sequence. \l_B_str @@ -62,10 +64,11 @@ 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 ! Undefined control sequence. - ..._str}\SEPARATOR \TYPE {INT}\int_use:N \l_B_int - \int_use:c {l_B_int}\SEPAR... + ...elax \SEPARATOR \TYPE {INT}\int_use:N \l_B_int + \relax \SEPARATOR \int_use... l. ... } The control sequence at the end of the top line of your error message was never \def'ed. If you have @@ -73,18 +76,20 @@ 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. ! You can't use `\relax' after \the. - \l_B_int + ...EPARATOR \TYPE {INT}\int_use:N \l_B_int \relax + \SEPARATOR \int_use:c {l_B... l. ... } I'm forgetting what you said and using zero instead. -! You can't use `the character 0' after \the. - 0 +============================================================ +! You can't use `\relax' after \the. + \l_B_int l. ... } I'm forgetting what you said and using zero instead. ============================================================ DIM ! Undefined control sequence. - ..._int}\SEPARATOR \TYPE {DIM}\dim_use:N \l_B_dim - \dim_use:c {l_B_dim}\SEPAR... + ...elax \SEPARATOR \TYPE {DIM}\dim_use:N \l_B_dim + \relax \SEPARATOR \dim_use... l. ... } The control sequence at the end of the top line of your error message was never \def'ed. If you have @@ -92,18 +97,20 @@ 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. ! You can't use `\relax' after \the. - \l_B_dim + ...EPARATOR \TYPE {DIM}\dim_use:N \l_B_dim \relax + \SEPARATOR \dim_use:c {l_B... l. ... } I'm forgetting what you said and using zero instead. -! You can't use `the character 0' after \the. - 0 +============================================================ +! You can't use `\relax' after \the. + \l_B_dim l. ... } I'm forgetting what you said and using zero instead. ============================================================ SKIP ! Undefined control sequence. - ...m}\SEPARATOR \TYPE {SKIP}\skip_use:N \l_B_skip - \skip_use:c {l_B_skip}\SEP... + ...x \SEPARATOR \TYPE {SKIP}\skip_use:N \l_B_skip + \relax \SEPARATOR \skip_us... l. ... } The control sequence at the end of the top line of your error message was never \def'ed. If you have @@ -111,18 +118,20 @@ 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. ! You can't use `\relax' after \the. - \l_B_skip + ...RATOR \TYPE {SKIP}\skip_use:N \l_B_skip \relax + \SEPARATOR \skip_use:c {l_... l. ... } I'm forgetting what you said and using zero instead. -! You can't use `the character 0' after \the. - 0 +============================================================ +! You can't use `\relax' after \the. + \l_B_skip l. ... } I'm forgetting what you said and using zero instead. ============================================================ MUSKIP ! Undefined control sequence. ...ARATOR \TYPE {MUSKIP}\muskip_use:N \l_B_muskip - \muskip_use:c {l_B_muskip}... + \relax \SEPARATOR \muskip_... l. ... } The control sequence at the end of the top line of your error message was never \def'ed. If you have @@ -130,18 +139,20 @@ 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. ! You can't use `\relax' after \the. - \l_B_muskip + ...\TYPE {MUSKIP}\muskip_use:N \l_B_muskip \relax + \SEPARATOR \muskip_use:c {... l. ... } I'm forgetting what you said and using zero instead. -! You can't use `the character 0' after \the. - 0 +============================================================ +! You can't use `\relax' after \the. + \l_B_muskip l. ... } I'm forgetting what you said and using zero instead. ============================================================ BOX ! Undefined control sequence. - ...skip}\SEPARATOR \TYPE {BOX}\box_use:N \l_B_box - \box_use:c {l_B_box}\SEPAR... + ...elax \SEPARATOR \TYPE {BOX}\box_use:N \l_B_box + \relax \SEPARATOR \box_use... l. ... } The control sequence at the end of the top line of your error message was never \def'ed. If you have @@ -150,11 +161,12 @@ spelling (e.g., `I\hbox'). Otherwise just continue, and I'll forget about whatever was undefined. ! Missing number, treated as zero. -\box_use:N +\relax l. ... } A number should have been here; I inserted `0'. (If you can't figure out why I needed to see a number, look up `weird error' in the index to The TeXbook.) +============================================================ ! Missing number, treated as zero. \l_B_box @@ -171,6 +183,7 @@ l. ... } A number should have been here; I inserted `0'. (If you can't figure out why I needed to see a number, look up `weird error' in the index to The TeXbook.) +============================================================ ! Missing number, treated as zero. \l_B_box @@ -190,6 +203,7 @@ 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. ============================================================ +============================================================ CLIST ! Undefined control sequence. \l_B_clist @@ -209,6 +223,7 @@ 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. ============================================================ +============================================================ FP ! Undefined control sequence. \l_B_fp @@ -220,7 +235,7 @@ spelling (e.g., `I\hbox'). Otherwise just continue, and I'll forget about whatever was undefined. ) Runaway argument? -\fp_use:c {l_B_fp}\SEPARATOR \endgroup \SEPARATOR \LONGTYPEOUT {}\END \ETC. +\relax \SEPARATOR \fp_use:c {l_B_fp}\relax \SEPARATOR \endgroup \SEPARATOR \ETC. ! File ended while scanning use of \__fp_to_decimal_recover:w. \par diff --git a/l3kernel/testfiles/m3chk003.lvt b/l3kernel/testfiles/m3chk003.lvt index 56b8e4b581..110c7407de 100644 --- a/l3kernel/testfiles/m3chk003.lvt +++ b/l3kernel/testfiles/m3chk003.lvt @@ -48,7 +48,7 @@ \TYPE{TL} \tl_use:N \l_A_tl \tl_use:c {l_A_tl} \SEPARATOR \TYPE{STR} \str_use:N \l_A_str - \str_use:c {l_A_str} \SEPARATOR + \str_use:c {l_A_str} \SEPARATOR \TYPE{INT} \int_use:N \l_A_int \int_use:c {l_A_int} \SEPARATOR \TYPE{DIM} \dim_use:N \l_A_dim @@ -64,40 +64,39 @@ \TYPE{SEQ} \seq_use:Nn \l_A_seq {} \seq_use:cn {l_A_seq} {} \SEPARATOR \TYPE{CLIST} \clist_use:Nn \l_A_clist {} - \clist_use:cn {l_A_clist} {} \SEPARATOR + \clist_use:cn {l_A_clist} {}\SEPARATOR \TYPE{FP} \fp_use:N \l_A_fp - \fp_use:c {l_A_fp} \SEPARATOR + \fp_use:c {l_A_fp} \SEPARATOR } %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \TEST { Use~ variables~ (undefined) } { - \TYPE{CS} \cs_use:N \cs_bbb: - \cs_use:c {cs_bbb:} \SEPARATOR - \TYPE{TL} \tl_use:N \l_B_tl - \tl_use:c {l_B_tl} \SEPARATOR - \TYPE{STR} \str_use:N \l_B_str - \str_use:c {l_B_str} \SEPARATOR - \TYPE{INT} \int_use:N \l_B_int - \int_use:c {l_B_int} \SEPARATOR - \TYPE{DIM} \dim_use:N \l_B_dim - \dim_use:c {l_B_dim} \SEPARATOR - \TYPE{SKIP} \skip_use:N \l_B_skip - \skip_use:c {l_B_skip} \SEPARATOR - \TYPE{MUSKIP} \muskip_use:N \l_B_muskip - \muskip_use:c {l_B_muskip} \SEPARATOR - \TYPE{BOX} \box_use:N \l_B_box - \box_use:c {l_B_box} \SEPARATOR - \TYPE{BOX} \box_use_drop:N \l_B_box - \box_use_drop:c {l_B_box} \SEPARATOR - \TYPE{SEQ} \seq_use:Nn \l_B_seq {} - \seq_use:cn {l_B_seq} {} \SEPARATOR - \TYPE{CLIST} \clist_use:Nn \l_B_clist {} - \clist_use:cn {l_B_clist} {} \SEPARATOR - % FP is last as it results in a catastrophic error - \TYPE{FP} \fp_use:N \l_B_fp - \fp_use:c {l_B_fp} \SEPARATOR + \TYPE{CS} \cs_use:N \cs_bbb: \relax \SEPARATOR + \cs_use:c {cs_bbb:} \relax \SEPARATOR + \TYPE{TL} \tl_use:N \l_B_tl \relax \SEPARATOR + \tl_use:c {l_B_tl} \relax \SEPARATOR + \TYPE{STR} \str_use:N \l_B_str \relax \SEPARATOR + \str_use:c {l_B_str} \relax \SEPARATOR + \TYPE{INT} \int_use:N \l_B_int \relax \SEPARATOR + \int_use:c {l_B_int} \relax \SEPARATOR + \TYPE{DIM} \dim_use:N \l_B_dim \relax \SEPARATOR + \dim_use:c {l_B_dim} \relax \SEPARATOR + \TYPE{SKIP} \skip_use:N \l_B_skip \relax \SEPARATOR + \skip_use:c {l_B_skip} \relax \SEPARATOR + \TYPE{MUSKIP} \muskip_use:N \l_B_muskip \relax \SEPARATOR + \muskip_use:c {l_B_muskip} \relax \SEPARATOR + \TYPE{BOX} \box_use:N \l_B_box \relax \SEPARATOR + \box_use:c {l_B_box} \relax \SEPARATOR + \TYPE{BOX} \box_use_drop:N \l_B_box \relax \SEPARATOR + \box_use_drop:c {l_B_box} \relax \SEPARATOR + \TYPE{SEQ} \seq_use:Nn \l_B_seq {} \relax \SEPARATOR + \seq_use:cn {l_B_seq} {} \relax \SEPARATOR + \TYPE{CLIST} \clist_use:Nn \l_B_clist {} \relax \SEPARATOR + \clist_use:cn {l_B_clist} {} \relax \SEPARATOR + \TYPE{FP} \fp_use:N \l_B_fp \relax \SEPARATOR + \fp_use:c {l_B_fp} \relax \SEPARATOR } %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% diff --git a/l3kernel/testfiles/m3chk003.tlg b/l3kernel/testfiles/m3chk003.tlg index b2c95ce01a..f52858b2ea 100644 --- a/l3kernel/testfiles/m3chk003.tlg +++ b/l3kernel/testfiles/m3chk003.tlg @@ -42,6 +42,7 @@ 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. ============================================================ +============================================================ TL ! Undefined control sequence. \l_B_tl @@ -52,6 +53,7 @@ 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. ============================================================ +============================================================ STR ! Undefined control sequence. \l_B_str @@ -62,10 +64,11 @@ 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 ! Undefined control sequence. ...ATOR \TYPE {INT}\int_use:N \l_B_int - \int_use:c {l_B_int}\SEPAR... + \relax \SEPARATOR \int_use... l. ... } The control sequence at the end of the top line of your error message was never \def'ed. If you have @@ -73,18 +76,20 @@ 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. ! You can't use `\relax' after \the. - \l_B_int + ...YPE {INT}\int_use:N \l_B_int \relax + \SEPARATOR \int_use:c {l_B... l. ... } I'm forgetting what you said and using zero instead. -! You can't use `the character 0' after \the. - 0 +============================================================ +! You can't use `\relax' after \the. + \l_B_int l. ... } I'm forgetting what you said and using zero instead. ============================================================ DIM ! Undefined control sequence. ...ATOR \TYPE {DIM}\dim_use:N \l_B_dim - \dim_use:c {l_B_dim}\SEPAR... + \relax \SEPARATOR \dim_use... l. ... } The control sequence at the end of the top line of your error message was never \def'ed. If you have @@ -92,18 +97,20 @@ 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. ! You can't use `\relax' after \the. - \l_B_dim + ...YPE {DIM}\dim_use:N \l_B_dim \relax + \SEPARATOR \dim_use:c {l_B... l. ... } I'm forgetting what you said and using zero instead. -! You can't use `the character 0' after \the. - 0 +============================================================ +! You can't use `\relax' after \the. + \l_B_dim l. ... } I'm forgetting what you said and using zero instead. ============================================================ SKIP ! Undefined control sequence. ...R \TYPE {SKIP}\skip_use:N \l_B_skip - \skip_use:c {l_B_skip}\SEP... + \relax \SEPARATOR \skip_us... l. ... } The control sequence at the end of the top line of your error message was never \def'ed. If you have @@ -111,18 +118,20 @@ 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. ! You can't use `\relax' after \the. - \l_B_skip + ... {SKIP}\skip_use:N \l_B_skip \relax + \SEPARATOR \skip_use:c {l_... l. ... } I'm forgetting what you said and using zero instead. -! You can't use `the character 0' after \the. - 0 +============================================================ +! You can't use `\relax' after \the. + \l_B_skip l. ... } I'm forgetting what you said and using zero instead. ============================================================ MUSKIP ! Undefined control sequence. ...E {MUSKIP}\muskip_use:N \l_B_muskip - \muskip_use:c {l_B_muskip}... + \relax \SEPARATOR \muskip_... l. ... } The control sequence at the end of the top line of your error message was never \def'ed. If you have @@ -130,18 +139,20 @@ 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. ! You can't use `\relax' after \the. - \l_B_muskip + ...IP}\muskip_use:N \l_B_muskip \relax + \SEPARATOR \muskip_use:c {... l. ... } I'm forgetting what you said and using zero instead. -! You can't use `the character 0' after \the. - 0 +============================================================ +! You can't use `\relax' after \the. + \l_B_muskip l. ... } I'm forgetting what you said and using zero instead. ============================================================ BOX ! Undefined control sequence. ...ATOR \TYPE {BOX}\box_use:N \l_B_box - \box_use:c {l_B_box}\SEPAR... + \relax \SEPARATOR \box_use... l. ... } The control sequence at the end of the top line of your error message was never \def'ed. If you have @@ -150,11 +161,12 @@ spelling (e.g., `I\hbox'). Otherwise just continue, and I'll forget about whatever was undefined. ! Missing number, treated as zero. - \box_use:N + \relax l. ... } A number should have been here; I inserted `0'. (If you can't figure out why I needed to see a number, look up `weird error' in the index to The TeXbook.) +============================================================ ! Missing number, treated as zero. \l_B_box @@ -171,6 +183,7 @@ l. ... } A number should have been here; I inserted `0'. (If you can't figure out why I needed to see a number, look up `weird error' in the index to The TeXbook.) +============================================================ ! Missing number, treated as zero. \l_B_box @@ -190,6 +203,7 @@ 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. ============================================================ +============================================================ CLIST ! Undefined control sequence. \l_B_clist @@ -209,6 +223,7 @@ 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. ============================================================ +============================================================ FP ! Undefined control sequence. \l_B_fp @@ -220,7 +235,7 @@ spelling (e.g., `I\hbox'). Otherwise just continue, and I'll forget about whatever was undefined. ) Runaway argument? -\fp_use:c {l_B_fp}\SEPARATOR \endgroup \SEPARATOR \LONGTYPEOUT {}\END \ETC. +\relax \SEPARATOR \fp_use:c {l_B_fp}\relax \SEPARATOR \endgroup \SEPARATOR \ETC. ! File ended while scanning use of \__fp_to_decimal_recover:w. \par diff --git a/l3kernel/testfiles/m3chk004.luatex.tlg b/l3kernel/testfiles/m3chk004.luatex.tlg index 6210f5c62b..124fe906b9 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. \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. \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 @@ -80,7 +80,15 @@ CS:\cs_bbb: ============================================================ ! Undefined control sequence. \LaTeX3 error: - Erroneous variable \l_B_tl used! + The variable \l_B_tl has not been declared \msg_line_context: +l. ... } +The control sequence at the end of the top line +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. +! Undefined control sequence. + \l_B_tl l. ... } The control sequence at the end of the top line of your error message was never \def'ed. If you have @@ -91,18 +99,26 @@ TL: ============================================================ ! Undefined control sequence. \LaTeX3 error: - Erroneous variable \l_B_tl used! + The variable \l_B_tl has not been declared \msg_line_context: l. ... } The control sequence at the end of the top line 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. -TL: +TL:\l_B_tl ============================================================ ! Undefined control sequence. \LaTeX3 error: - Erroneous variable \l_B_str used! + The variable \l_B_str has not been declared \msg_line_context: +l. ... } +The control sequence at the end of the top line +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. +! Undefined control sequence. + \l_B_str l. ... } The control sequence at the end of the top line of your error message was never \def'ed. If you have @@ -113,14 +129,14 @@ STR: ============================================================ ! Undefined control sequence. \LaTeX3 error: - Erroneous variable \l_B_str used! + The variable \l_B_str has not been declared \msg_line_context: l. ... } The control sequence at the end of the top line 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. -STR: +STR:\l_B_str ============================================================ ! Undefined control sequence. INT:\int_use:N \l_B_int @@ -156,11 +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. -! You can't use `\relax' after \the. - \l_B_int -l. ... } -I'm forgetting what you said and using zero instead. -INT:0 +INT:0\l_B_int ============================================================ ! Undefined control sequence. DIM:\dim_use:N \l_B_dim @@ -196,11 +208,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. -! You can't use `\relax' after \the. - \l_B_dim -l. ... } -I'm forgetting what you said and using zero instead. -DIM:0 +DIM:0.0pt\l_B_dim ============================================================ ! Undefined control sequence. SKIP:\skip_use:N \l_B_skip @@ -236,11 +244,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. -! You can't use `\relax' after \the. - \l_B_skip -l. ... } -I'm forgetting what you said and using zero instead. -SKIP:0 +SKIP:0.0pt\l_B_skip ============================================================ ! Undefined control sequence. MUSKIP:\muskip_use:N \l_B_muskip @@ -276,11 +280,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. -! You can't use `\relax' after \the. - \l_B_muskip -l. ... } -I'm forgetting what you said and using zero instead. -MUSKIP:0 +MUSKIP:0.0mu\l_B_muskip ============================================================ ! Undefined control sequence. \LaTeX3 error: diff --git a/l3kernel/testfiles/m3chk004.tlg b/l3kernel/testfiles/m3chk004.tlg index 931881901b..02658eddef 100644 --- a/l3kernel/testfiles/m3chk004.tlg +++ b/l3kernel/testfiles/m3chk004.tlg @@ -50,7 +50,7 @@ TEST 2: Use variables (undefined) ============================================================ ! Undefined control sequence. \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. \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 @@ -80,7 +80,15 @@ CS:\cs_bbb: ============================================================ ! Undefined control sequence. \LaTeX3 error: - Erroneous variable \l_B_tl used! + The variable \l_B_tl has not been declared \msg_... +l. ... } +The control sequence at the end of the top line +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. +! Undefined control sequence. + \l_B_tl l. ... } The control sequence at the end of the top line of your error message was never \def'ed. If you have @@ -91,18 +99,26 @@ TL: ============================================================ ! Undefined control sequence. \LaTeX3 error: - Erroneous variable \l_B_tl used! + The variable \l_B_tl has not been declared \msg_... l. ... } The control sequence at the end of the top line 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. -TL: +TL:\l_B_tl ============================================================ ! Undefined control sequence. \LaTeX3 error: - Erroneous variable \l_B_str used! + The variable \l_B_str has not been declared \msg... +l. ... } +The control sequence at the end of the top line +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. +! Undefined control sequence. + \l_B_str l. ... } The control sequence at the end of the top line of your error message was never \def'ed. If you have @@ -113,14 +129,14 @@ STR: ============================================================ ! Undefined control sequence. \LaTeX3 error: - Erroneous variable \l_B_str used! + The variable \l_B_str has not been declared \msg... l. ... } The control sequence at the end of the top line 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. -STR: +STR:\l_B_str ============================================================ ! Undefined control sequence. INT:\int_use:N \l_B_int @@ -156,11 +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. -! You can't use `\relax' after \the. - \l_B_int -l. ... } -I'm forgetting what you said and using zero instead. -INT:0 +INT:0\l_B_int ============================================================ ! Undefined control sequence. DIM:\dim_use:N \l_B_dim @@ -196,11 +208,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. -! You can't use `\relax' after \the. - \l_B_dim -l. ... } -I'm forgetting what you said and using zero instead. -DIM:0 +DIM:0.0pt\l_B_dim ============================================================ ! Undefined control sequence. SKIP:\skip_use:N \l_B_skip @@ -236,11 +244,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. -! You can't use `\relax' after \the. - \l_B_skip -l. ... } -I'm forgetting what you said and using zero instead. -SKIP:0 +SKIP:0.0pt\l_B_skip ============================================================ ! Undefined control sequence. MUSKIP:\muskip_use:N \l_B_muskip @@ -276,11 +280,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. -! You can't use `\relax' after \the. - \l_B_muskip -l. ... } -I'm forgetting what you said and using zero instead. -MUSKIP:0 +MUSKIP:0.0mu\l_B_muskip ============================================================ ! Undefined control sequence. \LaTeX3 error: diff --git a/l3kernel/testfiles/m3chk005.luatex.tlg b/l3kernel/testfiles/m3chk005.luatex.tlg new file mode 100644 index 0000000000..6425f57ec8 --- /dev/null +++ b/l3kernel/testfiles/m3chk005.luatex.tlg @@ -0,0 +1,80 @@ +This is a generated file for the LaTeX (2e + expl3) validation system. +Don't change this file in any respect. +Author: Will Robertson +============================================================ +TEST 1: CS undefined and relax +============================================================ +! Undefined control sequence. + \LaTeX3 error: + Control sequence \cs_aaa: 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 +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. +! Undefined control sequence. + \cs_aaa: +l. ... } +The control sequence at the end of the top line +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. +============================================================ +! Undefined control sequence. + \LaTeX3 error: + Control sequence \scan_stop: 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 +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. +\scan_stop: +============================================================ +! Undefined control sequence. + \LaTeX3 error: + Control sequence \relax 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 +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. +\relax +============================================================ +! Undefined control sequence. + \LaTeX3 error: + Control sequence \cs_aaa: 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 +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. +\cs_aaa: +============================================================ +! Undefined control sequence. + \LaTeX3 error: + Control sequence \scan_stop: 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 +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. +\scan_stop: +============================================================ +! Undefined control sequence. + \LaTeX3 error: + Control sequence \relax 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 +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. +\relax +============================================================ +============================================================ diff --git a/l3kernel/testfiles/m3chk005.lvt b/l3kernel/testfiles/m3chk005.lvt new file mode 100644 index 0000000000..75a50527b9 --- /dev/null +++ b/l3kernel/testfiles/m3chk005.lvt @@ -0,0 +1,42 @@ +% +% Copyright (C) 2019 The LaTeX3 Project +% + +\documentclass{minimal} +\input{regression-test} + + + +% Leave some padding so that the line numbers +% of the tests don't change later on. + + + +\RequirePackage[enable-debug]{expl3} +\ExplSyntaxOn +\debug_on:n { all } +\ExplSyntaxOff + +\begin{document} + +\START +\AUTHOR{Will Robertson} +\ExplSyntaxOn + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\TEST { CS~undefined~and~relax } + { + \TYPE{\cs_use:N \cs_aaa:}\SEPARATOR + \TYPE{\cs_use:N \scan_stop:}\SEPARATOR + \TYPE{\cs_use:N \relax}\SEPARATOR + \TYPE{\cs_use:c {cs_aaa:}}\SEPARATOR + \TYPE{\cs_use:c {scan_stop:}}\SEPARATOR + \TYPE{\cs_use:c {relax}}\SEPARATOR + } + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + + +\END +\end{document} diff --git a/l3kernel/testfiles/m3chk005.tlg b/l3kernel/testfiles/m3chk005.tlg new file mode 100644 index 0000000000..5fb72e7290 --- /dev/null +++ b/l3kernel/testfiles/m3chk005.tlg @@ -0,0 +1,80 @@ +This is a generated file for the LaTeX (2e + expl3) validation system. +Don't change this file in any respect. +Author: Will Robertson +============================================================ +TEST 1: CS undefined and relax +============================================================ +! Undefined control sequence. + \LaTeX3 error: + Control sequence \cs_aaa: 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 +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. +! Undefined control sequence. + \cs_aaa: +l. ... } +The control sequence at the end of the top line +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. +============================================================ +! Undefined control sequence. + \LaTeX3 error: + Control sequence \scan_stop: 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 +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. +\scan_stop: +============================================================ +! Undefined control sequence. + \LaTeX3 error: + Control sequence \relax 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 +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. +\relax +============================================================ +! Undefined control sequence. + \LaTeX3 error: + Control sequence \cs_aaa: 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 +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. +\cs_aaa: +============================================================ +! Undefined control sequence. + \LaTeX3 error: + Control sequence \scan_stop: 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 +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. +\scan_stop: +============================================================ +! Undefined control sequence. + \LaTeX3 error: + Control sequence \relax 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 +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. +\relax +============================================================ +============================================================