On 10/24/2021 12:39 PM, Jim Porter wrote: > Next, I updated `server-save-buffers-kill-terminal' to check if the > server is a lazy daemon and if the current client is the last one: if > so, it calls `save-buffers-kill-emacs', which then calls an improved > `server-kill-emacs-query-function' that knows to avoid prompting > unnecessarily when this is the last client. I amended the third patch (attached) to account for this change in `handle-delete-frame'. This ensures that if you delete the last (non-daemon) frame using this method, it calls `save-buffers-kill-emacs' to ask the relevant questions.