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: Felician Nemeth
Subject: Re: Adding support for xref jumping to headers/interfaces
Date: Tue, 07 Mar 2023 20:58:46 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)

Yuan Fu <casouri@gmail.com> writes:

>> There's also the issue of assigning keys to them (for tmm-menubar
>> alike interface), which might be harder to do automatically.
>> 
>> We could just do completing-read, but that's bound to be slower to work with.
>> 
>
> I like the idea of xref-find-extra. For keys we can support both
> auto-compute (use first character) and backend-chosen keys, similar to
> read-multiple-choice. We can even allow users to customize it.

I think this approach might be problematic if the major-mode provides a
"declaration" type and, say, Eglot provides a "definition" type.  But
maybe, as you write, providing customization options to the users is a
simple solution in this rare case.

> Completing-read is a bad idea, as you said, it’s going to be slow,
> much slower and less pleasant to use.

Currently all I write are emails, but long ago I wrote a simple,
tmm-based completing-read function to overcome this problem.  Maybe that
approach is useful here as well:
https://github.com/nemethf/single-key-completion/




reply via email to

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