[PATCH] ob-tangle.el: Fix error in org-tangle from org-src edit buffer (org-babel-tangle) : Fix stringp error which happens when confirming successful tangle when `org-babel-tangle` is called from an org-src edit buffer.
TINYCHANGE --- lisp/ob-tangle.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lisp/ob-tangle.el b/lisp/ob-tangle.el index 2f60ef9a4..0768c8588 100644 --- a/lisp/ob-tangle.el +++ b/lisp/ob-tangle.el @@ -281,7 +281,10 @@ matching a regular expression." (if (= block-counter 1) "" "s") (file-name-nondirectory (buffer-file-name - (or (buffer-base-buffer) (current-buffer))))) + (or (buffer-base-buffer) + (current-buffer) + (and (org-src-edit-buffer-p) + (org-src-source-buffer)))))) ;; run `org-babel-post-tangle-hook' in all tangled files (when org-babel-post-tangle-hook (mapc -- 2.30.1