emacs-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] files.el: avoid asking whether to kill Emacs multiple times


From: Stefan Monnier
Subject: Re: [PATCH] files.el: avoid asking whether to kill Emacs multiple times
Date: Thu, 29 Jan 2015 10:54:42 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

>> If `confirm-kill-emacs' is set, but user has just been asked whether
>> they really want to kill Emacs (for example with a ‘Modified buffers
>> exist; exit anyway?’ prompt), do not ask them for another confirmation.

I agree that skipping the second confirmation would be desirable.

>> However, apply this exception only if `confirm-kill-emacs' is
>> 'yes-or-no-p or 'y-or-n-p, otherwise this change might errenously
>> prevent some user defined function from being run.

Is it really worth the trouble?  Comparing functions is just a bad idea
in general, so if we can avoid it, it's preferable.

> Related?
> http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9577

Another painful one is when a file is modified outside of Emacs but you
still want to edit the current buffer and then save it (hence
overwriting the changes made outside of Emacs).  I think in total this
gets you 3 confirmation prompts and at least one of them should go.


        Stefan



reply via email to

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