summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Miquel <sebastien.miquel@posteo.eu>2021-05-05 08:31:43 +0200
committerBastien <bzg@gnu.org>2021-05-05 09:03:45 +0200
commit501b2a191c2c32c865af4de3d82b8562a9205161 (patch)
treeb8cdf4f06d228e4138b1d6bbbccc5cd3cea15e9d
parentd59f35fbb702201924aab577db07b659a2e11b5f (diff)
downloadorg-mode-501b2a191c2c32c865af4de3d82b8562a9205161.tar.gz
ob-tangle.el: (org-babel-tangle-collect-blocks): Use correct tangle name
* lisp/ob-tangle.el: (org-babel-tangle-collect-blocks): Use correct tangle name. The :tangle header argument might be some elisp, to be evaluated.
-rw-r--r--lisp/ob-tangle.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/ob-tangle.el b/lisp/ob-tangle.el
index 96a4ef0..8af03b1 100644
--- a/lisp/ob-tangle.el
+++ b/lisp/ob-tangle.el
@@ -377,6 +377,7 @@ be used to limit the collected code blocks by target file."
;; Add the spec for this block to blocks under its tangled
;; file name.
(let* ((block (org-babel-tangle-single-block counter))
+ (src-tfile (cdr (assq :tangle (nth 4 block))))
(base-name (cond
((string= "yes" src-tfile)
;; buffer name