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: João Távora
Subject: Re: Adding support for xref jumping to headers/interfaces
Date: Sun, 5 Mar 2023 20:32:49 +0000

On Sun, Mar 5, 2023, 20:10 João Távora <joaotavora@gmail.com> wrote:
On Sun, Mar 5, 2023, 10:22 Helmut Eller <eller.helmut@gmail.com> 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.

I agree, but the xref backend responsible for answering the request can still be Eglot's. 

To clarify, i think the thin commands and the keybinds should be in the major modes, but these commands should be thin and use xref as a library. And the backend should be Eglot's,  if it happens to be managing the buffer via LSP, else out can be whatever the major modes sets up.

João

Josh

reply via email to

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