unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* How to make a command ask "You *really* want to do this?"
@ 2003-04-29  1:51 David Combs
  2003-04-29  2:17 ` Jesper Harder
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: David Combs @ 2003-04-29  1:51 UTC (permalink / raw)


I just discovered, to my horror, that C-x C-c does
a save-buffers-exit-emacs (I've always exited by
doing that "by hand", ie M-x save-buff...).

It was only via C-h l (ell) and then C-h k that
I discovered this (yeah, rtfm, David).

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

Especially when it's late late at night, eg
4am, and I'm dead tired, and don't want
some knee-jerk <return> or "y", etc, to
result in a sometimes very-unpleasant surprise.

(Especially since (1) I tend to keep emacs "up" for
days at a time, and (2) I often keep various things
*scratch*.)

What methods do *you* use for installing such
protections-from-oneself?

Thanks

David

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2003-05-23  6:31 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-29  1:51 How to make a command ask "You *really* want to do this?" David Combs
2003-04-29  2:17 ` Jesper Harder
2003-04-29  8:47 ` Heinz Rommerskirchen
2003-04-30 22:50   ` Stefan Monnier
2003-04-30 23:10     ` Henrik Enberg
2003-04-29 17:27 ` Eric Hanchrow
2003-04-29 17:41   ` Chris McMahan
2003-05-13  9:56 ` Per Abrahamsen
2003-05-23  6:31   ` David Combs

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).