emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adding support for xref jumping to headers/interfaces


From: Dmitry Gutov
Subject: Re: Adding support for xref jumping to headers/interfaces
Date: Sun, 5 Nov 2023 00:29:09 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0

On 05/11/2023 00:24, João Távora wrote:
On Sat, Nov 4, 2023 at 10:00 PM Dmitry Gutov<dgutov@yandex.ru>  wrote:
On 20/06/2023 18:31, João Távora wrote:
If I remember correctly, SLIME (and SLY) have at least two types of
"reference" searches: "who calls" and "who expands".  They create the
typical ((file -> list of matches)...) listing in an SLIME xref buffer.
Interesting. And AFAICS SLIME also has another kind of non-definitions
search: slime-who-specializes.

Speaking of the two former ones, though: is there a point in using two
different commands, if their outputs never "intersect"? That is, one is
for the macros, and another for regular functions. Why wouldn't
'slime-who-calls' also work on macros, printing their expansion sites?
I think maybe just to limit the signal to noise ratio.  Maybe I'm
specifically interested in macro expansions only.  But I kind of agree
that, at least  in Lisp, calling and expanding isn't usually very different
in terms of what I want to know about such a site.

But if who-calls only works for functions and who-expands only works for macros, only one of them would work for a given symbol, right? The other would return an empty list.

Anyway, does this mean that xref.el is soon to have a solution for
this?  The one I vaguely remember discussing in this thread.  Something
like a single xref-find-other command + a selector for the type of
reference, right?

Maybe it will, maybe actually not. See one of my next few emails with a patch to try out (with the things you mentioned) and some further questions to ponder.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]