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

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

Re: how to make emacs prompt me before closing the last emacs gui frame


From: martin rudalics
Subject: Re: how to make emacs prompt me before closing the last emacs gui frame when running emacs as a daemon?
Date: Sun, 05 Feb 2017 10:15:59 +0100

> I know that before deleting the frame, emacs runs the functions that are
> listed in the variable delete-frame-functions,
> so I thought I could include a function there that would prompt me to query
> if I really wanted to kill the frame.
> But it is not clear from the documentation what I would have to do inside
> that function to stop the process of killing the frame.

‘delete-frame-functions’ cannot be used for preventing a frame from
getting deleted.  If it were able to do so, you would sooner or later
end up in some infinite recursion when trying to terminate a session.

> Another idea would be to add an advice to evil-quit, like: if daemon-p is t
> then evil-quit have to prompt me to quit my current frame.
> Or Something like that?

Something like that, yes.

martin




reply via email to

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