GNU bug report logs - #76870
31.0.50; server-start with non-nil arg LEAVE-DEAD can write confusing warnings

Previous Next

Package: emacs;

Reported by: Jens Schmidt <jschmidt4gnu <at> vodafonemail.de>

Date: Sat, 8 Mar 2025 15:46:04 UTC

Severity: normal

Found in version 31.0.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #17 received at 76870 <at> debbugs.gnu.org (full text, mbox):

From: Jens Schmidt <jschmidt4gnu <at> vodafonemail.de>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 76870 <at> debbugs.gnu.org
Subject: Re: bug#76870: 31.0.50; server-start with non-nil arg LEAVE-DEAD can
 write confusing warnings
Date: Sun, 9 Mar 2025 20:46:27 +0100
[Message part 1 (text/plain, inline)]
On 2025-03-09  11:39, Eli Zaretskii wrote:

>> If yes, then I find it confusing to read that Emacs could not
>> *start* the server in the resulting warning.
> 
> So you want to have an alternative message about stopping only?  That
> could be a good idea, yes.

Exactly.  The attached patch a) stops the server in a silent way from
function `server-unload-function' and b) extends function `server-start'
to issue the following messages if an external server is running:

M-x server-start RET

  [message unchanged compared to master]

  ⛔ Warning (server): Unable to start the Emacs server.
  There is an existing Emacs server, named "server"
  To start the server in this Emacs process, stop the existing server or call M-x server-force-delete to forcibly disconnect it.

C-u M-x server-start RET

  ⛔ Warning (server): Unable to stop an external Emacs server.
  There is an existing Emacs server, named "server"
  Stop it either in its Emacs session or call M-x server-force-delete to forcibly disconnect it.

Please let me know what you think.

Thanks
[0001-Improve-message-handling-on-server-stop.patch (text/x-patch, attachment)]

This bug report was last modified 56 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.