From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Martin von Gagern Newsgroups: gmane.emacs.bugs Subject: Re: backup-buffer-copy loops if old backup can't be deleted Date: Tue, 21 Aug 2007 14:18:24 +0200 Message-ID: <46CAD810.3050904@gmx.net> References: Reply-To: Martin von Gagern , bug-gnu-emacs@gnu.org NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1187698721 30210 80.91.229.12 (21 Aug 2007 12:18:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 21 Aug 2007 12:18:41 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Aug 21 14:18:38 2007 Return-path: Envelope-to: geb-bug-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 1INSgv-0007BG-1D for geb-bug-gnu-emacs@m.gmane.org; Tue, 21 Aug 2007 14:18:37 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1INSgu-00089N-Dh for geb-bug-gnu-emacs@m.gmane.org; Tue, 21 Aug 2007 08:18:36 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1INSgr-00085K-ML for bug-gnu-emacs@gnu.org; Tue, 21 Aug 2007 08:18:33 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1INSgn-0007xT-3b for bug-gnu-emacs@gnu.org; Tue, 21 Aug 2007 08:18:33 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1INSgn-0007xJ-0R for bug-gnu-emacs@gnu.org; Tue, 21 Aug 2007 08:18:29 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1INSgm-0007ML-RU for bug-gnu-emacs@gnu.org; Tue, 21 Aug 2007 08:18:29 -0400 Original-Received: (qmail invoked by alias); 21 Aug 2007 12:18:27 -0000 Original-Received: from ppp-88-217-44-103.dynamic.mnet-online.de (EHLO [88.217.44.103]) [88.217.44.103] by mail.gmx.net (mp020) with SMTP; 21 Aug 2007 14:18:27 +0200 X-Authenticated: #858129 X-Provags-ID: V01U2FsdGVkX19jQFQ+TuFjrI6ChQwbme6UA93xJNcuJHgHA65SMf 7WK/R8/nSSlsSY User-Agent: Thunderbird 2.0.0.6 (X11/20070817) In-Reply-To: X-Enigmail-Version: 0.95.3 X-Y-GMX-Trusted: 0 X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:16405 Archived-At: Hi again! There now is a patch to fix this, provided by Ulrich Mueller. Original URL: http://bugs.gentoo.org/attachment.cgi?id=128742 =================== emacs-22.1-backup-buffer.patch =================== --- emacs-22.1.orig/lisp/files.el 2007-05-25 14:43:31.000000000 +0200 +++ emacs-22.1/lisp/files.el 2007-08-21 08:26:36.000000000 +0200 @@ -3119,9 +3119,8 @@ backup-buffer-copy (from-name to-name modes) (set-default-file-modes ?\700) (while (condition-case () (progn - (condition-case nil - (delete-file to-name) - (file-error nil)) + (and (file-exists-p to-name) + (delete-file to-name)) (copy-file from-name to-name nil t) nil) (file-already-exists t)) =============== end of emacs-22.1-backup-buffer.patch =============== Greetings, Martin von Gagern