From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Petton Subject: Re: [PATCH] org-rss-headline Date: Mon, 19 Jan 2015 00:04:50 +0100 Message-ID: <87lhkzsnal.fsf@petton.fr> References: <87ppaisgbe.fsf@petton.fr> <87mw5miiwy.fsf@nicolasgoaziou.fr> <878uh50ydl.fsf@petton.fr> <87k30nt8v7.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56404) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YCytv-0001nf-2f for emacs-orgmode@gnu.org; Sun, 18 Jan 2015 18:05:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YCytq-0005ij-0e for emacs-orgmode@gnu.org; Sun, 18 Jan 2015 18:04:58 -0500 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:52509) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YCytp-0005hK-P4 for emacs-orgmode@gnu.org; Sun, 18 Jan 2015 18:04:53 -0500 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id F3E36206AF for ; Sun, 18 Jan 2015 18:04:51 -0500 (EST) In-reply-to: <87k30nt8v7.fsf@nicolasgoaziou.fr> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Nicolas Goaziou Cc: Org-mode Org-Mode --=-=-= Content-Type: text/plain Indeed, sorry about that. Here's a new patch with a short description of the RSS_TITLE property. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=ox-rss.diff diff --git a/contrib/lisp/ox-rss.el b/contrib/lisp/ox-rss.el index fddaa1d..6681336 100644 --- a/contrib/lisp/ox-rss.el +++ b/contrib/lisp/ox-rss.el @@ -42,6 +42,9 @@ ;; PUBDATE property. If `org-rss-use-entry-url-as-guid', it will also add ;; an ID property, later used as the guid for the feed's item. ;; +;; The top-level headline is used as the title of each RSS item unless an +;; RSS_TITLE property is set on the headline. +;; ;; You typically want to use it within a publishing project like this: ;; ;; (add-to-list @@ -244,11 +247,12 @@ communication channel." (format-time-string "%a, %d %b %Y %H:%M:%S %z" (org-time-string-to-time pubdate0))))) - (title (replace-regexp-in-string - org-bracket-link-regexp - (lambda (m) (or (match-string 3 m) - (match-string 1 m))) - (org-element-property :raw-value headline))) + (title (or (org-element-property :RSS_TITLE headline) + (replace-regexp-in-string + org-bracket-link-regexp + (lambda (m) (or (match-string 3 m) + (match-string 1 m))) + (org-element-property :raw-value headline)))) (publink (or (and hl-perm (concat (or hl-home hl-pdir) hl-perm)) (concat --=-=-= Content-Type: text/plain Cheers, Nico -- Nicolas Petton http://nicolas-petton.fr --=-=-=--