unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#64608: 29.0.90; Eglot: reuse server when visiting external files
@ 2023-07-14  5:51 Filippo Argiolas
  2023-07-14 10:38 ` Eli Zaretskii
  0 siblings, 1 reply; 6+ messages in thread
From: Filippo Argiolas @ 2023-07-14  5:51 UTC (permalink / raw)
  To: 64608

Hi,

I'm working on a couple of projects each with their main root and all
sharing some common code in an external root dir.

Each project has a compile_commands.json that knows how to compile the
external shared code. External root has no compile db and doesn't know
how to compile itself.

Eglot currently allows me to jump to external files using xref while
keeping the current active running server by setting
eglot-extend-to-xref.

Project.el allows me to visit external files using project-or-external-
functions by defining project-external-roots on my custom backend or
project-vc-external-roots-functions with the default backend.

It would be great if I configure Eglot to not switch to a new server
when visiting an external file in a similar way it does with xref.

Any pointer to achieve something like this with current project.el and
eglot code would also be great. Maybe with a custom project backend?


Best regards,
Filippo





^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-07-15  7:32 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-14  5:51 bug#64608: 29.0.90; Eglot: reuse server when visiting external files Filippo Argiolas
2023-07-14 10:38 ` Eli Zaretskii
2023-07-14 13:55   ` Filippo Argiolas
2023-07-14 14:00   ` João Távora
2023-07-15  7:30     ` Filippo Argiolas
2023-07-15  7:32       ` Filippo Argiolas

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).