[latex3-commits] [git/LaTeX3-latex3-latex3] gh931-errors-v2: Shorten another expandable error message to avoid cropping (62252bf98)

Joseph Wright joseph.wright at morningstar2.co.uk
Thu Aug 26 10:41:54 CEST 2021


Repository : https://github.com/latex3/latex3
On branch  : gh931-errors-v2
Link       : https://github.com/latex3/latex3/commit/62252bf980500e8c597bf16bb91fa038f4a934e6

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

commit 62252bf980500e8c597bf16bb91fa038f4a934e6
Author: Bruno Le Floch <blflatex at gmail.com>
Date:   Sun Aug 15 09:53:03 2021 +0200

    Shorten another expandable error message to avoid cropping
    
    Since the new version of expandable errors gives us fewer characters to
    work with, the previous message was trimmed before the end in all cases.


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

62252bf980500e8c597bf16bb91fa038f4a934e6
 l3kernel/l3msg.dtx                         |   2 +-
 l3kernel/testfiles/m3compare001.luatex.tlg | 525 -----------------------------
 l3kernel/testfiles/m3compare001.tlg        |   6 +-
 3 files changed, 4 insertions(+), 529 deletions(-)

diff --git a/l3kernel/l3msg.dtx b/l3kernel/l3msg.dtx
index 19a54940c..4fab47b0f 100644
--- a/l3kernel/l3msg.dtx
+++ b/l3kernel/l3msg.dtx
@@ -2097,7 +2097,7 @@
 \__kernel_msg_new:nnn { prop } { prop-keyval }
   { Missing/extra~'='~in~'#1'~(in~'..._keyval:Nn') }
 \__kernel_msg_new:nnn { kernel } { unknown-comparison }
-  { Relation~'#1'~not~among~=,~<,~>,~==,~!=,~<=,~>=. }
+  { Relation~'#1'~not~among~=,<,>,==,!=,<=,>=. }
 \__kernel_msg_new:nnn { kernel } { zero-step }
   { Zero~step~size~for~function~#1. }
 \cs_if_exist:NF \tex_expanded:D
diff --git a/l3kernel/testfiles/m3compare001.luatex.tlg b/l3kernel/testfiles/m3compare001.luatex.tlg
deleted file mode 100644
index bc45ab0b8..000000000
--- a/l3kernel/testfiles/m3compare001.luatex.tlg
+++ /dev/null
@@ -1,525 +0,0 @@
-This is a generated file for the LaTeX (2e + expl3) validation system.
-Don't change this file in any respect.
-Author: LaTeX3 Project
-============================================================
-TEST 1: Comparing integers
-============================================================
-1 and 1
-= |TRUE|TRUE|TRUE|
-> |FALSE|FALSE||FALSE
-< |FALSE|FALSE||FALSE
-==|TRUE|TRUE|TRUE|
-!=|FALSE|FALSE||FALSE
-<=|TRUE|TRUE|TRUE|
->=|TRUE|TRUE|TRUE|
--1 and -1
-= |TRUE|TRUE|TRUE|
-> |FALSE|FALSE||FALSE
-< |FALSE|FALSE||FALSE
-==|TRUE|TRUE|TRUE|
-!=|FALSE|FALSE||FALSE
-<=|TRUE|TRUE|TRUE|
->=|TRUE|TRUE|TRUE|
-1 and 2
-= |FALSE|FALSE||FALSE
-> |FALSE|FALSE||FALSE
-< |TRUE|TRUE|TRUE|
-==|FALSE|FALSE||FALSE
-!=|TRUE|TRUE|TRUE|
-<=|TRUE|TRUE|TRUE|
->=|FALSE|FALSE||FALSE
--1 and -2
-= |FALSE|FALSE||FALSE
-> |TRUE|TRUE|TRUE|
-< |FALSE|FALSE||FALSE
-==|FALSE|FALSE||FALSE
-!=|TRUE|TRUE|TRUE|
-<=|FALSE|FALSE||FALSE
->=|TRUE|TRUE|TRUE|
--14 and -3
-= |FALSE|FALSE||FALSE
-> |FALSE|FALSE||FALSE
-< |TRUE|TRUE|TRUE|
-==|FALSE|FALSE||FALSE
-!=|TRUE|TRUE|TRUE|
-<=|TRUE|TRUE|TRUE|
->=|FALSE|FALSE||FALSE
-============================================================
-============================================================
-TEST 2: Erroneous integer comparisons
-============================================================
-! Missing ) inserted for expression.
-<to be read again> 
-\__int_eval_end: 
-l. ...  }
-I was expecting to see `+', `-', `*', `/', or `)'. Didn't.
-! Missing ) inserted for expression.
-<to be read again> 
-=
-l. ...  }
-I was expecting to see `+', `-', `*', `/', or `)'. Didn't.
-! Missing ) inserted for expression.
-<to be read again> 
-=
-l. ...  }
-I was expecting to see `+', `-', `*', `/', or `)'. Didn't.
-! Missing ) inserted for expression.
-<to be read again> 
-=
-l. ...  }
-I was expecting to see `+', `-', `*', `/', or `)'. Didn't.
-! Missing ) inserted for expression.
-<to be read again> 
-=
-l. ...  }
-I was expecting to see `+', `-', `*', `/', or `)'. Didn't.
-! Missing ) inserted for expression.
-<to be read again> 
->
-l. ...  }
-I was expecting to see `+', `-', `*', `/', or `)'. Didn't.
-! Missing ) inserted for expression.
-<to be read again> 
->
-l. ...  }
-I was expecting to see `+', `-', `*', `/', or `)'. Didn't.
-! Missing ) inserted for expression.
-<to be read again> 
->
-l. ...  }
-I was expecting to see `+', `-', `*', `/', or `)'. Didn't.
-! Missing ) inserted for expression.
-<to be read again> 
->
-l. ...  }
-I was expecting to see `+', `-', `*', `/', or `)'. Didn't.
-! Missing ) inserted for expression.
-<to be read again> 
-<
-l. ...  }
-I was expecting to see `+', `-', `*', `/', or `)'. Didn't.
-! Missing ) inserted for expression.
-<to be read again> 
-<
-l. ...  }
-I was expecting to see `+', `-', `*', `/', or `)'. Didn't.
-! Missing ) inserted for expression.
-<to be read again> 
-<
-l. ...  }
-I was expecting to see `+', `-', `*', `/', or `)'. Didn't.
-! Missing ) inserted for expression.
-<to be read again> 
-<
-l. ...  }
-I was expecting to see `+', `-', `*', `/', or `)'. Didn't.
-! Missing ) inserted for expression.
-<to be read again> 
-=
-l. ...  }
-I was expecting to see `+', `-', `*', `/', or `)'. Didn't.
-! Missing ) inserted for expression.
-<to be read again> 
-=
-l. ...  }
-I was expecting to see `+', `-', `*', `/', or `)'. Didn't.
-! Missing ) inserted for expression.
-<to be read again> 
-=
-l. ...  }
-I was expecting to see `+', `-', `*', `/', or `)'. Didn't.
-! Missing ) inserted for expression.
-<to be read again> 
-=
-l. ...  }
-I was expecting to see `+', `-', `*', `/', or `)'. Didn't.
-! Missing ) inserted for expression.
-<to be read again> 
-!
-l. ...  }
-I was expecting to see `+', `-', `*', `/', or `)'. Didn't.
-! Missing ) inserted for expression.
-<to be read again> 
-!
-l. ...  }
-I was expecting to see `+', `-', `*', `/', or `)'. Didn't.
-! Missing ) inserted for expression.
-<to be read again> 
-!
-l. ...  }
-I was expecting to see `+', `-', `*', `/', or `)'. Didn't.
-! Missing ) inserted for expression.
-<to be read again> 
-!
-l. ...  }
-I was expecting to see `+', `-', `*', `/', or `)'. Didn't.
-! Missing ) inserted for expression.
-<to be read again> 
-<
-l. ...  }
-I was expecting to see `+', `-', `*', `/', or `)'. Didn't.
-! Missing ) inserted for expression.
-<to be read again> 
-<
-l. ...  }
-I was expecting to see `+', `-', `*', `/', or `)'. Didn't.
-! Missing ) inserted for expression.
-<to be read again> 
-<
-l. ...  }
-I was expecting to see `+', `-', `*', `/', or `)'. Didn't.
-! Missing ) inserted for expression.
-<to be read again> 
-<
-l. ...  }
-I was expecting to see `+', `-', `*', `/', or `)'. Didn't.
-! Missing ) inserted for expression.
-<to be read again> 
->
-l. ...  }
-I was expecting to see `+', `-', `*', `/', or `)'. Didn't.
-! Missing ) inserted for expression.
-<to be read again> 
->
-l. ...  }
-I was expecting to see `+', `-', `*', `/', or `)'. Didn't.
-! Missing ) inserted for expression.
-<to be read again> 
->
-l. ...  }
-I was expecting to see `+', `-', `*', `/', or `)'. Didn't.
-! Missing ) inserted for expression.
-<to be read again> 
->
-l. ...  }
-I was expecting to see `+', `-', `*', `/', or `)'. Didn't.
-! Missing number, treated as zero.
-<to be read again> 
-\__int_eval_end: 
-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.
-<to be read again> 
-=
-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.
-<to be read again> 
-=
-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.
-<to be read again> 
-=
-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.
-<to be read again> 
-=
-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.
-<to be read again> 
->
-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.
-<to be read again> 
->
-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.
-<to be read again> 
->
-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.
-<to be read again> 
->
-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.
-<to be read again> 
-<
-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.
-<to be read again> 
-<
-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.
-<to be read again> 
-<
-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.
-<to be read again> 
-<
-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.
-<to be read again> 
-=
-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.
-<to be read again> 
-=
-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.
-<to be read again> 
-=
-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.
-<to be read again> 
-=
-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.
-<to be read again> 
-!
-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.
-<to be read again> 
-!
-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.
-<to be read again> 
-!
-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.
-<to be read again> 
-!
-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.
-<to be read again> 
-<
-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.
-<to be read again> 
-<
-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.
-<to be read again> 
-<
-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.
-<to be read again> 
-<
-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.
-<to be read again> 
->
-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.
-<to be read again> 
->
-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.
-<to be read again> 
->
-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.
-<to be read again> 
->
-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.)
-3 and 3
-= |TRUE|TRUE|TRUE|
-> |FALSE|FALSE||FALSE
-< |FALSE|FALSE||FALSE
-==|TRUE|TRUE|TRUE|
-!=|FALSE|FALSE||FALSE
-<=|TRUE|TRUE|TRUE|
->=|TRUE|TRUE|TRUE|
-0 and 7
-= |FALSE|FALSE||FALSE
-> |FALSE|FALSE||FALSE
-< |TRUE|TRUE|TRUE|
-==|FALSE|FALSE||FALSE
-!=|TRUE|TRUE|TRUE|
-<=|TRUE|TRUE|TRUE|
->=|FALSE|FALSE||FALSE
-============================================================
-============================================================
-TEST 3: Some more erroneous comparisons
-============================================================
-! Use of \??? doesn't match its definition.
-<argument> \???  
-      ! LaTeX3 Error: Relation ':' not among =, <, >, ==, !=, <=, >=.
-l. ...  }
-If you say, e.g., `\def\a1{...}', then you must always
-put `1' after `\a', since control sequence names are
-made up of letters only. The macro here has not been
-followed by the required stuff, so I'm ignoring it.
-! Use of \??? doesn't match its definition.
-<argument> \???  
-      ! LaTeX3 Error: Relation ':' not among =, <, >, ==, !=, <=, >=.
-l. ...  }
-If you say, e.g., `\def\a1{...}', then you must always
-put `1' after `\a', since control sequence names are
-made up of letters only. The macro here has not been
-followed by the required stuff, so I'm ignoring it.
-! Use of \??? doesn't match its definition.
-<argument> \???  
-      ! LaTeX3 Error: Relation '\?' not among =, <, >, ==, !=, <=, >=.
-l. ...  }
-If you say, e.g., `\def\a1{...}', then you must always
-put `1' after `\a', since control sequence names are
-made up of letters only. The macro here has not been
-followed by the required stuff, so I'm ignoring it.
-FALSEFALSEFALSE
-============================================================
-============================================================
-TEST 4: Comparing more integers
-============================================================
-TFTTFFTTF
-============================================================
-============================================================
-TEST 5: Comparing dimensions
-============================================================
-28.45274pt and 28.45274pt
-= |TRUE|TRUE|TRUE|
-> |FALSE|FALSE||FALSE
-< |FALSE|FALSE||FALSE
-==|TRUE|TRUE|TRUE|
-!=|FALSE|FALSE||FALSE
-<=|TRUE|TRUE|TRUE|
->=|TRUE|TRUE|TRUE|
--28.45274pt and -28.45276pt
-= |FALSE|FALSE||FALSE
-> |TRUE|TRUE|TRUE|
-< |FALSE|FALSE||FALSE
-==|FALSE|FALSE||FALSE
-!=|TRUE|TRUE|TRUE|
-<=|FALSE|FALSE||FALSE
->=|TRUE|TRUE|TRUE|
-72.26999pt and 85.35826pt
-= |FALSE|FALSE||FALSE
-> |FALSE|FALSE||FALSE
-< |TRUE|TRUE|TRUE|
-==|FALSE|FALSE||FALSE
-!=|TRUE|TRUE|TRUE|
-<=|TRUE|TRUE|TRUE|
->=|FALSE|FALSE||FALSE
--28.45274pt and -144.54pt
-= |FALSE|FALSE||FALSE
-> |TRUE|TRUE|TRUE|
-< |FALSE|FALSE||FALSE
-==|FALSE|FALSE||FALSE
-!=|TRUE|TRUE|TRUE|
-<=|FALSE|FALSE||FALSE
->=|TRUE|TRUE|TRUE|
--12.04503pt and -12.0pt
-= |FALSE|FALSE||FALSE
-> |FALSE|FALSE||FALSE
-< |TRUE|TRUE|TRUE|
-==|FALSE|FALSE||FALSE
-!=|TRUE|TRUE|TRUE|
-<=|TRUE|TRUE|TRUE|
->=|FALSE|FALSE||FALSE
-============================================================
-============================================================
-TEST 6: Erroneous dimension comparisons
-============================================================
-! Missing = inserted for \ifdim.
-<to be read again> 
-:
-l. ...  }
-I was expecting to see `<', `=', or `>'. Didn't.
-! Missing number, treated as zero.
-<to be read again> 
-:
-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.)
-! Illegal unit of measure (pt inserted).
-<to be read again> 
-:
-l. ...  }
-Dimensions can be in units of em, ex, in, pt, pc,
-cm, mm, dd, cc, nd, nc, bp, or sp; but yours is a new one!
-I'll assume that you meant to say pt, for printer's points.
-To recover gracefully from this error, it's best to
-delete the erroneous units; e.g., type `2' to delete
-two letters. (See Chapter 27 of The TeXbook.)
-:56.9055pt\exp_stop_f: FALSE28.45274pt\exp_stop_f: FALSE
-============================================================
-============================================================
-TEST 7: Comparing more dimensions
-============================================================
-TFFTTFTTF
-============================================================
diff --git a/l3kernel/testfiles/m3compare001.tlg b/l3kernel/testfiles/m3compare001.tlg
index 0b458c3bc..e679a544b 100644
--- a/l3kernel/testfiles/m3compare001.tlg
+++ b/l3kernel/testfiles/m3compare001.tlg
@@ -418,7 +418,7 @@ TEST 3: Some more erroneous comparisons
 ============================================================
 ! Use of \??? doesn't match its definition.
 <argument> \???  
-                 ! LaTeX3 Error: Relation ':' not among =, <, >, ==, !=, <=,...
+                 ! LaTeX3 Error: Relation ':' not among =,<,>,==,!=,<=,>=.
 l. ...  }
 If you say, e.g., `\def\a1{...}', then you must always
 put `1' after `\a', since control sequence names are
@@ -426,7 +426,7 @@ made up of letters only. The macro here has not been
 followed by the required stuff, so I'm ignoring it.
 ! Use of \??? doesn't match its definition.
 <argument> \???  
-                 ! LaTeX3 Error: Relation ':' not among =, <, >, ==, !=, <=,...
+                 ! LaTeX3 Error: Relation ':' not among =,<,>,==,!=,<=,>=.
 l. ...  }
 If you say, e.g., `\def\a1{...}', then you must always
 put `1' after `\a', since control sequence names are
@@ -434,7 +434,7 @@ made up of letters only. The macro here has not been
 followed by the required stuff, so I'm ignoring it.
 ! Use of \??? doesn't match its definition.
 <argument> \???  
-                 ! LaTeX3 Error: Relation '\?' not among =, <, >, ==, !=, <=...
+                 ! LaTeX3 Error: Relation '\?' not among =,<,>,==,!=,<=,>=.
 l. ...  }
 If you say, e.g., `\def\a1{...}', then you must always
 put `1' after `\a', since control sequence names are





More information about the latex3-commits mailing list.