mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-09-13 01:10:04 +00:00
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
This commit is contained in:
parent
770c2ddfba
commit
a0a526bc3e
|
@ -1095,16 +1095,16 @@ on this string to produce the exported version."
|
||||||
;; Call the hook
|
;; Call the hook
|
||||||
(run-hooks 'org-export-preprocess-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))
|
(untabify (point-min) (point-max))
|
||||||
|
|
||||||
;; Handle include files, and call a hook
|
;; Handle include files, and call a hook
|
||||||
(org-export-handle-include-files-recurse)
|
(org-export-handle-include-files-recurse)
|
||||||
(run-hooks 'org-export-preprocess-after-include-files-hook)
|
(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
|
;; Get rid of archived trees
|
||||||
(org-export-remove-archived-trees archived-trees)
|
(org-export-remove-archived-trees archived-trees)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue