[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [FR] Recognize L3 \msg_line_context: on warning parsing
From: |
Tassilo Horn |
Subject: |
Re: [FR] Recognize L3 \msg_line_context: on warning parsing |
Date: |
Fri, 10 Sep 2021 08:55:32 +0200 |
User-agent: |
mu4e 1.6.6; emacs 28.0.50 |
Florent Rougon <f.rougon@free.fr> writes:
Hi Florent,
> Unrelated to your question but related to the thread: there is
> another, less common way to print error messages, which works in
> expansion-only contexts: \msg_expandable_error:nnn and friends. Since
> neither \message nor \write work in expansion-only contexts,
> \msg_expandable_error:nnn works by triggering a specially crafted
> “Undefined control sequence” error, as it seems. The result is
> slightly ugly as compared to normal error messages, but this is the
> only way I know to print error messages in expansion-only
> contexts. The attached document shows an example, which yields the
> following output on the terminal:
>
> ./document.tex:19: Undefined control sequence.
> <argument> \::error
> ! foo: This is an error message: 'some stuff'.
> l.19 \edef\zzz{\foomsg{some stuff}
> }
That's already caught by the AUCTeX error parser, `TeX-next-error' jumps
to the correct position which is also listed in `TeX-error-overview'.
So nothing to be done here on our side, right?
Bye,
Tassilo