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: Wed, 22 Aug 2007 11:48:41 +0200 Message-ID: <46CC0679.8040003@gmx.net> 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> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1798019779==" X-Trace: sea.gmane.org 1187776171 6890 80.91.229.12 (22 Aug 2007 09:49:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 22 Aug 2007 09:49:31 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Aug 22 11:49:29 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 1INmq8-00067k-8j for geb-bug-gnu-emacs@m.gmane.org; Wed, 22 Aug 2007 11:49:28 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1INmq5-0000zk-Uw for geb-bug-gnu-emacs@m.gmane.org; Wed, 22 Aug 2007 05:49:26 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1INmpf-0000iG-6e for bug-gnu-emacs@gnu.org; Wed, 22 Aug 2007 05:48:59 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1INmpb-0000et-Ib for bug-gnu-emacs@gnu.org; Wed, 22 Aug 2007 05:48:57 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1INmpa-0000eD-C0 for bug-gnu-emacs@gnu.org; Wed, 22 Aug 2007 05:48:55 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1INmpZ-0006hd-IN for bug-gnu-emacs@gnu.org; Wed, 22 Aug 2007 05:48:53 -0400 Original-Received: (qmail invoked by alias); 22 Aug 2007 09:48:52 -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 (mp050) with SMTP; 22 Aug 2007 11:48:52 +0200 X-Authenticated: #858129 X-Provags-ID: V01U2FsdGVkX1+B+DNPM7OBuCBazKD2G5cQiLnuDZP6Ln3JoB1ZEr tQ2D8YheL2+PU/ User-Agent: Thunderbird 2.0.0.6 (X11/20070817) In-Reply-To: <46CC056C.5030603@gmx.at> 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:16419 Archived-At: This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --===============1798019779== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigFFC81C8452E53A396612787E" This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigFFC81C8452E53A396612787E Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable martin rudalics wrote: > We could check (file-writable-p to-name) here too. And how would you combine the results? There are filesystems where I can delete a file even if I can't write it. Most FS I know behave this way. You really don't want filesystem specific code. No, I believe file-writable-p should be checked to determine whether you want to delete and recreate the backup, or write to an existing backup. Once you are determined that you want to delete the backup, you should simply try to do so, as I guess that's the only truly portable way of figuring out whether you are allowed to. --------------enigFFC81C8452E53A396612787E 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 iD8DBQFGzAaBRhp6o4m9dFsRArtLAJ0aGRUQXs30ROrmYV11rrIHagZO6wCfc0aP YiZ4papp2qJDL4P+L68VtEA= =bIiS -----END PGP SIGNATURE----- --------------enigFFC81C8452E53A396612787E-- --===============1798019779== 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 --===============1798019779==--