فهرست منبع

Fix ID generation in org-rss-publish-to-rss

* contrib/lisp/ox-rss.el (org-rss-publish-to-rss): Fix a bug that
  causes ID properties to be generated in org buffer emacs is
  currently visiting rather than the file containing the feed.
Matt Lundin 10 سال پیش
والد
کامیت
092213b507
1فایلهای تغییر یافته به همراه2 افزوده شده و 3 حذف شده
  1. 2 3
      contrib/lisp/ox-rss.el

+ 2 - 3
contrib/lisp/ox-rss.el

@@ -204,11 +204,10 @@ publishing directory.
 Return output file name."
   (let ((bf (get-file-buffer filename)))
     (if bf
-	(progn
-	  (org-icalendar-create-uid filename 'warn-user)
 	  (with-current-buffer bf
+	    (org-icalendar-create-uid filename 'warn-user)
 	    (org-rss-add-pubdate-property)
-	    (write-file filename)))
+	    (write-file filename))
       (find-file filename)
       (org-icalendar-create-uid filename 'warn-user)
       (org-rss-add-pubdate-property)