Subject: Re: bug#45443: 28.0.50; Can't find definition of compilation--message->loc

From: Andrea Corallo <[email-masked]>
Date: Sun, 27 Dec 2020 17:59:09 +0000

Eli Zaretskii <[email-masked]> writes:

>> From: Daniel Martín <[email-masked]>
>> Cc: Eli Zaretskii <[email-masked]>,  [email-masked],  [email-masked]
>> Date: Sun, 27 Dec 2020 01:51:29 +0100
>> 
>> One possible approach is, if the regular expression code fails to find a
>> location, we can fall back to expand macros until we find the definition
>> (a defalias in the case of a function, or a defvar in the case of a
>> variable), or we reach the end of the file.
>
> Why do we need to expand macros? isn't it enough to find the defstruct
> itself, by looking for a partial match?

I haven't look at the patch, but I think the approach of macro expanding
is more general as should be able to track any function definition that
is synthesized by any macro.

  Andrea