From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/51972 Path: main.gmane.org!not-for-mail From: David Z Maze Newsgroups: gmane.emacs.gnus.general Subject: Issues trying to use nnrss Date: Tue, 29 Apr 2003 17:52:50 -0400 Sender: ding-owner@lists.math.uh.edu Message-ID: <87n0i90y4t.fsf@cag.lcs.mit.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: main.gmane.org 1051653184 18652 80.91.224.249 (29 Apr 2003 21:53:04 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 29 Apr 2003 21:53:04 +0000 (UTC) Original-X-From: ding-owner+M515@lists.math.uh.edu Tue Apr 29 23:53:02 2003 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19Ad25-0004qB-00 for ; Tue, 29 Apr 2003 23:53:01 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 19Ad2B-0003uS-00; Tue, 29 Apr 2003 16:53:07 -0500 Original-Received: from sclp3.sclp.com ([64.157.176.121]) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 19Ad25-0003uN-00 for ding@lists.math.uh.edu; Tue, 29 Apr 2003 16:53:01 -0500 Original-Received: (qmail 31098 invoked by alias); 29 Apr 2003 21:53:01 -0000 Original-Received: (qmail 31064 invoked from network); 29 Apr 2003 21:53:01 -0000 Original-Received: from pacific-carrier-annex.mit.edu (18.7.21.83) by sclp3.sclp.com with SMTP; 29 Apr 2003 21:53:01 -0000 Original-Received: from central-city-carrier-station.mit.edu (CENTRAL-CITY-CARRIER-STATION.MIT.EDU [18.7.7.72]) by pacific-carrier-annex.mit.edu (8.12.4/8.9.2) with ESMTP id h3TLr0pg016834 for ; Tue, 29 Apr 2003 17:53:00 -0400 (EDT) Original-Received: from melbourne-city-street.mit.edu (MELBOURNE-CITY-STREET.MIT.EDU [18.7.21.86]) by central-city-carrier-station.mit.edu (8.12.4/8.9.2) with ESMTP id h3TLqvLt025057; Tue, 29 Apr 2003 17:52:59 -0400 (EDT) Original-Received: from arborway (24-6-179.wireless.lcs.mit.edu [18.24.6.179]) ) by melbourne-city-street.mit.edu (8.12.4/8.12.4) with ESMTP id h3TLqoU8011578; Tue, 29 Apr 2003 17:52:55 -0400 (EDT) Original-To: ding@gnus.org Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAFVBMVEUGBgS83KhoOivUeFmC pXj4o39qeFZD1JPmAAACOklEQVR4nE2UQY/bIBCFkVPlbpX0bA2tz7sQcl5SlnsWc7cclv// E/oGjNNxokjz8eYxA7HwR9xLKQGRC4eQezqUj7KWnDOzAOB3EjaBKDl4KPARzkvpAIqoUTwI a2op6WVoeXHOlfgsnJPM1kl0SdMIFEJ0AaIJshiRhkCsHbC/51LycKDmgiw2jVJy9B9IDPNN U5NkSMQoR+c5/zTW3qjZgwg5ylpJ2YT4wubO7FEVEs0NhvPJaqzxDaDS2gUpGUjyDkau9NxB fKsmu4Ir2XSpwAjxYwfsfeqlbJwqcAwwcLINxGRWtIhhMEB7ZLoAJudd4aE42e4RCQDjYMXK CpS6XOBtNM7EVfPAbRgihfU08Sg9jqIr9G9JJuo70cCty66gwY6kzJ9xIygyJs7mDNQcSEUV iPSE1qt5mLgUkcGj8ExTbrvii2CwG3UCQkxUXDUPE03KIqPw8Iq33IBfUcbw/Ez9eeo8VvPr qrRNj2RU1DjeaN6cG8c6RKVNnTg+GIDWfAkPBVdK2jC84fCq4n4yik+VNICNtoPlPkScrKmh bPw+FIGSYmBrOUPeNfATjajPpFXtMl0Hvyt4imfzqDvC9zZ3cAEYvlt/ADq7rvDbNKj3RuxC B7gsZRWzbSAaymNXSPxjia8id1GmV6kUyjDMf9vd3daXAiYFd4GvXNzmaT7AspRyJnoif6Nn Ob8UC94fN6KybTSbvB0e46d3Tyzm+I7v4QWW5WGswZulXFNyv/4DGFvqYRv4BxSm28ZwQ4mv AAAAAElFTkSuQmCC X-Face: &OO..E]'&$Q?jm[7H$]lCS"t#FD[|jK.HfvP#![KZ`/,O)lQ(pE<2QS1i~K3+u\{Bh"(4h4G0W#R-F2zZNO6n\!8bk;tu%)f>y{C` P*^7yM`e/x"b1q[?^-9zxTp User-Agent: Gnus/5.09002 (Oort Gnus v0.20) XEmacs/21.4 (Portable Code, linux) Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:51972 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:51972 --=-=-= I'm experimenting with trying to use nnrss to browse various RSS feeds. (Shock, that.) A couple of issues: (1) The condition-case construction in nnrss-find-rss-via-syndic8 is wrong, and things die horribly if I don't have an xml-rpc package. The handler needs to have a condition attached to it, like so: --=-=-= Content-Type: text/x-patch Content-Disposition: inline --- nnrss.el 27 Apr 2003 04:38:20 -0000 6.43 +++ nnrss.el 29 Apr 2003 21:44:10 -0000 @@ -707,7 +707,7 @@ "Multiple feeds found. Select one: " selection nil t) urllist))) (cdar urllist)))))) - (message "XML-RPC is not available... not checking Syndic8."))) + (error (message "XML-RPC is not available... not checking Syndic8.")))) (defun nnrss-rss-p (data) "Test if data is an RSS feed. Simply ensures that the first --=-=-= (2) Given this, I still can't look at things like Slashdot. If I do 'G m slashdot nnrss RET http://slashdot.org/' to create a group, Gnus will hunt around for a group and then display --=-=-= Content-Disposition: inline Could not contact host: : / 80 Attempted using gateway method: native ---- Error was: ---- :/80 Name or service not known --=-=-= in an index.rss buffer. (3) If I know the explicit URL of the RSS feed, say for a livejournal journal, I get an even more special failure. I create the group by 'G m lj.debian nnrss RET http://www.livejournal.com/community/debian/rss', and get a stringp-of-list error. It looks like this happens inside nnrss-check-group; if does (setq url (nnrss-discover-feed ...)), but what nnrss-discover-feed actually returns is an alist with the description, title, and href of the feed. This patch will set url correctly: --=-=-= Content-Type: text/x-patch Content-Disposition: inline --- nnrss.el 27 Apr 2003 04:38:20 -0000 6.43 +++ nnrss.el 29 Apr 2003 21:59:17 -0000 @@ -413,9 +413,11 @@ (second (assoc group nnrss-group-alist)))) (unless url (setq url - (nnrss-discover-feed - (read-string - (format "URL to search for %s: " group) "http://"))) + (cdr + (assoc 'href + (nnrss-discover-feed + (read-string + (format "URL to search for %s: " group) "http://"))))) (let ((pair (assoc group nnrss-server-data))) (if pair (setcdr (cdr pair) (list url)) --=-=-= There's no error recovery, though; if nnrss-discover-feed fails utterly, you wind up with url set to sommething bizarre. -- David Maze dmaze@mit.edu http://www.mit.edu/~dmaze/ "Theoretical politics is interesting. Politicking should be illegal." -- Abra Mitchell --=-=-=--