From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.help Subject: Re: confirm to exist when click "X" on the window decoration Date: Mon, 02 Nov 2009 14:16:42 -0800 Organization: None Message-ID: <3jeioglghh.fsf@xoc2.stanford.edu> References: <0b82db07-4def-44ca-9ca4-25a9f51cb1a8@h40g2000prf.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1257201708 16621 80.91.229.12 (2 Nov 2009 22:41:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 2 Nov 2009 22:41:48 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Nov 02 23:41:42 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1N55an-00046f-MS for geh-help-gnu-emacs@m.gmane.org; Mon, 02 Nov 2009 23:41:41 +0100 Original-Received: from localhost ([127.0.0.1]:41814 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N55an-0008Un-6Q for geh-help-gnu-emacs@m.gmane.org; Mon, 02 Nov 2009 17:41:41 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 11 Original-NNTP-Posting-Host: xoc2.stanford.edu Original-X-Trace: usenet.stanford.edu 1257200202 10444 171.64.109.31 (2 Nov 2009 22:16:42 GMT) Original-X-Complaints-To: action@cs.stanford.edu X-Spook: spy Ortega ARN czar thermite algorithm AIIB Chukaku-Ha X-Ran: 8Q>V}k]$jz~{r2%?y5~\u]^D=Sh{Xj[yynzwuF8~+p$O{:E0D:K1hvBTJ@4+*hXmw<:e%# X-Hue: green X-Attribution: GM Mail-Copies-To: nobody User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) Cancel-Lock: sha1:Jc19f0T0x+2w9x83NfjZ7aspbyY= Original-Xref: news.stanford.edu gnu.emacs.help:174335 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:69416 Archived-At: Ender wrote: > Sometimes I click the "X" on the emacs window decoration by mistake, > emacs will exist without any prompt/waring when there are no file > changes in all opening buffers. I want to know if there are anyway to > make emacs ask to confirm to exist on this situation? (setq confirm-kill-emacs 'yes-or-no-p) If you want to be prompted by the "X" but not by, eg C-x C-c, you'll have to do a bit more work.