[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: sb-rss question
- From: Mikio NAKAJIMA <minakaji@xxxxxxxxxx>
- Date: Wed, 05 May 2004 09:26:51 +0900
- X-ml-name: emacs-w3m
- X-mail-count: 06773
- References: <878yg8c4z5.fsf@robotron.ath.cx>
Hi.
At Tue, 04 May 2004 22:27:58 +0200,
David Hansen <usenetjunk.nospam@gmx.net> wrote:
>
> is there a way to modify the URL of an article? In some
> cases just requesting the "printable version" of the article
> is an easy way to get rid of all the junk.
You can write your original method shimbun-get-headers referring to
the emacs-w3m/shimbun/sb-rss.el to modify the URL from its original
one.
And define the method for your necessary shimbun backend, for
instance, `shimbun-foo-bar' to overwrite the `shimbun-get-headers'
defined in the emacs-w3m/shimbun/sb-rss.el for universal use.
(luna-define-method shimbun-get-headers ((shimbun shimbun-foo-bar)
&optional range)
...
(dolist (item (shimbun-rss-find-el (intern (concat rss-ns "item")) xml))
(let ((url (and (listp item)
(eq (intern (concat rss-ns "item")) (car item))
(shimbun-rss-node-text rss-ns 'link (cddr item)))))
(when url
;; XXX here!
(setq url ...)
...
--
Mikio NAKAJIMA <minakaji@namazu.org>
home: http://www.asahi-net.or.jp/~gy2m-nkjm
diary: http://slashdot.jp/journal.pl?op=display&uid=5767