diff options
author | Chong Yidong <[email protected]> | 2010-12-16 09:11:21 +0800 |
---|---|---|
committer | Chong Yidong <[email protected]> | 2010-12-16 09:11:21 +0800 |
commit | c1cf05f4bb18bf2ded3d1cc5991f15c2dd6ead81 (patch) | |
tree | 341d649fcc7f3add6b5f9f892e9e3b2731290b75 | |
parent | ac8055b36488493543aa0ca63eda8f484fcc58d1 (diff) |
Use make-temp-file in rst.el (Bug#7646).
* textmodes/rst.el (rst-compile-pdf-preview)
(rst-compile-slides-preview): Use make-temp-file.
-rw-r--r-- | lisp/ChangeLog | 5 | ||||
-rw-r--r-- | lisp/textmodes/rst.el | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index f6b836d5be..8eda158294 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2010-12-16 Chong Yidong <[email protected]> + + * textmodes/rst.el (rst-compile-pdf-preview) + (rst-compile-slides-preview): Use make-temp-file (Bug#7646). + 2010-12-15 Kevin Gallagher <[email protected]> * emulation/edt-mapper.el: Override mapping of function keys so diff --git a/lisp/textmodes/rst.el b/lisp/textmodes/rst.el index 3f21fbe7a2..8a4c06ba15 100644 --- a/lisp/textmodes/rst.el +++ b/lisp/textmodes/rst.el @@ -3307,7 +3307,7 @@ or of the entire buffer, if the region is not selected." (defun rst-compile-pdf-preview () "Convert the document to a PDF file and launch a preview program." (interactive) - (let* ((tmp-filename "/tmp/out.pdf") + (let* ((tmp-filename (make-temp-file "rst-out" nil ".pdf")) (command (format "rst2pdf.py %s %s && %s %s" buffer-file-name tmp-filename rst-pdf-program tmp-filename))) @@ -3322,7 +3322,7 @@ or of the entire buffer, if the region is not selected." (defun rst-compile-slides-preview () "Convert the document to an S5 slide presentation and launch a preview program." (interactive) - (let* ((tmp-filename "/tmp/slides.html") + (let* ((tmp-filename (make-temp-file "rst-slides" nil ".html")) (command (format "rst2s5.py %s %s && %s %s" buffer-file-name tmp-filename rst-slides-program tmp-filename))) |