emacs-devel
[Top][All Lists]
Advanced

[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





reply via email to

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