all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#61679: 29.0.60; Eglot: staying out of trouble
@ 2023-02-21 14:31 Augusto Stoffel
  2023-02-21 15:00 ` João Távora
  0 siblings, 1 reply; 7+ messages in thread
From: Augusto Stoffel @ 2023-02-21 14:31 UTC (permalink / raw)
  To: 61679; +Cc: João Távora

Eglot modifies several Emacs features, and it seems to do so
independently of the server capabilities.  For instance, it registers a
capf and Eldoc functions even if the server does't provide completions
respectively "hover"/signature help.

In some cases (capf, xref) this seems innocuous, in others (eldoc) Eglot
is really overwriting a possibly useful function with a possibly useless
one.

Now, the above are somewhat silly examples, but the Flymake case is
quite problematic.  There exist good servers that don't provide
diagnostics, and Eglot still overwrites `flymake-diagnostic-functions'.
To make things worse, LSP doesn't provide a way to the server to advertise
whether or not it provides diagnostics.

I would suggest that Elgot initially should keep
flymake-diagnostic-functions unchanged, and only overwrite it when the
first diagnostic comes from the server.





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

end of thread, other threads:[~2023-02-21 15:53 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-21 14:31 bug#61679: 29.0.60; Eglot: staying out of trouble Augusto Stoffel
2023-02-21 15:00 ` João Távora
2023-02-21 15:09   ` Augusto Stoffel
2023-02-21 15:17     ` João Távora
2023-02-21 15:32       ` Augusto Stoffel
2023-02-21 15:53         ` João Távora
2023-02-21 15:53           ` João Távora

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.