diff options
| author | Chong Yidong | 2010-12-16 09:11:21 +0800 |
|---|---|---|
| committer | Chong Yidong | 2010-12-16 09:11:21 +0800 |
| commit | c1cf05f4bb18bf2ded3d1cc5991f15c2dd6ead81 (patch) | |
| tree | 341d649fcc7f3add6b5f9f892e9e3b2731290b75 | |
| parent | ac8055b36488493543aa0ca63eda8f484fcc58d1 (diff) | |
| download | emacs-c1cf05f4bb18bf2ded3d1cc5991f15c2dd6ead81.tar.gz emacs-c1cf05f4bb18bf2ded3d1cc5991f15c2dd6ead81.zip | |
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 f6b836d5bed..8eda1582948 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2010-12-16 Chong Yidong <cyd@stupidchicken.com> | ||
| 2 | |||
| 3 | * textmodes/rst.el (rst-compile-pdf-preview) | ||
| 4 | (rst-compile-slides-preview): Use make-temp-file (Bug#7646). | ||
| 5 | |||
| 1 | 2010-12-15 Kevin Gallagher <Kevin.Gallagher@boeing.com> | 6 | 2010-12-15 Kevin Gallagher <Kevin.Gallagher@boeing.com> |
| 2 | 7 | ||
| 3 | * emulation/edt-mapper.el: Override mapping of function keys so | 8 | * emulation/edt-mapper.el: Override mapping of function keys so |
diff --git a/lisp/textmodes/rst.el b/lisp/textmodes/rst.el index 3f21fbe7a2c..8a4c06ba150 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." | |||
| 3307 | (defun rst-compile-pdf-preview () | 3307 | (defun rst-compile-pdf-preview () |
| 3308 | "Convert the document to a PDF file and launch a preview program." | 3308 | "Convert the document to a PDF file and launch a preview program." |
| 3309 | (interactive) | 3309 | (interactive) |
| 3310 | (let* ((tmp-filename "/tmp/out.pdf") | 3310 | (let* ((tmp-filename (make-temp-file "rst-out" nil ".pdf")) |
| 3311 | (command (format "rst2pdf.py %s %s && %s %s" | 3311 | (command (format "rst2pdf.py %s %s && %s %s" |
| 3312 | buffer-file-name tmp-filename | 3312 | buffer-file-name tmp-filename |
| 3313 | rst-pdf-program tmp-filename))) | 3313 | rst-pdf-program tmp-filename))) |
| @@ -3322,7 +3322,7 @@ or of the entire buffer, if the region is not selected." | |||
| 3322 | (defun rst-compile-slides-preview () | 3322 | (defun rst-compile-slides-preview () |
| 3323 | "Convert the document to an S5 slide presentation and launch a preview program." | 3323 | "Convert the document to an S5 slide presentation and launch a preview program." |
| 3324 | (interactive) | 3324 | (interactive) |
| 3325 | (let* ((tmp-filename "/tmp/slides.html") | 3325 | (let* ((tmp-filename (make-temp-file "rst-slides" nil ".html")) |
| 3326 | (command (format "rst2s5.py %s %s && %s %s" | 3326 | (command (format "rst2s5.py %s %s && %s %s" |
| 3327 | buffer-file-name tmp-filename | 3327 | buffer-file-name tmp-filename |
| 3328 | rst-slides-program tmp-filename))) | 3328 | rst-slides-program tmp-filename))) |