mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-09-29 20:37:51 +00:00
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:
parent
88ea2ced0e
commit
2965f8fb0c
|
@ -2863,14 +2863,13 @@ Return code as a string."
|
||||||
(org-export-backend-name backend))
|
(org-export-backend-name backend))
|
||||||
(org-export-expand-include-keyword)
|
(org-export-expand-include-keyword)
|
||||||
(org-export--delete-comments)
|
(org-export--delete-comments)
|
||||||
;; Update macro templates since #+INCLUDE keywords might have
|
;; Refresh buffer properties, radio targets and macros after
|
||||||
;; added some new ones.
|
;; including files.
|
||||||
|
(org-set-regexps-and-options)
|
||||||
|
(org-update-radio-target-regexp)
|
||||||
(org-macro-initialize-templates)
|
(org-macro-initialize-templates)
|
||||||
(org-macro-replace-all org-macro-templates nil parsed-keywords)
|
(org-macro-replace-all org-macro-templates nil parsed-keywords)
|
||||||
(org-export-execute-babel-code)
|
(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.
|
;; Run last hook with current back-end's name as argument.
|
||||||
(goto-char (point-min))
|
(goto-char (point-min))
|
||||||
(save-excursion
|
(save-excursion
|
||||||
|
|
Loading…
Reference in a new issue