texlive[73008] Build/source/texk/web2c: write help message to log

commits+karl at tug.org commits+karl at tug.org
Sun Dec 1 18:34:48 CET 2024


Revision: 73008
          https://tug.org/svn/texlive?view=revision&revision=73008
Author:   karl
Date:     2024-12-01 18:34:47 +0100 (Sun, 01 Dec 2024)
Log Message:
-----------
write help message to log when exiting due to -halt-on-error

Modified Paths:
--------------
    trunk/Build/source/texk/web2c/ChangeLog
    trunk/Build/source/texk/web2c/NEWS
    trunk/Build/source/texk/web2c/tex.ch

Modified: trunk/Build/source/texk/web2c/ChangeLog
===================================================================
--- trunk/Build/source/texk/web2c/ChangeLog	2024-12-01 00:46:12 UTC (rev 73007)
+++ trunk/Build/source/texk/web2c/ChangeLog	2024-12-01 17:34:47 UTC (rev 73008)
@@ -1,3 +1,10 @@
+2024-12-01  Karl Berry  <karl at freefriends.org>
+
+	* tex.ch (error): do @<Put help message on the transcript file@>
+	before exiting if halt_on_error_p, to be closer to behavior of TeX
+	without -halt-on-error. Suggestion from jfbu:
+	https://tug.org/pipermail/tex-live/2024-July/050741.html
+
 2024-11-24  David Fuchs  <drfuchs at yahoo.com>
 
 	* tex.ch (Initialize the input routines): also initialize

Modified: trunk/Build/source/texk/web2c/NEWS
===================================================================
--- trunk/Build/source/texk/web2c/NEWS	2024-12-01 00:46:12 UTC (rev 73007)
+++ trunk/Build/source/texk/web2c/NEWS	2024-12-01 17:34:47 UTC (rev 73008)
@@ -1,6 +1,9 @@
 This file records noteworthy changes.  (Public domain.)
 See also */NEWS, */ChangeLog, etc.
 
+* Most engines: if TeX exits due to the -halt-on-error option,
+write the help message to the log file, as happens without -halt-on-error.
+
 * mf: remove incorrect change of long standing in the Web2c mf.ch file,
 which affects calculation of a few pen polygons in a small way; we don't
 know if any extant fonts are impacted.

Modified: trunk/Build/source/texk/web2c/tex.ch
===================================================================
--- trunk/Build/source/texk/web2c/tex.ch	2024-12-01 00:46:12 UTC (rev 73007)
+++ trunk/Build/source/texk/web2c/tex.ch	2024-12-01 17:34:47 UTC (rev 73008)
@@ -877,10 +877,19 @@
 @y
 print_char("."); show_context;
 if (halt_on_error_p) then begin
+  {This module is executed at the end of the |error| procedure in
+   \.{tex.web}, but we'll never get there when |halt_on_error_p|, so the
+   error help shouldn't get duplicated. It's potentially useful to see,
+   especially if \.{\\errhelp} is being used. See thread at:
+   \.{https://tug.org/pipermail/tex-live/2024-July/050741.html}.}
+  @<Put help message on the transcript file@>;
+
   {If |close_files_and_terminate| generates an error, we'll end up back
    here; just give up in that case. If files are truncated, too bad.}
   if (halting_on_error_p) then do_final_end; {quit immediately}
   halting_on_error_p:=true;
+
+  {Proceed with normal exit.}
   history:=fatal_error_stop;
   jump_out;
 end;



More information about the tex-live-commits mailing list.