bugfix: fix `org-babel-execute-src-block' on remote hosts
commit3b2abfce7be17d6b381806875afa2e21cf16b0f2
authorSuhail Shergill <suhailshergill@gmail.com>
Sat, 23 Mar 2013 23:26:31 +0000 (23 19:26 -0400)
committerBastien Guerry <bzg@altern.org>
Mon, 25 Mar 2013 05:09:14 +0000 (25 06:09 +0100)
tree533d81f27e26137cb06cab8017d124ab766fc7be
parent3abd5ef70789516481c3ea192c90d3a6ab30b5b1
bugfix: fix `org-babel-execute-src-block' on remote hosts

* lisp/ob-core.el (org-babel-temp-file): For remote hosts, modify the prefix
  and leave `temporary-file-directory' unchanged.

The reason setting `temporary-file-directory' doesn't work here is
because `make-temp-file' recursively calls itself (indirectly).
Modifying `temporary-file-directly', affects the recursive calls as well,
which results in a "No such file file or directory" error.

The fix is to leave `temporary-file-directory' unaltered, for remote
hosts, and instead modifying the 'prefix' argument to `make-temp-file'
appropriately.

TINYCHANGE
lisp/ob-core.el