summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Dominik <carsten.dominik@gmail.com>2011-04-08 12:35:37 +0200
committerCarsten Dominik <carsten.dominik@gmail.com>2011-04-08 12:35:37 +0200
commita0a526bc3e5d1f3ec2339f5a337340632c2069ae (patch)
treed772d9ee9ca85abdc4a511d0d97b5dca5afdc7cd
parent770c2ddfba5c173d1b33e7b247b49a8188994f76 (diff)
downloadorg-mode-a0a526bc3e5d1f3ec2339f5a337340632c2069ae.tar.gz
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
-rw-r--r--lisp/org-exp.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/org-exp.el b/lisp/org-exp.el
index 8111e1c..053f2b8 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)