Przeglądaj źródła

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>
Nicolas Goaziou 10 lat temu
rodzic
commit
2965f8fb0c
1 zmienionych plików z 4 dodań i 5 usunięć
  1. 4 5
      lisp/ox.el

+ 4 - 5
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