forked from mirrors/org-mode
org-export: Update radio targets after expanding include keywords
* contrib/lisp/org-export.el (org-export-as): Update radio targets after expanding include keywords.
This commit is contained in:
parent
89d6a26f8d
commit
b6822edce3
|
@ -2545,14 +2545,17 @@ Return code as a string."
|
||||||
(let* ((info (org-export-install-filters
|
(let* ((info (org-export-install-filters
|
||||||
(org-export-get-environment backend subtreep ext-plist)))
|
(org-export-get-environment backend subtreep ext-plist)))
|
||||||
;; 2. Get parse tree. Buffer isn't parsed directly.
|
;; 2. Get parse tree. Buffer isn't parsed directly.
|
||||||
;; Instead, a temporary copy is created, where macros
|
;; Instead, a temporary copy is created, where include
|
||||||
;; and include keywords are expanded and code blocks
|
;; keywords and macros are expanded and code blocks
|
||||||
;; are evaluated.
|
;; are evaluated.
|
||||||
(tree (let ((buf (or (buffer-file-name (buffer-base-buffer))
|
(tree (let ((buf (or (buffer-file-name (buffer-base-buffer))
|
||||||
(current-buffer))))
|
(current-buffer))))
|
||||||
(org-export-with-current-buffer-copy
|
(org-export-with-current-buffer-copy
|
||||||
(unless noexpand
|
(unless noexpand
|
||||||
(org-export-expand-include-keyword)
|
(org-export-expand-include-keyword)
|
||||||
|
;; Update radio targets since keyword
|
||||||
|
;; inclusion might have added some more.
|
||||||
|
(org-update-radio-target-regexp)
|
||||||
(org-export-expand-macro info)
|
(org-export-expand-macro info)
|
||||||
;; TODO: Setting `org-current-export-file' is
|
;; TODO: Setting `org-current-export-file' is
|
||||||
;; required by Org Babel to properly resolve
|
;; required by Org Babel to properly resolve
|
||||||
|
|
Loading…
Reference in New Issue