ox: Refresh buffer properties after including files

* lisp/ox.el (org-export-as): Call `org-set-regexps-and-options'.

Suggested-by: Detlef Steuer <detlef.steuer@gmx.de>
<http://permalink.gmane.org/gmane.emacs.orgmode/97244>
This commit is contained in:
Nicolas Goaziou 2015-04-27 20:40:28 +02:00
parent 88ea2ced0e
commit 2965f8fb0c
1 changed files with 4 additions and 5 deletions

View File

@ -2863,14 +2863,13 @@ Return code as a string."
(org-export-backend-name backend))
(org-export-expand-include-keyword)
(org-export--delete-comments)
;; Update macro templates since #+INCLUDE keywords might have
;; added some new ones.
;; Refresh buffer properties, radio targets and macros after
;; including files.
(org-set-regexps-and-options)
(org-update-radio-target-regexp)
(org-macro-initialize-templates)
(org-macro-replace-all org-macro-templates nil parsed-keywords)
(org-export-execute-babel-code)
;; Update radio targets since keyword inclusion might have
;; added some more.
(org-update-radio-target-regexp)
;; Run last hook with current back-end's name as argument.
(goto-char (point-min))
(save-excursion