From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: dkcombs@panix.com (David Combs) Newsgroups: gmane.emacs.help Subject: How to make a command ask "You *really* want to do this?" Date: 28 Apr 2003 21:51:11 -0400 Organization: PANIX -- Public Access Networks Corp. Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1051581309 25021 80.91.224.249 (29 Apr 2003 01:55:09 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 29 Apr 2003 01:55:09 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Tue Apr 29 03:55:08 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19AKKq-0006VR-00 for ; Tue, 29 Apr 2003 03:55:08 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19AKL0-0007L6-04 for gnu-help-gnu-emacs@m.gmane.org; Mon, 28 Apr 2003 21:55:18 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!bloom-beacon.mit.edu!panix!panix1.panix.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 28 Original-NNTP-Posting-Host: panix1.panix.com Original-X-Trace: reader1.panix.com 1051581071 17749 166.84.1.1 (29 Apr 2003 01:51:11 GMT) Original-X-Complaints-To: abuse@panix.com Original-NNTP-Posting-Date: Tue, 29 Apr 2003 01:51:11 +0000 (UTC) Original-Xref: shelby.stanford.edu gnu.emacs.help:112477 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:8974 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:8974 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 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