ob-screen, use unpredictable temp file name

* lisp/ob-screen.el (org-babel-screen-test): Use unpredictable name
  for temporary file.
This commit is contained in:
Eric Schulte 2014-05-08 12:16:45 -06:00
parent 937d90364c
commit ef6f2465bd
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ The terminal should shortly flicker."
(interactive)
(let* ((session "org-babel-testing")
(random-string (format "%s" (random 99999)))
(tmpfile "/tmp/org-babel-screen.test")
(tmpfile (org-babel-temp-file "ob-screen-test-"))
(body (concat "echo '" random-string "' > " tmpfile "\nexit\n"))
process tmp-string)
(org-babel-execute:screen body org-babel-default-header-args:screen)