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

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

Re: How to make a command ask "You *really* want to do this?"


From: Stefan Monnier
Subject: Re: How to make a command ask "You *really* want to do this?"
Date: 30 Apr 2003 18:50:29 -0400
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

>>>>> "Heinz" == Heinz Rommerskirchen <Heinrich.Rommerskirchen@siemens.com> 
>>>>> writes:
> Years ago I copied the following from the usenet into my .emacs
> (setq kill-emacs-query-functions
>       (cons (lambda () (yes-or-no-p "Really kill Emacs? "))
>           kill-emacs-query-functions))

The proper way to write it nowadays is:

  (add-hook 'kill-emacs-query-functions
            (lambda () (yes-or-no-p "Really kill Emacs? ")))


-- Stefan


reply via email to

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