From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/66562 Path: news.gmane.org!not-for-mail From: jidanni@jidanni.org Newsgroups: gmane.emacs.gnus.general Subject: Re: death to nnrss-snarf-moreover-categories Date: Wed, 26 Mar 2008 08:54:12 +0800 Message-ID: <87y786gv9n.fsf@jidanni.org> References: <87y78kod93.fsf_-_@jidanni.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1206492909 25410 80.91.229.12 (26 Mar 2008 00:55:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 26 Mar 2008 00:55:09 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M15048@lists.math.uh.edu Wed Mar 26 01:55:39 2008 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1JeJvV-00022h-Tz for ding-account@gmane.org; Wed, 26 Mar 2008 01:55:38 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1JeJuU-0005xu-Mr; Tue, 25 Mar 2008 19:54:34 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1JeJuS-0005xf-29 for ding@lists.math.uh.edu; Tue, 25 Mar 2008 19:54:32 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1JeJuM-00040H-Hn for ding@lists.math.uh.edu; Tue, 25 Mar 2008 19:54:31 -0500 Original-Received: from frodo.hserus.net ([204.74.68.40]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1JeJuU-0002ll-00 for ; Wed, 26 Mar 2008 01:54:34 +0100 Original-Received: from 122-127-35-227.dynamic.hinet.net ([122.127.35.227]:46145 helo=jidanni1) by frodo.hserus.net with esmtpsa (Cipher TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.67 #1) id 1JeJuD-0002S4-Vm by authid with plain for ; Tue, 25 Mar 2008 17:54:18 -0700 X-Spam-Score: 0.4 (/) X-Spam-Report: SpamAssassin (3.1.9 2007-02-13) analysis follows Bayesian score: 0.0663 Ham tokens: 0.000-2008--7026h-0s--0d--H*r:esmtpsa, 0.000-1378--4819h-0s--0d--HX-Spam-Relays-External:esmtpsa, 0.000-1378--4819h-0s--0d--H*RU:esmtpsa, 0.000-214--748h-0s--0d--H*r:TLS-1.0, 0.000-78--272h-0s--0d--emacs Spam tokens: 0.966-6466--1575h-69351s--0d--HX-Spam-Relays-External:quimby.gnus.org, 0.966-6466--1575h-69351s--0d--H*RU:quimby.gnus.org, 0.952-5610--2135h-66793s--0d--H*r:quimby.gnus.org, 0.948-5431--2311h-66766s--0d--H*r:3.35, 0.946-5452--2483h-68435s--0d--HTo:D*gnus.org Autolearn status: no 1.0 NO_REAL_NAME From: does not include a real name -0.7 BAYES_20 BODY: Bayesian spam probability is 5 to 20% [score: 0.0663] 0.2 AWL AWL: From: address is in the auto white-list List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:66562 Archived-At: Using nnrss, if one accidentally answers "yes" to "Fetch extra categories?" how can one clean all 500 of them back out of ~/News/rss/nnrss.el? I tried to edit it by hand but as it is all one big line, emacs goes crazy with the CPU. I could delete the file and start again, but there are also other groups I want in there. Maybe I need a special function like this, (but for nnrss.el -- which should be called nnrss.eld to not confuse it with the lisp/*/nnrss.el) (defun rs-gnus-save-newsrc-with-whitespace-1 () "Save ~/.newsrc.eld with extra whitespace." (gnus-message 5 "Adding whitespace to .newsrc.eld") (save-excursion (goto-char (point-min)) (while (re-search-forward "(\\\"\\| ((\\| (nn" nil t) (replace-match "\n \\&" t)) (delete-trailing-whitespace))) (add-hook 'gnus-save-quick-newsrc-hook 'rs-gnus-save-newsrc-with-whitespace-1)