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 23:01:19 +0200 Message-ID: <46CB529F.7010008@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 1187730078 15510 80.91.229.12 (21 Aug 2007 21:01:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 21 Aug 2007 21:01:18 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org, Martin von Gagern To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Aug 21 23:01:13 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 1INaqf-0002vZ-Ih for geb-bug-gnu-emacs@m.gmane.org; Tue, 21 Aug 2007 23:01:13 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1INaqe-0005lI-RC for geb-bug-gnu-emacs@m.gmane.org; Tue, 21 Aug 2007 17:01:13 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1INaqa-0005jb-G3 for bug-gnu-emacs@gnu.org; Tue, 21 Aug 2007 17:01:08 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1INaqQ-0005cI-D2 for bug-gnu-emacs@gnu.org; Tue, 21 Aug 2007 17:01:00 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1INaqO-0005bS-Qc for bug-gnu-emacs@gnu.org; Tue, 21 Aug 2007 17:00:57 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1INaqN-0005ue-UL for bug-gnu-emacs@gnu.org; Tue, 21 Aug 2007 17:00:56 -0400 Original-Received: (qmail invoked by alias); 21 Aug 2007 21:00:53 -0000 Original-Received: from N737P030.adsl.highway.telekom.at (EHLO [62.47.36.30]) [62.47.36.30] by mail.gmx.net (mp046) with SMTP; 21 Aug 2007 23:00:53 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX19QOEx56CtQ0IJAGsi7Mt/u6nSy62UfZXmP6PoPUS lfJvY+00g75ZJq User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: de-DE, de, en-us, en In-Reply-To: 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:16413 Archived-At: > (while (condition-case () > (progn > ! ;; Failure to delete an existing file is an error. > ! (if (file-exists-p to-name) > ! (delete-file to-name)) > (copy-file from-name to-name nil t) > nil) > (file-already-exists t)) > ;; The file was somehow created by someone else between > ;; `delete-file' and `copy-file', so let's try again. > + ;; FIXME does that every actually happen in practice? > + ;; This is a potential infloop, which seems bad... > nil)) I'm too silly to understand this. Why can't we use (copy-file from-name to-name t t) here as in Emacs 21? What was the rationale for this loop?