From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/63348 Path: news.gmane.org!not-for-mail From: Bill Wohler Newsgroups: gmane.emacs.gnus.general Subject: There's something strange afoot in nnrss Date: Tue, 13 Jun 2006 11:34:59 -0700 Organization: Newt Software Message-ID: <6463.1150223699@olgas.newt.com> NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1150224063 5580 80.91.229.2 (13 Jun 2006 18:41:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 13 Jun 2006 18:41:03 +0000 (UTC) Original-X-From: ding-owner+m11875@lists.math.uh.edu Tue Jun 13 20:41:01 2006 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FqDoz-0004Vu-5L for ding-account@gmane.org; Tue, 13 Jun 2006 20:41:01 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1FqDog-00058v-00; Tue, 13 Jun 2006 13:40:42 -0500 Original-Received: from nas01.math.uh.edu ([129.7.128.39]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1FqDjP-00058q-00 for ding@lists.math.uh.edu; Tue, 13 Jun 2006 13:35:16 -0500 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas01.math.uh.edu with esmtp (Exim 4.52) id 1FqDjO-0001Py-Ep for ding@lists.math.uh.edu; Tue, 13 Jun 2006 13:35:15 -0500 Original-Received: from tassie.newt.com ([70.85.162.231]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1FqDjH-000063-00 for ; Tue, 13 Jun 2006 20:35:07 +0200 Original-Received: from olgas.newt.com (m590e36d0.tmodns.net [208.54.14.89]) by tassie.newt.com (Postfix) with ESMTP id 4D0D11D0A3D for ; Tue, 13 Jun 2006 11:35:03 -0700 (PDT) Original-Received: by olgas.newt.com (Postfix, from userid 1000) id 85D7416FF3; Tue, 13 Jun 2006 11:34:59 -0700 (PDT) Original-Received: from olgas.newt.com (localhost [127.0.0.1]) by olgas.newt.com (Postfix) with ESMTP id 827D916FA8 for ; Tue, 13 Jun 2006 11:34:59 -0700 (PDT) Original-To: ding@gnus.org X-Mailer: MH-E 8.0; nmh 1.1; GNU Emacs 22.0.50 X-Image-URL: http://www.newt.com/wohler/images/bill-diving.png X-Spam-Score: -1.2 (-) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:63348 Archived-At: 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 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.