Florent Rougon <[email protected]> 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