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: Stephen Leake
Subject: Re: Adding support for xref jumping to headers/interfaces
Date: Sun, 05 Mar 2023 09:19:50 -0800
User-agent: Gnus/5.13 (Gnus v5.13)

Dmitry Gutov <dgutov@yandex.ru> writes:

> On 05/03/2023 17:57, Helmut Eller wrote:
>> On Sun, Mar 05 2023, Dmitry Gutov wrote:
>> 
>>> On 05/03/2023 11:59, Helmut Eller wrote:
>>>> I think that it's a bad idea to add language specific commands to xref.
>>>> The next thing is that we have commands for jump-to-variable and
>>>> jump-to-constant and jump-to-macro ...
>>>> It would be better to leave those commands in the language specific
>>>> mode
>>>> with the C-c prefix.
>>> Is it still a problem if the command applies to a lot (most) of languages?
>> It still creates this problem: as a user I don't know which command to
>> use, the more specific or the more general or both.
>
> When you need a declaration, use xref-find-declarations, and
> otherwise, xref-find-definitions, I guess? Spencer, who started this
> thread, apparently had a use case where he needs to "jump to
> interface".

ada-mode has "wisi-goto-spec/body"; if on a body (definition), goto
specification (declaration), if on a spec, goto body, if on a reference,
goto spec. 

-- 
-- Stephe



reply via email to

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