0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-09-29 19:37:52 +00:00

fixed bug in tangle-file

* lisp/ob-tangle.el (org-babel-tangle): Fixed bug in tangle-file.
This commit is contained in:
Eric Schulte 2013-06-11 07:09:23 -06:00
parent ef98a614f6
commit 1a8ad7dab1

View file

@ -228,7 +228,7 @@ used to limit the exported source code blocks by language."
(make-directory (file-name-directory file-name) 'parents))
;; delete any old versions of file
(when (and (file-exists-p file-name)
(not (member file-name path-collector)))
(not (member file-name (mapcar #'car path-collector))))
(delete-file file-name))
;; drop source-block to file
(with-temp-buffer