From: Sean Doran <smd@ebone.net>
Subject: source of error in nnslashdot.el found
Date: Sat, 25 Mar 2000 17:25:38 +0100 (CET) [thread overview]
Message-ID: <200003251625.RAA04895@sean.ebone.net> (raw)
Someone who can make commits on gnus might want to fix this:
Here is " *temp*":
<title>Hubble Delivers Indications Of Black Holes</title>
<url>http://slashdot.org/article.pl?sid=00/03/25/0111237</url>
<time>2000-03-25 13:13:53</time>
<author>timothy</author>
<department>if-you-think-your-/job/-sucks</department>
<topic>space</topic>
<comments>32</comments>
<section></section>
<image>topicspace.gif</image>
</story>
This code in nnslashdot.el:nnslashdot-request-list (around line 377 in
pgnus-0.99's nnslashdot.el) fails, because there is no match.
(re-search-forward "<url>\\([^<]+\\)</url>")
(setq sid (match-string 1))
(string-match "/\\([0-9/]+\\).shtml" sid)
(setq sid (match-string 1 sid))
Backtrace:
Signaling: (args-out-of-range "http://slashdot.org/article.pl?sid=00/03/25/0111237" 167 218)
match-string(1 "http://slashdot.org/article.pl?sid=00/03/25/0111237")
(setq sid (match-string 1 sid))
(while (search-forward "<story>" nil t) (narrow-to-region (point) (search-forward "</story>")) (goto-char (point-min)) (re-search-forward "<title>\\([^<]+\\)</title>") (setq description (match-string 1)) (re-search-forward "<url>\\([^<]+\\)</url>") (setq sid (match-string 1)) (string-match "/\\([0-9/]+\\).shtml" sid) (setq sid (match-string 1 sid)) (re-search-forward "<comments>\\([^<]+\\)</comments>") (setq articles (string-to-number ...)) (setq gname (concat description " (" sid ")")) (if (setq elem ...) (setcar ... articles) (push ... nnslashdot-groups)) (goto-char (point-max)) (widen))
Suggested hack: make the .shtml ending optional. (i.e., \\(.shtml\\)?)
This works for me.
Sean.
next reply other threads:[~2000-03-25 16:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-03-25 16:25 Sean Doran [this message]
2000-03-25 17:14 ` Michael Harnois
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=200003251625.RAA04895@sean.ebone.net \
--to=smd@ebone.net \
/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).