From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: 2 annoying questions for `find-alternate-file` Date: Fri, 20 Jul 2012 13:09:01 +0300 Organization: JURTA Message-ID: <87vchihhhe.fsf@mail.jurta.org> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1342779066 7510 80.91.229.3 (20 Jul 2012 10:11:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 20 Jul 2012 10:11:06 +0000 (UTC) Cc: emacs-devel@gnu.org To: Damien Cassou Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 20 12:11:05 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SsAAj-0002Ia-Lk for ged-emacs-devel@m.gmane.org; Fri, 20 Jul 2012 12:10:57 +0200 Original-Received: from localhost ([::1]:47484 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SsAAi-0006tX-Jl for ged-emacs-devel@m.gmane.org; Fri, 20 Jul 2012 06:10:56 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:44753) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SsAAb-0006tP-Lh for emacs-devel@gnu.org; Fri, 20 Jul 2012 06:10:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SsAAa-0006iT-LK for emacs-devel@gnu.org; Fri, 20 Jul 2012 06:10:49 -0400 Original-Received: from ps18281.dreamhost.com ([69.163.218.105]:33162 helo=ps18281.dreamhostps.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SsAAa-0006iH-FM for emacs-devel@gnu.org; Fri, 20 Jul 2012 06:10:48 -0400 Original-Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 2B590451CB71; Fri, 20 Jul 2012 03:10:45 -0700 (PDT) In-Reply-To: (Damien Cassou's message of "Thu, 19 Jul 2012 18:29:34 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 69.163.218.105 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:151778 Archived-At: > - (if (yes-or-no-p (format "Buffer %s is modified; save it first? " > + (unless (yes-or-no-p (format "Buffer %s is modified; are you sure you want to continue? " > (buffer-name))) > - (save-buffer) > - (unless (yes-or-no-p "Kill and replace the buffer without saving it? ") Please state clearly in the question what the command is going to do. So instead of "Buffer %s is modified; are you sure you want to continue? " use something like "Buffer %s is modified; kill and replace it without saving? "