From 2965f8fb0c048a20b52ba90627e7cca6fe706c93 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Mon, 27 Apr 2015 20:40:28 +0200 Subject: [PATCH] ox: Refresh buffer properties after including files * lisp/ox.el (org-export-as): Call `org-set-regexps-and-options'. Suggested-by: Detlef Steuer --- lisp/ox.el | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/lisp/ox.el b/lisp/ox.el index 864e7d55c..003ec279e 100644 --- a/lisp/ox.el +++ b/lisp/ox.el @@ -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