From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: Creating an empty file Date: Tue, 23 Jan 2007 18:23:45 +0100 Message-ID: <86sle1fyhq.fsf@lola.quinscape.zz> References: <86bqkphiyj.fsf@lola.quinscape.zz> <87odopr8ga.fsf@lrde.org> <87veixu2ep.fsf@vh213602.truman.edu> <861wllheo9.fsf@lola.quinscape.zz> <87y7ntd5jq.fsf@vh213602.truman.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1169573069 16001 80.91.229.12 (23 Jan 2007 17:24:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 23 Jan 2007 17:24:29 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 23 18:24:09 2007 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.50) id 1H9PNM-0001D6-ET for ged-emacs-devel@m.gmane.org; Tue, 23 Jan 2007 18:24:04 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H9PNL-0004ST-Hy for ged-emacs-devel@m.gmane.org; Tue, 23 Jan 2007 12:24:03 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H9PN8-0004R7-KG for emacs-devel@gnu.org; Tue, 23 Jan 2007 12:23:50 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H9PN7-0004Q9-Ez for emacs-devel@gnu.org; Tue, 23 Jan 2007 12:23:49 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H9PN7-0004Ps-3o for emacs-devel@gnu.org; Tue, 23 Jan 2007 12:23:49 -0500 Original-Received: from [62.67.228.11] (helo=pc3.berlin.powerweb.de) by monty-python.gnu.org with esmtp (Exim 4.52) id 1H9PN6-0006xM-MA for emacs-devel@gnu.org; Tue, 23 Jan 2007 12:23:48 -0500 Original-Received: from quinscape.de (pd95b0fdb.dip0.t-ipconnect.de [217.91.15.219]) by pc3.berlin.powerweb.de (8.9.3p3/8.9.3) with ESMTP id SAA06559 for ; Tue, 23 Jan 2007 18:23:38 +0100 X-Delivered-To: Original-Received: (qmail 16231 invoked from network); 23 Jan 2007 17:23:46 -0000 Original-Received: from unknown (HELO lola.quinscape.zz) ([10.0.3.43]) (envelope-sender ) by ns.quinscape.de (qmail-ldap-1.03) with SMTP for ; 23 Jan 2007 17:23:46 -0000 Original-Received: by lola.quinscape.zz (Postfix, from userid 1001) id E67A924B4D; Tue, 23 Jan 2007 18:23:45 +0100 (CET) Original-To: belanger@truman.edu In-Reply-To: <87y7ntd5jq.fsf@vh213602.truman.edu> (Jay Belanger's message of "Tue\, 23 Jan 2007 11\:19\:37 -0600") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:65418 Archived-At: Jay Belanger writes: > David Kastrup writes: > ... >> This would probably also apply for an existing file that has been >> changed on disk, but not in the Emacs buffer. In this case it might >> possibly make sense to ask the "revert buffer" question before saving. >> In the case of a non-existing file, there is nothing to revert to, >> however. > > So are you suggesting that when saving a file whose buffer has not > been changed, that Emacs should compare it to the disk file anyhow? > I had always (always=for the last 10 seconds) thought that it didn't > for efficiency reasons. That would assume that attempting to save an unchanged file is a frequent operation. I doubt that. -- David Kastrup