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: Removing backup files corresponding to no longer existing files Date: Sun, 08 May 2011 03:39:53 -0400 Organization: D03 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1306268493 17151 80.91.229.12 (24 May 2011 20:21:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 24 May 2011 20:21:33 +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:21:29 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 1QOy6a-0005nt-OV for geh-help-gnu-emacs@m.gmane.org; Tue, 24 May 2011 22:21:28 +0200 Original-Received: from localhost ([::1]:59183 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QOy6a-0000A4-7X for geh-help-gnu-emacs@m.gmane.org; Tue, 24 May 2011 16:21:28 -0400 Original-Path: usenet.stanford.edu!news.glorb.com!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:AxqCOD5giYISXPKrT2Sczaua0uw= Original-Lines: 19 Original-NNTP-Posting-Host: 130.225.20.35 Original-X-Trace: news.sunsite.dk DXC=^Ub; TLRMIdY0[?SRcYIYmQYSB=nbEKnk[d=XLT`cgnlRKfRn3I^O1][Xi?H6@C@2l\ 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:81123 Archived-At: Hi, I use a couple of separate directories to store emacs backup files (using backup-directory-alist). But this means that if I decide to delete or move some project (which is in its own direcory), just deleting or moving the directory leaves all the backup copies behind. They will then stay in the backup directories forever. Is there a way to tell emacs to remove backup files which no longer correspond to an actual file? It's probably not very difficult to write a little (shell/perl) script to do this, but I was wondering if there is some builtin way which I've overlooked. Emacs 23.1.1 on Ubuntu 10.10, if it matters. Thanks in advance, Rasmus