using `org-babel-temporary-directory' to collect and remove temporary files
commita37072786c1da98ccfe6e6b4f481bfc83d61c4d2
authorEric Schulte <schulte.eric@gmail.com>
Thu, 30 Sep 2010 13:31:14 +0000 (30 07:31 -0600)
committerEric Schulte <schulte.eric@gmail.com>
Thu, 30 Sep 2010 13:39:59 +0000 (30 07:39 -0600)
tree5f4ebbe49ef757e2782d465ca1f4e6d686bec1ff
parent9f96a1ead1deed2095078da4ea8432e2afac6c9f
using `org-babel-temporary-directory' to collect and remove temporary files

We had stopped using this because users noticed that temporary
directories were accumulating in their /tmp directory.  I believe this
was due to repeatedly evaluating the ob.el emacs-lisp file, which
repeatedly re-defined the `org-babel-temporary-directory' variable
creating multiple directories.  This problem should be fixed by
wrapping the defvar holding this form in (unless (boundp org...)).

* lisp/ob.el (boundp): uncommenting defvar form for
  org-babel-temporary-directory
  (org-babel-temp-file): now using the org-babel-temporary-directory
  for holding new babel temporary files
  (org-babel-remove-temporary-directory): removes the babel temp dir
  when Emacs shutsdown
  (kill-emacs-hook): now removing the babel temp dir on Emacs shutdown
lisp/ob.el