diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2009-03-10 13:33:23 +0000 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2009-03-10 13:33:23 +0000 |
commit | bba79a9ce446856701d58cdeb26488b6a0b87864 (patch) | |
tree | c4864ac4d5aa4b7ae0706910263ca0b100d3944b /lisp/doc-view.el | |
parent | 0462d01962732c9c447728c547128c77f9d63999 (diff) | |
download | emacs-bba79a9ce446856701d58cdeb26488b6a0b87864.tar.gz emacs-bba79a9ce446856701d58cdeb26488b6a0b87864.tar.bz2 emacs-bba79a9ce446856701d58cdeb26488b6a0b87864.zip |
(doc-view-convert-current-doc): Fix last change.
Diffstat (limited to 'lisp/doc-view.el')
-rw-r--r-- | lisp/doc-view.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/doc-view.el b/lisp/doc-view.el index bfdc40d50b0..f4847e45f7c 100644 --- a/lisp/doc-view.el +++ b/lisp/doc-view.el @@ -730,7 +730,9 @@ Those files are saved in the directory given by the function (let ((res doc-view-resolution)) (with-temp-buffer (princ res (current-buffer)) - (write-file res-file))) + ;; Don't use write-file, so as to avoid prompts for `require-newline', + ;; or for pre-existing buffers with the same name, ... + (write-region nil nil res-file nil 'silently))) (case doc-view-doc-type (dvi ;; DVI files have to be converted to PDF before Ghostscript can process |