[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#51377: Automatically exit server when it has no remaining clients
From: |
Gregory Heytings |
Subject: |
bug#51377: Automatically exit server when it has no remaining clients |
Date: |
Sun, 24 Oct 2021 20:42:12 +0000 |
Yeah, that looks like it should avoid any data loss. However, it's not
the behavior I'd personally expect. As I understand it, this will just
keep the Emacs daemon alive if there are any unsaved files.
Indeed. And if there are any running processes. This is I think the
least surprising behavior for users who use the Emacs daemon.
I'd find it easier to use if Emacs warned the user about unsaved files
before killing the last client. Then, Emacs can safely kill the daemon
once I've confirmed that that's what I want.
I'm not sure I understand why this would be better.
If want you want is to save unsaved buffers and stop the daemon when you
close the last frame, you can simply use:
(defun save-buffers-kill-terminal (&optional arg)
(interactive "P")
(if (and (frame-parameter nil 'client)
(cddr (frame-list)))
(server-save-buffers-kill-terminal arg)
(save-buffers-kill-emacs arg)))
- bug#51377: Automatically exit server when it has no remaining clients, Gregory Heytings, 2021/10/24
- bug#51377: Automatically exit server when it has no remaining clients, Jim Porter, 2021/10/24
- bug#51377: Automatically exit server when it has no remaining clients, Jim Porter, 2021/10/24
- bug#51377: Automatically exit server when it has no remaining clients, Gregory Heytings, 2021/10/24
- bug#51377: Automatically exit server when it has no remaining clients, Jim Porter, 2021/10/24
- bug#51377: Automatically exit server when it has no remaining clients, Gregory Heytings, 2021/10/24
- bug#51377: Automatically exit server when it has no remaining clients, Jim Porter, 2021/10/24
- bug#51377: Automatically exit server when it has no remaining clients,
Gregory Heytings <=
- bug#51377: Automatically exit server when it has no remaining clients, Jim Porter, 2021/10/24
- bug#51377: Automatically exit server when it has no remaining clients, Gregory Heytings, 2021/10/24
- bug#51377: Automatically exit server when it has no remaining clients, Jim Porter, 2021/10/25
- bug#51377: Automatically exit server when it has no remaining clients, Gregory Heytings, 2021/10/26
- bug#51377: Automatically exit server when it has no remaining clients, Gregory Heytings, 2021/10/26
- bug#51377: Automatically exit server when it has no remaining clients, Gregory Heytings, 2021/10/26
- bug#51377: Automatically exit server when it has no remaining clients, Jim Porter, 2021/10/24