[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] [PATCH] Allow passing post-process to org-publish-org-to for use by

From: Erik Hetzner
Subject: [O] [PATCH] Allow passing post-process to org-publish-org-to for use by org-export-to
Date: Tue, 11 Feb 2014 23:00:43 -0800
User-agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (Goj┼Ź) APEL/10.8 EasyPG/1.0.0 Emacs/24.3 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO)


I have been looking at publishing to HTML using pandoc. Because pandoc
requires post-processing to transform the org-mode markdown output to
other formats, it is necessary to use the post-process parameter of
org-export-to-file. Unfortunately, it is not currently possible to
pass post-process through to org-export-to-file via
org-publish-org-to. The attached patch allows this.

I think this patch makes sense; let me know what you think.

best, Erik
 lisp/ox-publish.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/lisp/ox-publish.el b/lisp/ox-publish.el
index 9669bf0..9840bb6 100644
--- a/lisp/ox-publish.el
+++ b/lisp/ox-publish.el
@@ -558,7 +558,7 @@ matching filenames."
 ;;; Tools for publishing functions in back-ends
-(defun org-publish-org-to (backend filename extension plist &optional pub-dir)
+(defun org-publish-org-to (backend filename extension plist &optional pub-dir 
   "Publish an Org file to a specified back-end.
 BACKEND is a symbol representing the back-end used for
@@ -592,7 +592,8 @@ Return output file name."
                    ,(cons 'org-publish-collect-numbering
                           (cons 'org-publish-collect-index
-                                (plist-get plist :filter-final-output))))))))
+                                (plist-get plist :filter-final-output)))))
+                post-process)))
       ;; Remove opened buffer in the process.
       (unless visitingp (kill-buffer work-buffer)))))

Sent from my free software system <http://fsf.org/>.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]