From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rasmus Villemoes Newsgroups: gmane.emacs.help Subject: Re: Removing backup files corresponding to no longer existing files Date: Mon, 09 May 2011 17:49:53 -0400 Organization: D03 Message-ID: References: <87hb95rzh4.fsf@kuiper.lan.informatimago.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1306268891 19960 80.91.229.12 (24 May 2011 20:28:11 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 24 May 2011 20:28:11 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 24 22:28:06 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QOyCy-0001fl-SU for geh-help-gnu-emacs@m.gmane.org; Tue, 24 May 2011 22:28:04 +0200 Original-Received: from localhost ([::1]:50516 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QOyCy-0003pT-DJ for geh-help-gnu-emacs@m.gmane.org; Tue, 24 May 2011 16:28:04 -0400 Original-Path: usenet.stanford.edu!news-transit.tcx.org.uk!news.netcologne.de!newsfeed-fusi2.netcologne.de!fu-berlin.de!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:2/rUuU+RiWzzuX8pWW0L5mr/Tto= Original-Lines: 22 Original-NNTP-Posting-Host: 130.225.20.35 Original-X-Trace: news.sunsite.dk DXC=RbmUE92; d3Ee:i55N5G3eEYSB=nbEKnkK; 938IEgLc7JKfRn3I^O1]KXi?H6@C@2lL List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:81162 Archived-At: "Pascal J. Bourguignon" writes: > I have: > > -----(clean-old-versions)----------------------------------------------- Thanks! I'll steal a couple of ideas from that script (but I need to add a little extra: if a backup file corresponds to a file on a remote file system, the file should be assumed to exist if the file system is not currently mounted) > Indeed, it wouldn't be too hard to write it in emacs lisp either. > The question would be when to run it? Yes, I also thought a bit about that. But as long as emacs doesn't keep a database of backup files, it's pretty safe to just delete them using an auxilliary script as the one you provided, and running it manually from time to time is good enough for me. -- Rasmus Villemoes