From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/61575 Path: news.gmane.org!not-for-mail From: Mark Plaksin Newsgroups: gmane.emacs.gnus.general Subject: PATCH: Make nnrss include RSS dc:subject Date: Fri, 16 Dec 2005 23:09:51 -0500 Message-ID: <87psnw9xf4.fsf@stone.tss.usg.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: sea.gmane.org 1134793011 2781 80.91.229.2 (17 Dec 2005 04:16:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 17 Dec 2005 04:16:51 +0000 (UTC) Original-X-From: ding-owner+m10107@lists.math.uh.edu Sat Dec 17 05:16:49 2005 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EnTU7-0005MU-ON for ding-account@gmane.org; Sat, 17 Dec 2005 05:15:52 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1EnTTo-0003eT-00; Fri, 16 Dec 2005 22:15:32 -0600 Original-Received: from nas01.math.uh.edu ([129.7.128.39]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1EnTPh-0003eL-00 for ding@lists.math.uh.edu; Fri, 16 Dec 2005 22:11:17 -0600 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas01.math.uh.edu with esmtp (Exim 4.52) id 1EnTPe-0007FW-5d for ding@lists.math.uh.edu; Fri, 16 Dec 2005 22:11:17 -0600 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1EnTPc-0002RS-00 for ; Sat, 17 Dec 2005 05:11:12 +0100 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1EnTOQ-0002uM-0v for ding@gnus.org; Sat, 17 Dec 2005 05:09:58 +0100 Original-Received: from stone.tss.usg.edu ([168.24.82.77]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 17 Dec 2005 05:09:58 +0100 Original-Received: from happy by stone.tss.usg.edu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 17 Dec 2005 05:09:58 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: ding@gnus.org Original-Lines: 34 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: stone.tss.usg.edu User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0 (gnu/linux) Cancel-Lock: sha1:oA7dPuh3RGoaA9TylQP2RFU4XQQ= X-Spam-Score: -2.6 (--) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:61575 Archived-At: --=-=-= 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. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=nnrss.el.patch Content-Description: nnrss patch for dc:subject --- 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 "

\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))) --=-=-=--