summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Guerry <bzg@altern.org>2013-07-03 11:32:13 +0200
committerBastien Guerry <bzg@altern.org>2013-07-03 11:32:13 +0200
commit330eb689cdba665d2cdca687a574dc8c566ecbbf (patch)
tree6c18fcf4ecefcccfc2fd2e5b598a7ba4368eaef0
parent7be5f737f85f22c85daf5f39a70c191ff80fde6b (diff)
downloadorg-mode-330eb689cdba665d2cdca687a574dc8c566ecbbf.tar.gz
contrib/lisp/ox-rss.el (org-rss-publish-to-rss): Add the PUBDATE property when publishing
* contrib/lisp/ox-rss.el (org-rss-publish-to-rss): Add the PUBDATE property when publishing. Thanks to Mikko Kouhia for reporting this bug.
-rw-r--r--contrib/lisp/ox-rss.el8
1 files changed, 8 insertions, 0 deletions
diff --git a/contrib/lisp/ox-rss.el b/contrib/lisp/ox-rss.el
index 3146460..de97110 100644
--- a/contrib/lisp/ox-rss.el
+++ b/contrib/lisp/ox-rss.el
@@ -213,6 +213,14 @@ is the property list for the given project. PUB-DIR is the
publishing directory.
Return output file name."
+ (let ((bf (get-file-buffer filename)))
+ (if bf
+ (with-current-buffer bf
+ (org-rss-add-pubdate-property)
+ (write-file filename))
+ (find-file filename)
+ (org-rss-add-pubdate-property)
+ (write-file) (kill-buffer)))
(org-publish-org-to
'rss filename (concat "." org-rss-extension) plist pub-dir))