From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Han Boetes Newsgroups: gmane.emacs.devel Subject: Re: backup method Date: Thu, 27 Jan 2005 02:54:10 +0100 Message-ID: <20050127015432.GB6167@boetes.org> References: <20050127000210.GA6167@boetes.org> <200501270045.j0R0jIq06197@raven.dms.auburn.edu> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1106791065 21691 80.91.229.6 (27 Jan 2005 01:57:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 27 Jan 2005 01:57:45 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 27 02:57:39 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Ctyuh-0004P2-00 for ; Thu, 27 Jan 2005 02:57:39 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ctz72-0005T9-Cj for ged-emacs-devel@m.gmane.org; Wed, 26 Jan 2005 21:10:24 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ctz6i-0005Qc-Vb for emacs-devel@gnu.org; Wed, 26 Jan 2005 21:10:05 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ctz6e-0005PO-Ts for emacs-devel@gnu.org; Wed, 26 Jan 2005 21:10:01 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ctz6e-0005P2-OH for emacs-devel@gnu.org; Wed, 26 Jan 2005 21:10:00 -0500 Original-Received: from [217.120.147.78] (helo=boetes.org) by monty-python.gnu.org with smtp (Exim 4.34) id 1CtyrM-0000RX-0K for emacs-devel@gnu.org; Wed, 26 Jan 2005 20:54:12 -0500 Original-Received: (qmail 9288 invoked by uid 1000); 27 Jan 2005 01:54:32 -0000 Original-To: emacs-devel@gnu.org Mail-Followup-To: emacs-devel@gnu.org Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.6i 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: main.gmane.org gmane.emacs.devel:32572 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:32572 Miles Bader wrote: > Backup-by-renaming is the best method for general use; there are > specific exceptional cases where it doesn't work well. If some > of these exceptional cases are easy to detect, Emacs should > detect them. If the file is open ie another program has fopen'ed the file then you have an exceptional case. lsof and fstat ( for BSD ) can detect open file descriptors. I suppose emacs can do the same. # Han