Browse Source

now sharing the file name in the tangling message

* lisp/ob-tangle.el (org-babel-tangle): now sharing the file name in
  the tangling message
Eric Schulte 14 years ago
parent
commit
c4916bb743
1 changed files with 3 additions and 2 deletions
  1. 3 2
      lisp/ob-tangle.el

+ 3 - 2
lisp/ob-tangle.el

@@ -228,8 +228,9 @@ exported source code blocks by language."
                     (add-to-list 'path-collector file-name)))))
             specs)))
        (org-babel-tangle-collect-blocks lang))
-      (message "tangled %d code block%s" block-counter
-               (if (= block-counter 1) "" "s"))
+      (message "tangled %d code block%s from %s" block-counter
+               (if (= block-counter 1) "" "s")
+	       (file-name-nondirectory (buffer-file-name (current-buffer))))
       ;; run `org-babel-post-tangle-hook' in all tangled files
       (when org-babel-post-tangle-hook
 	(mapc