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: Eric Hanchrow
Subject: Re: How to make a command ask "You *really* want to do this?"
Date: 29 Apr 2003 10:27:56 -0700
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

>>>>> "David" == David Combs <dkcombs@panix.com> writes:

    David> Anyway, I do like how C-x n asks if I'm sure that I really
    David> want to narrow; I'd like to get eg C-x C-c to do the same
    David> thing (requiring a fully-typed-in "yes", maybe even two of
    David> them!),

Simply "disable" the command, like so:

        (put 'save-buffers-kill-emacs 'disabled 
                "Nobody in their right mind would ever want to kill Emacs.\n")

-- 

      |\      _,,,---,,_
ZZZzz /,`.-'`'    -.  ;-;;,_
     |,4-  ) )-,_. ,\ (  `'-'
    '---''(_/--'  `-'\_) fL
        -- Igor Pechtchanski


reply via email to

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