bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#58877: 29.0.50; [PATCH] When killing Emacs from a client frame with


From: Jim Porter
Subject: bug#58877: 29.0.50; [PATCH] When killing Emacs from a client frame with no other frames, Emacs shows a useless error prompt
Date: Sat, 26 Nov 2022 11:04:48 -0800

On 11/26/2022 6:43 AM, Eli Zaretskii wrote:
Never mind, I think I know what's the cause of the problem: I have my
production session of Emacs running on the system ,and it already has the
server started.  So a plain call to server-start fails.

I think you need to modify the tests to ensure the server file is created in
a temporary directory.  And keep in mind that the variable which affects
that is different depending on whether server-use-tcp is or isn't non-nil.

Hm, I'm surprised the tests failed again for you then. Both of the patches I posted to fix the tests set the 'server-name' to a (hopefully) unique value.

Still, I think it's a good idea to use a temporary directory to hold the server file, so here's a patch that does that. I've tried this patch with a production Emacs server running at the same time in several different configurations (with 'server-use-tcp' on and off, and with --daemon), and the tests all pass locally for me on GNU/Linux.

Attachment: 0001-Improve-robustness-of-server.el-tests.patch
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]