GNU bug report logs -
#45443
28.0.50; Can't find definition of compilation--message->loc
Previous Next
Reported by: rms <at> gnu.org
Date: Sat, 26 Dec 2020 10:19:01 UTC
Severity: wishlist
Tags: fixed
Merged with 1457
Found in version 28.0.50
Fixed in version 28.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #38 received at submit <at> debbugs.gnu.org (full text, mbox):
Andrea Corallo via "Bug reports for GNU Emacs, the Swiss army knife of
text editors" <bug-gnu-emacs <at> gnu.org> writes:
>>
>> 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.
>
Yes, my patch tried a more general approach, which would not only find
function definitions, but also defvars like the hooks that are
synthesized by define-major-mode, for example.
There's some opportunities to do less work, though. For example, I
think it does not make sense to expand defuns because those were handled
in a previous step. I think that'd reduce the search space
significantly.
Another possible approach for this problem is to search textually for
just the things that we're typically interested in (like, cl-defstruct
or define-derived-mode), and expand only those to see if they synthesize
the symbol we are looking for. It will be a less general solution, but
it will be faster. We may add more cases in the future, if needed.
Thoughts?
This bug report was last modified 4 years and 141 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.