summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <n.goaziou@gmail.com>2012-10-10 13:55:51 +0200
committerNicolas Goaziou <n.goaziou@gmail.com>2012-10-10 13:55:51 +0200
commitb6822edce3a799aa605fc1757232bd720b769ee8 (patch)
treea9a055a996563c63b3e8456e1bede2882326234e
parent89d6a26f8d2fea3c8c7116b1196ae48bc93d5e16 (diff)
downloadorg-mode-b6822edce3a799aa605fc1757232bd720b769ee8.tar.gz
org-export: Update radio targets after expanding include keywords
* contrib/lisp/org-export.el (org-export-as): Update radio targets after expanding include keywords.
-rw-r--r--contrib/lisp/org-export.el7
1 files changed, 5 insertions, 2 deletions
diff --git a/contrib/lisp/org-export.el b/contrib/lisp/org-export.el
index 8315a97..72709b9 100644
--- a/contrib/lisp/org-export.el
+++ b/contrib/lisp/org-export.el
@@ -2545,14 +2545,17 @@ Return code as a string."
(let* ((info (org-export-install-filters
(org-export-get-environment backend subtreep ext-plist)))
;; 2. Get parse tree. Buffer isn't parsed directly.
- ;; Instead, a temporary copy is created, where macros
- ;; and include keywords are expanded and code blocks
+ ;; Instead, a temporary copy is created, where include
+ ;; keywords and macros are expanded and code blocks
;; are evaluated.
(tree (let ((buf (or (buffer-file-name (buffer-base-buffer))
(current-buffer))))
(org-export-with-current-buffer-copy
(unless noexpand
(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)
;; TODO: Setting `org-current-export-file' is
;; required by Org Babel to properly resolve