From: David Z Maze <dmaze@MIT.EDU>
Subject: Issues trying to use nnrss
Date: Tue, 29 Apr 2003 17:52:50 -0400 [thread overview]
Message-ID: <87n0i90y4t.fsf@cag.lcs.mit.edu> (raw)
[-- Attachment #1: Type: text/plain, Size: 323 bytes --]
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:
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 531 bytes --]
--- 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
[-- Attachment #3: Type: text/plain, Size: 195 bytes --]
(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
[-- Attachment #4: Type: text/plain, Size: 122 bytes --]
Could not contact host: : / 80
Attempted using gateway method: native
---- Error was: ----
:/80 Name or service not known
[-- Attachment #5: Type: text/plain, Size: 554 bytes --]
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:
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #6: Type: text/x-patch, Size: 672 bytes --]
--- 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))
[-- Attachment #7: Type: text/plain, Size: 297 bytes --]
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
next reply other threads:[~2003-04-29 21:52 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-29 21:52 David Z Maze [this message]
2003-05-01 6:56 ` Lars Magne Ingebrigtsen
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=87n0i90y4t.fsf@cag.lcs.mit.edu \
--to=dmaze@mit.edu \
/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).