From: Bill Wohler <wohler@newt.com>
Subject: There's something strange afoot in nnrss
Date: Tue, 13 Jun 2006 11:34:59 -0700 [thread overview]
Message-ID: <6463.1150223699@olgas.newt.com> (raw)
This morning, I ran M-x nnrss-generate-download-script to update my RSS
download script. It died because there wasn't an entry in
nnrss-group-alist for an element in nnrss-server-data. I've attached a
patch that will generate a hiccup rather than death (and found that
actually two items had gone missing).
I do not know how the items in nnrss-group-alist might have gone
missing.
The second thing that is strange is that nnrss-server-data doesn't list
all of the RSS feeds that I am subscribed to and that are listed in the
*Group* buffer. Is this normal?
(length nnrss-group-alist): 16
(length nnrss-server-data): 10
subscribed nnrss groups in *Group* (read, unread): 15
unsubscribed nnrss groups in *Group*: 3
As a result, nnrss-generate-download-script misses 5 groups that I am
subscribed to.
I thought that `g' in the server buffer might fix things up, but that's
not supported by the nnrss backend. RET didn't seem to change things
either.
So, I manually fixed up nnrss-group-alist using data from my previous
invocation of nnrss-generate-download-script and added entries in
nnrss-server-data so that the list matched my subscriptions.
I'm using CVS Emacs that's a week or two old and have nnrss-use-local
set to t (as you may have guessed).
--- nnrss.el.orig 2006-06-13 09:53:39.000000000 -0700
+++ nnrss.el 2006-06-13 09:59:51.000000000 -0700
@@ -816,9 +816,11 @@
(dolist (elem nnrss-server-data)
(let ((url (or (nth 2 elem)
(second (assoc (car elem) nnrss-group-alist)))))
- (insert "$WGET -q -O \"$RSSDIR\"/'"
- (nnrss-translate-file-chars (concat (car elem) ".xml"))
- "' '" url "'\n"))))
+ (if url
+ (insert "$WGET -q -O \"$RSSDIR\"/'"
+ (nnrss-translate-file-chars (concat (car elem) ".xml"))
+ "' '" url "'\n")
+ (warn "%s disappeared from nnrss-group-alist" (car elem))))))
(defun nnrss-translate-file-chars (name)
(let ((nnheader-file-name-translation-alist
--
Bill Wohler <wohler@newt.com> http://www.newt.com/wohler/ GnuPG ID:610BD9AD
Maintainer of comp.mail.mh FAQ and MH-E.
If you're passed on the right, you're in the wrong lane.
reply other threads:[~2006-06-13 18:34 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=6463.1150223699@olgas.newt.com \
--to=wohler@newt.com \
/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).