Explorar el Código

don't use predictable temp files in ob-screen

* lisp/ob-screen.el (org-babel-screen-session-write-temp-file):
  Unpredictable temp file name, fixes bug 17416.
Eric Schulte hace 11 años
padre
commit
fea672d30e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      lisp/ob-screen.el

+ 1 - 1
lisp/ob-screen.el

@@ -106,7 +106,7 @@ In case you want to use a different screen than one selected by your $PATH")
 
 (defun org-babel-screen-session-write-temp-file (session body)
   "Save BODY in a temp file that is named after SESSION."
-  (let ((tmpfile (concat "/tmp/screen.org-babel-session-" session)))
+  (let ((tmpfile (org-babel-temp-file "screen-")))
     (with-temp-file tmpfile
       (insert body)