[latex3-commits] [git/LaTeX3-latex3-latex2e] develop: Avoid typesetting an error condition (e1ecaf4f)

Joseph Wright joseph.wright at morningstar2.co.uk
Thu Jan 6 15:25:40 CET 2022


Repository : https://github.com/latex3/latex2e
On branch  : develop
Link       : https://github.com/latex3/latex2e/commit/e1ecaf4ffd76cedfff61105a0688baadd1467823

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

commit e1ecaf4ffd76cedfff61105a0688baadd1467823
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Thu Jan 6 14:25:23 2022 +0000

    Avoid typesetting an error condition
    
    As that leads to engine-specific outcomes.


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

e1ecaf4ffd76cedfff61105a0688baadd1467823
 base/testfiles/github-0735.lvt |  2 +-
 base/testfiles/github-0735.tlg | 43 ++++++++++++++++--------------------------
 2 files changed, 17 insertions(+), 28 deletions(-)

diff --git a/base/testfiles/github-0735.lvt b/base/testfiles/github-0735.lvt
index 9b04b0f1..88da3015 100644
--- a/base/testfiles/github-0735.lvt
+++ b/base/testfiles/github-0735.lvt
@@ -26,7 +26,7 @@
 
 \TEST { Unknown variant }
   {
-    \ExpandArgs{XX} \NewCommandCopy {baz} {foo}
+    \setbox0=\hbox{\ExpandArgs{XX} \NewCommandCopy {baz} {foo}}
   }
 
 \END
diff --git a/base/testfiles/github-0735.tlg b/base/testfiles/github-0735.tlg
index a68e572c..006cf471 100644
--- a/base/testfiles/github-0735.tlg
+++ b/base/testfiles/github-0735.tlg
@@ -50,35 +50,24 @@ 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.
-! LaTeX Error: Missing \begin{document}.
-See the LaTeX manual or LaTeX Companion for explanation.
-Type  H <return>  for immediate help.
- ...                                              
-l. ...  }
-You're in trouble here.  Try typing  <return>  to proceed.
-If that doesn't work, type  X <return>  to quit.
 Missing character: There is no o in font nullfont!
 Missing character: There is no o in font nullfont!
-! Missing control sequence inserted.
+! Argument of \declare at commandcopy@let has an extra }.
 <inserted text> 
-                \inaccessible 
+                \par 
 l. ...  }
-Please don't say `\def cs{...}', say `\def\cs{...}'.
-I've inserted an inaccessible control sequence so that your
-definition will be completed without mixing me up too badly.
-You can recover graciously from this error, if you're
-careful; see exercise 27.2 in The TeXbook.
-Missing character: There is no a in font nullfont!
-Missing character: There is no z in font nullfont!
-Missing character: There is no f in font nullfont!
-Missing character: There is no o in font nullfont!
-Missing character: There is no o in font nullfont!
-Missing character: There is no = in font nullfont!
+I've run across a `}' that doesn't seem to match anything.
+For example, `\def\a#1{...}' and `\a}' would produce
+this error. If you simply proceed now, the `\par' that
+I've just inserted will cause me to report a runaway
+argument that might be the root of the problem. But if
+your `}' was spurious, just type `2' and it will go away.
+Runaway argument?
+! Paragraph ended before \declare at commandcopy@let was complete.
+<to be read again> 
+                   \par 
+l. ...  }
+I suspect you've forgotten a `}', causing me to apply this
+control sequence to too much text. How can we recover?
+My plan is to forget the whole thing and hope for the best.
 ============================================================
-Overfull \hbox (20.0pt too wide) in paragraph at lines 30--31
-[] 
-\hbox(0.0+0.0)x0.0
-.\hbox(0.0+0.0)x20.0
-.\penalty 10000
-.\glue(\parfillskip) 0.0 plus 1.0fil
-.\glue(\rightskip) 0.0





More information about the latex3-commits mailing list.