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: Fri, 24 Aug 2007 09:13:05 +0200 Message-ID: <46CE8501.9040307@gmx.net> References: <46CAD810.3050904@gmx.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1007510549==" X-Trace: sea.gmane.org 1187943201 7147 80.91.229.12 (24 Aug 2007 08:13:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 24 Aug 2007 08:13:21 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org To: rms@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Aug 24 10:13:19 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 1IOUIA-0004WS-RL for geb-bug-gnu-emacs@m.gmane.org; Fri, 24 Aug 2007 10:13:19 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IOUI9-0005WX-Oq for geb-bug-gnu-emacs@m.gmane.org; Fri, 24 Aug 2007 04:13:17 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IOUI7-0005WS-MH for bug-gnu-emacs@gnu.org; Fri, 24 Aug 2007 04:13:15 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IOUI4-0005Vz-Jf for bug-gnu-emacs@gnu.org; Fri, 24 Aug 2007 04:13:14 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IOUI4-0005Vw-G7 for bug-gnu-emacs@gnu.org; Fri, 24 Aug 2007 04:13:12 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1IOUI3-0006Fc-Ra for bug-gnu-emacs@gnu.org; Fri, 24 Aug 2007 04:13:12 -0400 Original-Received: (qmail invoked by alias); 24 Aug 2007 07:13:09 -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 (mp021) with SMTP; 24 Aug 2007 09:13:09 +0200 X-Authenticated: #858129 X-Provags-ID: V01U2FsdGVkX18o/EYVaOAo1GhyfGbCVX2eL5jq3qA8hkpj0HXywT KBGuHjQLEU8ZvV 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 (newer, 1) 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:16433 Archived-At: This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --===============1007510549== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig144EBAEEC5D6FDAEAD26B794" This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig144EBAEEC5D6FDAEAD26B794 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable Richard Stallman wrote: > I think there is no need to explicitly check whether the directory > is writable. What would be the purpose of that? I didn't write that patch, but I guess there could be a purpose for it. Namely it could help deleting a file in vain. If there are Filesystems that let you delete a writable file even though you can't create new ones in a non-writable dir, then without those lines, emacs would delete an old backup only to find out that it can't create a new one. Most likely these would be cases where the old backup file was writable, so if you had some logic to write to existing files and only delete them if they are not writable, then the check whether the directory is writable should really be superfluous. Otherwise I'm not so sure. Greetings, Martin von Gagern --------------enig144EBAEEC5D6FDAEAD26B794 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGzoUCRhp6o4m9dFsRAhYoAKCV8KYDMDaSQqMYWLjs1h61e0JxpgCdGMHW WMWvHuxoPsCZug3a6o5wD7E= =WOI6 -----END PGP SIGNATURE----- --------------enig144EBAEEC5D6FDAEAD26B794-- --===============1007510549== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ bug-gnu-emacs mailing list bug-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/bug-gnu-emacs --===============1007510549==--