From a0a526bc3e5d1f3ec2339f5a337340632c2069ae Mon Sep 17 00:00:00 2001 From: Carsten Dominik Date: Fri, 8 Apr 2011 12:35:37 +0200 Subject: [PATCH] Export: handle include files before processing macros. * lisp/org-exp.el (org-export-preprocess-string): Handle include files before processing macros. Patch by Benny Simonsen. TINYCHANGE --- lisp/org-exp.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lisp/org-exp.el b/lisp/org-exp.el index 8111e1ccc..053f2b8cd 100644 --- a/lisp/org-exp.el +++ b/lisp/org-exp.el @@ -1095,16 +1095,16 @@ on this string to produce the exported version." ;; Call the hook (run-hooks 'org-export-preprocess-hook) - ;; Process the macros - (org-export-preprocess-apply-macros) - (run-hooks 'org-export-preprocess-after-macros-hook) - (untabify (point-min) (point-max)) ;; Handle include files, and call a hook (org-export-handle-include-files-recurse) (run-hooks 'org-export-preprocess-after-include-files-hook) + ;; Process the macros + (org-export-preprocess-apply-macros) + (run-hooks 'org-export-preprocess-after-macros-hook) + ;; Get rid of archived trees (org-export-remove-archived-trees archived-trees)