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: Mon, 6 Mar 2023 16:09:40 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1

On 06/03/2023 01:40, John Yates wrote:
For languages that do not distinguish declaration from definition,
another alternative is to have both key bindings reference the same
find-definition functionality.

I think I would generally prefer for the "find declarations" binding to end with an error when unsupported rather than repeat an existing command which is already accessible through an easier key binding.

Otherwise some users might waste time wondering over the difference, testing, and comparing -- I myself would, probably.

Anyway, the question is moot if we're going the way of dynamically detecting the set of possible navigations.

But I suppose some simpler languages might have no "extra" searches to suggest. I wouldn't necessarily oppose rebinding xref-find-extra in such major mode to something different, as long as the command is doing something related. The key bindings are a limited set, after all.



reply via email to

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