[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: C-x C-c needs to say more than just "save file...?"
From: |
sen_ml |
Subject: |
Re: C-x C-c needs to say more than just "save file...?" |
Date: |
Wed, 03 Jan 2001 10:49:16 +0900 (JST) |
From: Dan Jacobson <jidanni@kimo.FiXcomTHiS.tw>
Subject: C-x C-c needs to say more than just "save file...?"
Date: 02 Jan 2001 09:10:23 +0800
> Yeah yeah, I know what you're gonna say, there's some hook & variable
> all ready to optionally fix this... but I'm really just out for the
> moral victory of admission that this is a little too little to say
> about the death of an emacs that might have been alive for a few
> days... in the newbie default case especially.
you mean like this? ;-)
;; ask before killing emacs
(setq kill-emacs-query-functions
(cons (lambda ()
(yes-or-no-p "Quit Emacs? "))
kill-emacs-query-functions))
i added the above snippet to my .emacs last month or so because i had
accidentally typed C-x C-c one too many times.
i was thinking that it would have been nice if:
-querying for confirmation of quitting was the default behavior
in Emacs (perhaps too annoying for many expert users),
-quit confirmation was easily configurable via customize (e.g. users
relatively inexperienced in Emacs LISP would not have to figure out
hook functions and such),
-OR-
-there was some kind of default .emacs file for relatively inexperienced
users, and that this quit confirmation setting could be found there. as
a user gained experience, that user could decide to remove or modify the
contents of this .emacs file (or start over from scratch).
> Furthermore, if one accidentally hits the little button to kill window
> in the corner of the emacs window, one is given a pop-up menu called
> "Question", with one of the choices mentioning killing emacs etc,
> however other options on that menu also have the effect of killing
> emacs, [as does killing this pop-up window!] one would think the other
> choices wouldn't kill emacs due to them not also mentioning it.
fwiw, i don't seem to have such a little button in my environment.
- C-x C-c needs to say more than just "save file...?", Dan Jacobson, 2001/01/02
- Re: C-x C-c needs to say more than just "save file...?",
sen_ml <=
- Re: C-x C-c needs to say more than just "save file...?", Eli Zaretskii, 2001/01/03
- Re: C-x C-c needs to say more than just "save file...?", sen_ml, 2001/01/03
- Re: C-x C-c needs to say more than just "save file...?", Dan Jacobson, 2001/01/07
- Re: C-x C-c needs to say more than just "save file...?", Eli Zaretskii, 2001/01/08
- Re: C-x C-c needs to say more than just "save file...?", Dan Jacobson, 2001/01/10
- Re: C-x C-c needs to say more than just "save file...?", Jaume Guasch, 2001/01/12
Re: C-x C-c needs to say more than just "save file...?", Charles Sebold, 2001/01/03
Re: C-x C-c needs to say more than just "save file...?", Raymond Zeitler, 2001/01/03