Browse Source

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.
Sébastien Miquel 4 years ago
parent
commit
501b2a191c
1 changed files with 1 additions and 0 deletions
  1. 1 0
      lisp/ob-tangle.el

+ 1 - 0
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
 	    ;; Add the spec for this block to blocks under its tangled
 	    ;; file name.
 	    ;; file name.
 	    (let* ((block (org-babel-tangle-single-block counter))
 	    (let* ((block (org-babel-tangle-single-block counter))
+                   (src-tfile (cdr (assq :tangle (nth 4 block))))
 		   (base-name (cond
 		   (base-name (cond
 			       ((string= "yes" src-tfile)
 			       ((string= "yes" src-tfile)
                                 ;; buffer name
                                 ;; buffer name