unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: "João Távora" <joaotavora@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: master d9b5f618baa 2/4: Eglot: introduce eglot-events-buffer-config
Date: Wed, 27 Dec 2023 20:51:54 +0200	[thread overview]
Message-ID: <83frzn8omt.fsf@gnu.org> (raw)
In-Reply-To: <CALDnm50v9W5kVg+MdPNUmBjR0B=5DYfvDAxdJF6Z_2XCZq7=KQ@mail.gmail.com> (message from João Távora on Wed, 27 Dec 2023 17:38:13 +0000)

> From: João Távora <joaotavora@gmail.com>
> Date: Wed, 27 Dec 2023 17:38:13 +0000
> Cc: emacs-devel@gnu.org
> 
> On Wed, Dec 27, 2023 at 5:29 PM Eli Zaretskii <eliz@gnu.org> wrote:
> 
> > > IOW Reconnecting to a server may trash useful caches, fail due
> > > to numerous reasons, etc...  We don't want to initiate it just
> > > because a user changed a preference.
> >
> > Shouldn't these caveats be in the doc string, where you tell users to
> > invoke eglot-reconnect?
> 
> No.  It's too server-specific, every server can behave differently.  It's
> assumed that if a user wants to reconnect and interactively chooses to do
> that, it's because they want to and understand what it does.  The model
> is the same as in SLIME and SLY, which also work with a multitude of CL
> implementations, and it has never proven problematic to my knowledge
> (at least in a over a decade of SLY maintenance).

Then we are inconsistent: either running eglot-reconnect is mostly
okay, in which case we should do it automatically when the option's
value changes, or it has issues, in which case we should at least hint
on those issues in the doc string, perhaps saying that with some
servers it's okay and with others less so.  The way the doc string is
worded now, users will invoke eglot-reconnect without being aware of
the possible issues which are the reason that you are reluctant to
invoke eglot-reconnect automatically.



  reply	other threads:[~2023-12-27 18:51 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-27 16:46 master d9b5f618baa 2/4: Eglot: introduce eglot-events-buffer-config Eli Zaretskii
2023-12-27 17:07 ` João Távora
2023-12-27 17:29   ` Eli Zaretskii
2023-12-27 17:38     ` João Távora
2023-12-27 18:51       ` Eli Zaretskii [this message]
2023-12-27 19:05         ` João Távora

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=83frzn8omt.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=joaotavora@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 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).