On Sat, 17 Jan 2026 at 16:08, Arash Esbati <[email protected]> wrote:

> Hi all,
>
> during the discussion about this report[1], it was revealed that the
> messages emitted by LuaTeX are not consistent.  Say you have a infs.tex
> file like this[2]:
>
>   \ignoreprimitiveerror=1
>   \setbox0=\vbox{\hrule height 1pt \vskip 0pt minus 1fill}
>   \setbox1=\vsplit0 to 5pt
>   \end
>
> Running luatex on it produces:
>
>   $ luatex infs
>   This is LuaTeX, Version 1.22.0 (TeX Live 2025)
>    restricted system commands enabled.
>   (./infs.tex
>   ignored error Infinite glue shrinkage found in box being split
>
> but adding '-file-line-error' to the call gives:
>
>   $ luatex --file-line-error infs
>   This is LuaTeX, Version 1.22.0 (TeX Live 2025)
>    restricted system commands enabled.
>   (./infs.tex
>   ./infs.tex:4: Infinite glue shrinkage found in box being split
>
> Note the missing 'ignored error' prefix.
>
> For TL2026, the message is changed in general[3], but is it possible to
> make sure that LuaTeX emits the same message with and w/o
> '-file-line-error'?  This is relevant for TeX editors which parse the
> log file in order to decide which command to run next etc.
>
> Best, Arash
>
> P.S.: Please keep me in Cc since I'm not subscribed to this list.  Thnx.
> P.P.S.: Thanks to David Carlisle for the minimal code above.
>
> Footnotes:
> [1]  https://github.com/latex3/latex2e/issues/1907
> [2]  https://github.com/latex3/latex2e/issues/1907#issuecomment-3750452965
> [3]  https://tug.org/pipermail/pdftex/2026-January/009466.html


The texlive svn has this commit

r77374 | karl | 2026-01-15 23:20:56 +0100 (gio, 15 gen 2026) | 1 line

avoid word "error" when infinite glue shrinkage is ignored

which is now upstream

--
luigi

Reply via email to