Gnus development mailing list
 help / color / mirror / Atom feed
From: jidanni@jidanni.org
To: ding@gnus.org
Subject: Re: death to nnrss-snarf-moreover-categories
Date: Wed, 26 Mar 2008 08:54:12 +0800	[thread overview]
Message-ID: <87y786gv9n.fsf@jidanni.org> (raw)
In-Reply-To: <87y78kod93.fsf_-_@jidanni.org>

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)



  reply	other threads:[~2008-03-26  0:54 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.8203.1204528522.18990.info-gnus-english@gnu.org>
2008-03-15  3:52 ` jidanni
2008-03-26  0:54   ` jidanni [this message]
2008-03-26  2:42     ` jidanni
2008-04-03 19:54       ` jidanni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y786gv9n.fsf@jidanni.org \
    --to=jidanni@jidanni.org \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).