* nnrss-generate-download-script wrong-type-argument
@ 2008-12-12 1:22 jidanni
2008-12-12 21:49 ` Ted Zlatanov
0 siblings, 1 reply; 4+ messages in thread
From: jidanni @ 2008-12-12 1:22 UTC (permalink / raw)
To: ding
This file
/home/jidanni/.emacs_:
-rw-r--r-- 1 jidanni 44872 2008-02-13 10:17 nnrss.el
caused:
Debugger entered--Lisp error: (wrong-type-argument char-or-string-p nil)
insert("$WGET -q -O \"$RSSDIR\"/'" "DreamHostDiscussion Board POSTS.xml" "' '" nil "'\n")
(let ((url ...)) (insert "$WGET -q -O \"$RSSDIR\"/'" (nnrss-translate-file-chars ...) "' '" url "'\n"))
(while --cl-dolist-temp-- (setq elem (car --cl-dolist-temp--)) (let (...) (insert "$WGET -q -O \"$RSSDIR\"/'" ... "' '" url "'\n")) (setq --cl-dolist-temp-- (cdr --cl-dolist-temp--)))
(let ((--cl-dolist-temp-- nnrss-server-data) elem) (while --cl-dolist-temp-- (setq elem ...) (let ... ...) (setq --cl-dolist-temp-- ...)) nil)
(catch (quote --cl-block-nil--) (let (... elem) (while --cl-dolist-temp-- ... ... ...) nil))
(cl-block-wrapper (catch (quote --cl-block-nil--) (let ... ... nil)))
(block nil (let (... elem) (while --cl-dolist-temp-- ... ... ...) nil))
(dolist (elem nnrss-server-data) (let (...) (insert "$WGET -q -O \"$RSSDIR\"/'" ... "' '" url "'\n")))
nnrss-generate-download-script()
eval((nnrss-generate-download-script))
repeat-complex-command(1)
call-interactively(repeat-complex-command)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: nnrss-generate-download-script wrong-type-argument
2008-12-12 1:22 nnrss-generate-download-script wrong-type-argument jidanni
@ 2008-12-12 21:49 ` Ted Zlatanov
2008-12-15 3:30 ` jidanni
0 siblings, 1 reply; 4+ messages in thread
From: Ted Zlatanov @ 2008-12-12 21:49 UTC (permalink / raw)
To: ding
On Fri, 12 Dec 2008 09:22:43 +0800 jidanni@jidanni.org wrote:
j> This file
j> /home/jidanni/.emacs_:
j> -rw-r--r-- 1 jidanni 44872 2008-02-13 10:17 nnrss.el
j> caused:
j> Debugger entered--Lisp error: (wrong-type-argument char-or-string-p nil)
j> insert("$WGET -q -O \"$RSSDIR\"/'" "DreamHostDiscussion Board POSTS.xml" "' '" nil "'\n")
j> (let ((url ...)) (insert "$WGET -q -O \"$RSSDIR\"/'" (nnrss-translate-file-chars ...) "' '" url "'\n"))
j> (while --cl-dolist-temp-- (setq elem (car --cl-dolist-temp--)) (let (...) (insert "$WGET -q -O \"$RSSDIR\"/'" ... "' '" url "'\n")) (setq --cl-dolist-temp-- (cdr --cl-dolist-temp--)))
j> (let ((--cl-dolist-temp-- nnrss-server-data) elem) (while --cl-dolist-temp-- (setq elem ...) (let ... ...) (setq --cl-dolist-temp-- ...)) nil)
j> (catch (quote --cl-block-nil--) (let (... elem) (while --cl-dolist-temp-- ... ... ...) nil))
j> (cl-block-wrapper (catch (quote --cl-block-nil--) (let ... ... nil)))
j> (block nil (let (... elem) (while --cl-dolist-temp-- ... ... ...) nil))
j> (dolist (elem nnrss-server-data) (let (...) (insert "$WGET -q -O \"$RSSDIR\"/'" ... "' '" url "'\n")))
j> nnrss-generate-download-script()
j> eval((nnrss-generate-download-script))
j> repeat-complex-command(1)
j> call-interactively(repeat-complex-command)
In the function it turns out the URL is nil when it's to be inserted,
and it comes from nnrss-group-alist. nnrss-group-alist is defined by
you, usually (seems like something DreamHost-related from the file
name).
Ted
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: nnrss-generate-download-script wrong-type-argument
2008-12-12 21:49 ` Ted Zlatanov
@ 2008-12-15 3:30 ` jidanni
2008-12-16 17:25 ` Ted Zlatanov
0 siblings, 1 reply; 4+ messages in thread
From: jidanni @ 2008-12-15 3:30 UTC (permalink / raw)
To: tzz; +Cc: ding
It turns out that often, one's nnrss-server-data has accrued several
junk groups that do not have exact matches in nnrss-group-alist.
This will cause nnrss-generate-download-script to fail mid-sentence
upon stumbling upon one.
It should be more cautious, and skip over such items.
Better yet, there should be a way for the user to clean out such
zombies the proper way (instead of doing surgery on whatever deep dark
files store them behind gnus' back.)
Proof:
(let ((nnrss-group-alist '(
("DreamHost Discussion Board POSTS" "http://discussion.dreamhost.com/feeds/all_posts.rss" "EVERY post on the DreamHost Discussion Board!")
("DreamHost Discussion Board" "http://discussion.dreamhost.com/feeds/all_threads.rss" "All threads on the DreamHost Discussion Board!")
("訂閱苦勞 性別 的文章" "http://www.coolloud.org.tw/tag/%E6%80%A7%E5%88%A5/feed" "次頁面的list - tag")
("DebCentral" "http://debcentral.org/backend.php" "The Center for all things Debian based")))
(nnrss-server-data
'(
("訂閱苦勞 性別 的文章" 116)
("DreamHost Discussion Board POSTS" 726)
("DreamHostDiscussion Board POSTS" 100) ;no corresponding entry. BOOM.
("DreamHost Discussion Board" 50)
("DebCentral" 25))))
(nnrss-generate-download-script)) ^X^E
#!/bin/sh
WGET=wget
RSSDIR='/home/jidanni/News/rss/'
$WGET -q -O "$RSSDIR"/'訂閱苦勞 性別 的文章.xml' 'http://www.coolloud.org.tw/tag/%E6%80%A7%E5%88%A5/feed'
$WGET -q -O "$RSSDIR"/'DreamHost Discussion Board POSTS.xml' 'http://discussion.dreamhost.com/feeds/all_posts.rss'
$WGET -q -O "$RSSDIR"/'DreamHostDiscussion Board POSTS.xml' '
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: nnrss-generate-download-script wrong-type-argument
2008-12-15 3:30 ` jidanni
@ 2008-12-16 17:25 ` Ted Zlatanov
0 siblings, 0 replies; 4+ messages in thread
From: Ted Zlatanov @ 2008-12-16 17:25 UTC (permalink / raw)
To: jidanni; +Cc: ding
On Mon, 15 Dec 2008 11:30:31 +0800 jidanni@jidanni.org wrote:
j> It turns out that often, one's nnrss-server-data has accrued several
j> junk groups that do not have exact matches in nnrss-group-alist.
j> This will cause nnrss-generate-download-script to fail mid-sentence
j> upon stumbling upon one.
j> It should be more cautious, and skip over such items.
Agreed, + a warning.
j> Better yet, there should be a way for the user to clean out such
j> zombies the proper way (instead of doing surgery on whatever deep
j> dark files store them behind gnus' back.)
nnrss, when loading, could find such problems and offer to eliminate
them. Is that a good solution? I'd rather not introduce a special new
command only 2 people will ever use.
Ted
j> Proof:
j> (let ((nnrss-group-alist '(
j> ("DreamHost Discussion Board POSTS" "http://discussion.dreamhost.com/feeds/all_posts.rss" "EVERY post on the DreamHost Discussion Board!")
j> ("DreamHost Discussion Board" "http://discussion.dreamhost.com/feeds/all_threads.rss" "All threads on the DreamHost Discussion Board!")
j> ("訂閱苦勞 性別 的文章" "http://www.coolloud.org.tw/tag/%E6%80%A7%E5%88%A5/feed" "次頁面的list - tag")
j> ("DebCentral" "http://debcentral.org/backend.php" "The Center for all things Debian based")))
j> (nnrss-server-data
j> '(
j> ("訂閱苦勞 性別 的文章" 116)
j> ("DreamHost Discussion Board POSTS" 726)
j> ("DreamHostDiscussion Board POSTS" 100) ;no corresponding entry. BOOM.
j> ("DreamHost Discussion Board" 50)
j> ("DebCentral" 25))))
j> (nnrss-generate-download-script)) ^X^E
j> #!/bin/sh
j> WGET=wget
j> RSSDIR='/home/jidanni/News/rss/'
j> $WGET -q -O "$RSSDIR"/'訂閱苦勞 性別 的文章.xml' 'http://www.coolloud.org.tw/tag/%E6%80%A7%E5%88%A5/feed'
j> $WGET -q -O "$RSSDIR"/'DreamHost Discussion Board POSTS.xml' 'http://discussion.dreamhost.com/feeds/all_posts.rss'
j> $WGET -q -O "$RSSDIR"/'DreamHostDiscussion Board POSTS.xml' '
--
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-12-16 17:25 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-12 1:22 nnrss-generate-download-script wrong-type-argument jidanni
2008-12-12 21:49 ` Ted Zlatanov
2008-12-15 3:30 ` jidanni
2008-12-16 17:25 ` Ted Zlatanov
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).