diff --git a/lisp/ob-tangle.el b/lisp/ob-tangle.el index 96a4ef049..8af03b11a 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