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: Wed, 22 Aug 2007 14:40:30 +0200 Message-ID: <46CC2EBE.8050000@gmx.at> References: <46CAD810.3050904@gmx.net> <46CAF8AC.9070809@gmx.at> <46CAFBEF.2040606@gmx.net> <46CB529F.7010008@gmx.at> <16sl6cy2t8.fsf@fencepost.gnu.org> <46CBFE2E.9050606@gmx.net> <46CC056C.5030603@gmx.at> <46CC0679.8040003@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 1187786411 8127 80.91.229.12 (22 Aug 2007 12:40:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 22 Aug 2007 12:40:11 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org To: Martin von Gagern Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Aug 22 14:40:08 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 1INpVI-0006G4-MB for geb-bug-gnu-emacs@m.gmane.org; Wed, 22 Aug 2007 14:40:08 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1INpVI-0001AU-8E for geb-bug-gnu-emacs@m.gmane.org; Wed, 22 Aug 2007 08:40:08 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1INpVG-0001A5-0e for bug-gnu-emacs@gnu.org; Wed, 22 Aug 2007 08:40:06 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1INpVE-00019s-Ml for bug-gnu-emacs@gnu.org; Wed, 22 Aug 2007 08:40:05 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1INpVE-00019p-FY for bug-gnu-emacs@gnu.org; Wed, 22 Aug 2007 08:40:04 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1INpVD-0006Ky-IQ for bug-gnu-emacs@gnu.org; Wed, 22 Aug 2007 08:40:03 -0400 Original-Received: (qmail invoked by alias); 22 Aug 2007 12:40:01 -0000 Original-Received: from N732P013.adsl.highway.telekom.at (EHLO [62.47.35.109]) [62.47.35.109] by mail.gmx.net (mp048) with SMTP; 22 Aug 2007 14:40:01 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX188KLZKtFs87HS7l6ANtOfv7Il55pHfv4qi5+R3Kc 98guumoPuW7rEP User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: de-DE, de, en-us, en In-Reply-To: <46CC0679.8040003@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:16421 Archived-At: > And how would you combine the results? There are filesystems where I can > delete a file even if I can't write it. Glenn's patch already throws a file-error when the directory is not writable. Hence throwing a file-error when an backup file is not writable doesn't seem to harm much. Ulrich mentions a change where the user wants to back-up to a writable file in a non-writable directory. Thus it might make sense to first check if the backup file is writable and check whether the directory is writable iff the backup file is not.