From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/43851 Path: main.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: Re: C-u G DEL doesn't delete everything Date: Tue, 12 Mar 2002 22:35:06 +0100 Sender: owner-ding@hpc.uh.edu Message-ID: References: <87ofhua2k4.fsf@uwo.ca> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1015969023 31118 80.91.224.249 (12 Mar 2002 21:37:03 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 12 Mar 2002 21:37:03 +0000 (UTC) Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16ktww-00085X-00 for ; Tue, 12 Mar 2002 22:37:02 +0100 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 16ktv6-000497-00; Tue, 12 Mar 2002 15:34:56 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Tue, 12 Mar 2002 15:35:00 -0600 (CST) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id PAA07517 for ; Tue, 12 Mar 2002 15:34:48 -0600 (CST) Original-Received: (qmail 3013 invoked by alias); 12 Mar 2002 21:34:37 -0000 Original-Received: (qmail 3008 invoked from network); 12 Mar 2002 21:34:36 -0000 Original-Received: from 178.230.13.217.in-addr.dgcsystems.net (HELO yxa.extundo.com) (217.13.230.178) by gnus.org with SMTP; 12 Mar 2002 21:34:36 -0000 Original-Received: from localhost.localdomain (yxa.extundo.com [217.13.230.178]) (authenticated bits=0) by yxa.extundo.com (8.12.2/8.12.2) with ESMTP id g2CLYYKY026836 for ; Tue, 12 Mar 2002 22:34:35 +0100 Original-To: ding@gnus.org In-Reply-To: <87ofhua2k4.fsf@uwo.ca> (Dan Christensen's message of "Mon, 11 Mar 2002 22:27:07 -0500") Mail-Copies-To: nobody Original-Lines: 35 User-Agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.1.95 (i686-pc-linux-gnu) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:43851 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:43851 Dan Christensen writes: > In the *Group* buffer, when I hit `C-u G DEL' on a group, which is > supposed to delete a group and all of its contents, it doesn't > delete the group from my backups on CD. Just kidding. What > it does miss are the .mrk and .nov files, and I think they > should go. Does this help? --- nnfolder.el.~6.38.~ Thu Feb 21 17:43:44 2002 +++ nnfolder.el Tue Mar 12 22:33:37 2002 @@ -548,11 +548,13 @@ () ; Don't delete the articles. ;; Delete the file that holds the group. (ignore-errors + (let ((nov (nnfolder-group-nov-pathname group)) + (mrk (nnfolder-group-marks-pathname group))) (delete-file (nnfolder-group-pathname group)) - (when (file-exists-p (nnfolder-group-nov-pathname group)) - (delete-file (nnfolder-group-nov-pathname group))) - (when (file-exists-p (nnfolder-group-marks-pathname group)) - (delete-file (nnfolder-group-marks-pathname group))))) + (when (file-exists-p nov) + (delete-file nov)) + (when (file-exists-p mrk) + (delete-file mrk))))) ;; Remove the group from all structures. (setq nnfolder-group-alist (delq (assoc group nnfolder-group-alist) nnfolder-group-alist) > Also, the groupname~ backup file should probably be deleted as well. I'm not sure. It is a backup file for a reason. What do people think?