[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: A wish, a plea
From: |
Glyn Millington |
Subject: |
Re: A wish, a plea |
Date: |
Fri, 22 Jun 2007 13:33:18 +0100 |
User-agent: |
Gnus/5.110007 (No Gnus v0.7) Emacs/22.1 (gnu/linux) |
Nic James Ferrier <address@hidden> writes:
> Glyn Millington <address@hidden> writes:
>
>> Another way round - pretty sure this isn't mine!!
>>
>> ;;; Don't quit unless you mean it!
>> (defun maybe-save-buffers-kill-emacs (really)
>> "If REALLY is 'yes', call save-buffers-kill-emacs."
>> (interactive "sAre you sure about this? ")
>> (if (equal really "yes")
>> (save-buffers-kill-emacs)))
>> (global-set-key [(control x) (control c)]
>> 'maybe-save-buffers-kill-emacs)
>
> It doesn't work for me. My braind had trained me to skip the question
> (can't remember what response I was using, "no" presumably).
>
> So the effect was the same thing as just quit.
Eh?
You can only quit, using the above, if you type in "yes". Anything else
will leave you in the buffer on which you were working.
Sorry if I have misunderstood something.
atb
Glyn
- RE: A wish, a plea, (continued)
- RE: A wish, a plea, Drew Adams, 2007/06/23
- Re: A wish, a plea, Juanma Barranquero, 2007/06/24
- RE: A wish, a plea, Drew Adams, 2007/06/24
- Re: A wish, a plea, Juanma Barranquero, 2007/06/24
- Re: A wish, a plea, David Kastrup, 2007/06/24
- Re: A wish, a plea, Juri Linkov, 2007/06/25
- RE: A wish, a plea, Drew Adams, 2007/06/25
Re: A wish, a plea, Juanma Barranquero, 2007/06/22
Re: A wish, a plea, Glyn Millington, 2007/06/22
Re: A wish, a plea, Denis Bueno, 2007/06/22