From: Mark Plaksin <happy@mcplaksin.org>
Subject: PATCH: Make nnrss include RSS dc:subject
Date: Fri, 16 Dec 2005 23:09:51 -0500 [thread overview]
Message-ID: <87psnw9xf4.fsf@stone.tss.usg.edu> (raw)
[-- Attachment #1: Type: text/plain, Size: 198 bytes --]
How about this small patch to nnrss which makes it put the RSS dc:subject
in the article? It is especially useful for del.icio.us RSS feeds--it lets
you see the tags that were assigned to a link.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: nnrss patch for dc:subject --]
[-- Type: text/x-patch, Size: 902 bytes --]
--- gnus-cvs/lisp/nnrss.el 2005-10-19 11:00:54.000000000 -0400
+++ gnus/lisp/nnrss.el 2005-12-16 22:57:45.000000000 -0500
@@ -533,7 +533,7 @@
;;; Snarf functions
(defun nnrss-check-group (group server)
- (let (file xml subject url extra changed author date
+ (let (file xml subject url extra changed author date feed-subject
enclosure comments rss-ns rdf-ns content-ns dc-ns)
(if (and nnrss-use-local
(file-exists-p (setq file (expand-file-name
@@ -576,6 +576,8 @@
(setq extra (or extra
(nnrss-node-text content-ns 'encoded item)
(nnrss-node-text rss-ns 'description item)))
+ (if (setq feed-subject (nnrss-node-text dc-ns 'subject item))
+ (setq extra (concat feed-subject "<br /><br />\n" extra)))
(setq author (or (nnrss-node-text rss-ns 'author item)
(nnrss-node-text dc-ns 'creator item)
(nnrss-node-text dc-ns 'contributor item)))
next reply other threads:[~2005-12-17 4:09 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-17 4:09 Mark Plaksin [this message]
2005-12-19 5:19 ` Katsumi Yamaoka
2005-12-20 2:17 ` Katsumi Yamaoka
2005-12-20 6:34 ` Katsumi Yamaoka
2005-12-20 15:46 ` Mark Plaksin
2005-12-21 0:45 ` Katsumi Yamaoka
2006-04-13 6:07 ` Lars Magne Ingebrigtsen
2006-04-13 8:59 ` yamaoka
2006-04-13 9:11 ` Lars Magne Ingebrigtsen
2006-04-13 9:42 ` Katsumi Yamaoka
2006-04-13 10:52 ` 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=87psnw9xf4.fsf@stone.tss.usg.edu \
--to=happy@mcplaksin.org \
/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).