all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "João Távora" <joaotavora@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 64608@debbugs.gnu.org, Filippo Argiolas <filippo.argiolas@gmail.com>
Subject: bug#64608: 29.0.90; Eglot: reuse server when visiting external files
Date: Fri, 14 Jul 2023 15:00:34 +0100	[thread overview]
Message-ID: <CALDnm53adVHgX=BapXmLVSJNa98vMt3+-4UGPG3VFM8e6owJcw@mail.gmail.com> (raw)
In-Reply-To: <837cr24w1y.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 1396 bytes --]

On Fri, Jul 14, 2023, 11:38 Eli Zaretskii <eliz@gnu.org> wrote:

> >
> > Any pointer to achieve something like this with current project.el and
> > eglot code would also be great. Maybe with a custom project backend?
>
> Sorry, I don't understand: AFAIU Eglot reuses the same server for all
> the buffers under the same major-mode, so you should already have what
> you want?  Or what am I missing?
>

Not really like that Eli. Within the set of all the buffers in the major
mode, subsets are defined for every project, i.e. return value of
project-current. Broadly, that pair {major-mode , project} is the
discriminator that determines Eglot's choice of server instance to manage a
given buffer. The exception is buffers visited by eglot-extend-to-xref. I
believe this is explained in the manual. If it's not clear, we should
improve it.

Fillipo, to fully understand your use case and what's missing I need you to
create a structural example of those related projects, closely
representative of the real one, pack it as a zip or a reference to a Git
repository, in a way that I can experience the same limitation you are
experiencing myself. Is the server you are using Clangd? If so, say the
version.

In summary, please follow the seven steps outlined in
https://joaotavora.github.io/eglot/#Troubleshooting-Eglot, else it's going
to be hard to help you.

João

[-- Attachment #2: Type: text/html, Size: 2000 bytes --]

  parent reply	other threads:[~2023-07-14 14:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2023-07-15  7:30     ` Filippo Argiolas
2023-07-15  7:32       ` Filippo Argiolas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CALDnm53adVHgX=BapXmLVSJNa98vMt3+-4UGPG3VFM8e6owJcw@mail.gmail.com' \
    --to=joaotavora@gmail.com \
    --cc=64608@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=filippo.argiolas@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.