From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: Re: backup-buffer-copy loops if old backup can't be deleted Date: Tue, 21 Aug 2007 17:28:21 +0200 Message-ID: <46CB0495.7050904@gmx.at> References: <46CAD810.3050904@gmx.net> <46CAF8AC.9070809@gmx.at> <46CAFBEF.2040606@gmx.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1187710108 7810 80.91.229.12 (21 Aug 2007 15:28:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 21 Aug 2007 15:28:28 +0000 (UTC) To: bug-gnu-emacs@gnu.org, Martin von Gagern Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Aug 21 17:28:24 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 1INVeZ-0003m3-BN for geb-bug-gnu-emacs@m.gmane.org; Tue, 21 Aug 2007 17:28:23 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1INVeY-000069-Sm for geb-bug-gnu-emacs@m.gmane.org; Tue, 21 Aug 2007 11:28:22 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1INVeX-00005J-OP for bug-gnu-emacs@gnu.org; Tue, 21 Aug 2007 11:28:21 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1INVeW-0008Vv-8D for bug-gnu-emacs@gnu.org; Tue, 21 Aug 2007 11:28:21 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1INVeW-0008Vs-4i for bug-gnu-emacs@gnu.org; Tue, 21 Aug 2007 11:28:20 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1INVeW-0000NZ-7S for bug-gnu-emacs@gnu.org; Tue, 21 Aug 2007 11:28:20 -0400 Original-Received: (qmail invoked by alias); 21 Aug 2007 15:28:17 -0000 Original-Received: from N714P029.adsl.highway.telekom.at (EHLO [62.47.33.61]) [62.47.33.61] by mail.gmx.net (mp044) with SMTP; 21 Aug 2007 17:28:17 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1+1ir4PZN61hp8z/j+Jw4v6ijIaEzRLVLFUSLD2YB 6WERRurh9fx+FH User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: de-DE, de, en-us, en In-Reply-To: <46CAFBEF.2040606@gmx.net> 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:16411 Archived-At: >>Suppose the file to-name exists but cannot be >>deleted. `copy-file' will raise its `file-already-exists' error and you >>remain trapped in that loop. > > > No, if the file cannot be deleted, the delete-file will signal a > file-error so copy-file doesn't even get a chance to signal a > file-already-exists error because it doesn't get called at all. As the > outer condition-case doesn't catch file-error, the signal will propagate > up the call stack. I stand corrected. The file-error is caught in `backup-buffer' and further file-errors don't get trapped.