From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Henrik Enberg Newsgroups: gmane.emacs.help Subject: Re: Saving Buffer Date: Tue, 21 Jan 2003 01:31:39 +0100 Organization: Le Petomane Appreciation Society Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87d6mr8hsk.fsf@enberg.org> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1043109287 31774 80.91.224.249 (21 Jan 2003 00:34:47 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 21 Jan 2003 00:34:47 +0000 (UTC) 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 18amNJ-0008GC-00 for ; Tue, 21 Jan 2003 01:34:46 +0100 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 18amOG-00063E-00 for gnu-help-gnu-emacs@m.gmane.org; Mon, 20 Jan 2003 19:35:44 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!h15n2fls32o1112.telia.COM!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 12 Original-NNTP-Posting-Host: h15n2fls32o1112.telia.com (213.65.65.15) Original-X-Trace: fu-berlin.de 1043109122 26650558 213.65.65.15 (16 [125297]) X-Now-Playing: Missy Elliot - Slide Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAFVBMVEU6AQB6NyT95s/Xqoz4 1LdSBQC0e1h9PxESAAACZklEQVR4nGWSQY7bMAxF6YW7DpGRDqAY2Svy6AC2kLWFKb1X5fD+ R+iXE2emqBAgBp9IfvKLUkrXyeuWJufcrDrOIYSiSk9Qn8ClMe2gKo0vsMd31sBZCYEdOPeD HMD5evsGbg6KUsm5yw7Su9gQNCpdtwN8k6Ba6frRwOjeAH8XLkqXG0CcdjBAexgTADMNrUcY 0rSzORbWlIpZqSUjsh/0nYsRO3pzBpgSBI7zq8dQTP5oYA7T4O4adMR1xalRrDeVCk9u8Fbr 1KrgZDa5iKVHBiiWb/EkzMgoYLhBD4vSsZyj6XMdsSc10hnpqVSIGu56EuGKMeb6kJUBYE0b 7bGIxdfcVivnGQMqzEt18pIrNDeXvGyQ9wRhRksbaimtvfy5aABA5SmVBZpYqBcbzTalBix8 iYy4LESUQ+BtGGYAVtMbSF+oKyQ1hbJhz6SF80KSF1xfYeoY4gNPBoD5RA0Q9RYyUlTzMaVE xZbWMp9IBE74itF/p1ZKC2VMDcB6mzVrMV+tR8H4m89RlsxRy2qw3a+hAbP8mq7rBUkGyr48 Nr+m1kNkc8PtYgSpfVYsV3LA5Nhls/S64OYCl7iB6jOZZX+2n1AGdTkbKMmaHruDDq5iFvya tSKdjp4+O+fuzG0+JMFuLGfVcCffTw4C2v7aAsYC3VZDgKrb3TzDbbURvTurM1R1ycsbNE3c MiKVPLTHcpyeM2MYAM8XoeUNMks+wJUOgFGkzfcCdwh9x9scB/AkP8Ezo1C05d3gGV/WHfj/ gQVQgjn/AlivGuM/AE2go+MdFP4GdCRoRHM8i/0Ufp2qrflfg9P17+qr79AAAAAASUVORK5C YII= User-Agent: Gnus/5.090013 (Oort Gnus v0.13) Emacs/21.3.50 (i686-pc-linux-gnu) Cancel-Lock: sha1:QsKk8DSWhlIDK9IK2gDdxa7O5ck= Original-Xref: shelby.stanford.edu gnu.emacs.help:109266 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:5789 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:5789 Galen Boyer writes: > (setq kill-emacs-query-functions > (cons (lambda () (yes-or-no-p "Really kill Emacs? ")) > kill-emacs-query-functions)) > > This makes sure you don't kill Emacs when you didn't mean it. C-x C-c is > too easy to hit. In Emacs 21 there is also `confirm-kill-emacs'. (setq confirm-kill-emacs 'yes-or-nn-p)