Subject: Re: bug#60830: 30.0.50; The *Compilation* buffer does not recognize Lua errors

From: Stefan Kangas <[email-masked]>
Date: Mon, 2 Oct 2023 11:37:37 -0700

Rudolf Adamkovič <[email-masked]> writes:

> Stefan Kangas <[email-masked]> writes:
>
>> This breaks because it doesn't follow the GNU standard's
>>
>>       [PROGRAM:]FILE:LINE: MESSAGE
>>
>> Any chance we could get the lua developers to follow that format,
>> instead?
>
> Thank you for the reply, Stefan.
>
> So, we seem to have 2 problems here:
>
> (1) the first line contains a space character after the 'PROGRAM:'
> segment, which Lua developers might be willing to change perhaps,
>
> and
>
> (2) the stack trace lines are indented, which I doubt Lua developers
> would want to change.
>
> Would it make sense to ask Lua developers about fixing (1) only, or
> would fixing (2) in Emacs also "magically" fix (1), if Emacs has to
> handle Lua specifically anyway?

AFAICT, all that is needed is to fix the formatting you describe in (1).
That will give the desired behavior.

Regarding (2), I think compilation-mode already detects those as file
locations, with no changes.  At least it does on current master.