From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bastien Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Save unmodified buffer when file has been deleted Date: Fri, 11 Feb 2011 10:48:37 +0100 Message-ID: <87mxm2zytm.fsf@gnu.org> References: <87d3mz0vzn.fsf@altern.org> <83vd0qrkbj.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1297417733 23459 80.91.229.12 (11 Feb 2011 09:48:53 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 11 Feb 2011 09:48:53 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 11 10:48:49 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PnpcK-0003R1-To for ged-emacs-devel@m.gmane.org; Fri, 11 Feb 2011 10:48:45 +0100 Original-Received: from localhost ([127.0.0.1]:46965 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PnpcK-0007IW-Ao for ged-emacs-devel@m.gmane.org; Fri, 11 Feb 2011 04:48:44 -0500 Original-Received: from [140.186.70.92] (port=58076 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PnpcA-0007Hi-J7 for emacs-devel@gnu.org; Fri, 11 Feb 2011 04:48:37 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pnpc9-00051U-Hk for emacs-devel@gnu.org; Fri, 11 Feb 2011 04:48:34 -0500 Original-Received: from mail-fx0-f41.google.com ([209.85.161.41]:64420) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pnpc8-00050z-BX; Fri, 11 Feb 2011 04:48:32 -0500 Original-Received: by fxm12 with SMTP id 12so2642472fxm.0 for ; Fri, 11 Feb 2011 01:48:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:sender:from:to:cc:subject:in-reply-to :references:user-agent:date:message-id:mime-version:content-type; bh=BC2YXKZ6ecdBfgn/Hv4ltGjMJd4Yb+qV0ARWTCLOKvc=; b=MHUH0rTItQH+Ns6sfiY1EaNy0BJDJPmmsVjGYa6zSldg3z6QhLhKBvl6i4K0JcBvQd fwTy7ph+1rbuepJZEs6AGwB4b0By9oQ3fgpdo6Jm2sj5+loX+wvv7UCEi/+RrKe3fXH/ mfjgYlArD9+KDgkYBpFP6AeqQXjpa0bspBzGA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=sender:from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-type; b=jJvEVtQPv2wC5BDC7aVzePs+sIv8cPxt4JAuucaiu6GZavuCheA2l4QmGQCsq4HAEn FeEz2mYCocDMc6ltM6xFzC9CRnTpv3+lGPkHpeooxsJW711ppcdDaRpbQORQUqaoQEaz GeuurSx+hzXDqCh4lkMOOfNdcpRJGlSWHlZOI= Original-Received: by 10.223.98.204 with SMTP id r12mr296751fan.102.1297417711509; Fri, 11 Feb 2011 01:48:31 -0800 (PST) Original-Received: from myhost.localdomain (fon75-1-78-192-119-5.fbxo.proxad.net [78.192.119.5]) by mx.google.com with ESMTPS id r24sm240619fax.27.2011.02.11.01.48.29 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 11 Feb 2011 01:48:30 -0800 (PST) Original-Received: by myhost.localdomain (Postfix, from userid 1000) id 474D840FE9; Fri, 11 Feb 2011 10:48:37 +0100 (CET) In-Reply-To: <83vd0qrkbj.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 11 Feb 2011 11:29:04 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.161.41 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:135883 Archived-At: Eli Zaretskii writes: >> From: Bastien >> Date: Fri, 11 Feb 2011 10:19:08 +0100 >> >> + (if (or (buffer-modified-p) >> + ;; handle the case when no modification has been made but >> + ;; the file has been delete > ^^^^^^^^^^^^^^^ > "has been deleted". Actually, I would say "the file disappeared since > visited" or some such. Yes, right. Is that okay to commit this? Would be my first commit from bzr, I'm quite nervous about it :) -- Bastien