forked from mirrors/org-mode
fixed bug in tangle-file
* lisp/ob-tangle.el (org-babel-tangle): Fixed bug in tangle-file.
This commit is contained in:
parent
ef98a614f6
commit
1a8ad7dab1
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue