call to delete-file no longer throwing errors on some Emacsen

Thanks to Erik Iverson for pointing this out

* lisp/ob.el (org-babel-remove-temporary-directory): removed explicit
  second argument
This commit is contained in:
Eric Schulte 2010-08-27 09:45:07 -06:00
parent 2554f27683
commit 344163403b
1 changed files with 1 additions and 1 deletions

View File

@ -1694,7 +1694,7 @@ of `org-babel-temporary-directory'."
;; but more efficient
(if (eq t (car (file-attributes file)))
(delete-directory file)
(delete-file file nil)))
(delete-file file)))
;; We do not want to delete "." and "..".
(directory-files org-babel-temporary-directory 'full
"^\\([^.]\\|\\.\\([^.]\\|\\..\\)\\).*"))