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: Spencer Baugh
Subject: Re: Adding support for xref jumping to headers/interfaces
Date: Tue, 07 Nov 2023 12:09:32 -0500
User-agent: Gnus/5.13 (Gnus v5.13)

Dmitry Gutov <dgutov@yandex.ru> writes:
> Still, though. It's not clear to me that improving this particular
> feature for Elisp will bring a lot to the table.
>
> Does it really do certain things better than simply using 'M-.' and
> then choosing between all the available definition types inside the
> buffer (and then navigating to one with TAB)?
>
> Or if one prefers a more dynamic interface with completions, (setq
> xref-xref-show-definitions-function
> #'show-definitions-completing-read) could fit that bill.
>
> There is a tradeoff of not being able to just press a single char, but
> OTOH one doesn't always know which definition kind they want in
> advance, and here, the full list helps one make that choice.

I guess one possible issue is that requesting all definitions and then
choosing between them could be expensive in certain languages.  Knowing
what kind of "definition" you want in advance could make things faster.
I don't have any concrete example of this, just putting out the thought.




reply via email to

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