From bba79a9ce446856701d58cdeb26488b6a0b87864 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Tue, 10 Mar 2009 13:33:23 +0000 Subject: (doc-view-convert-current-doc): Fix last change. --- lisp/ChangeLog | 85 ++++++++++++++++++++++++++++---------------------------- lisp/doc-view.el | 4 ++- 2 files changed, 45 insertions(+), 44 deletions(-) (limited to 'lisp') diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 93f0d34aba..ee521252b9 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,7 @@ +2009-03-10 Stefan Monnier + + * doc-view.el (doc-view-convert-current-doc): Fix last change. + 2009-03-10 Glenn Morris * mail/sendmail.el (mail-archive-file-name, mail-default-headers): @@ -8,8 +12,7 @@ 2009-03-10 Alexander Becher (tiny change) - * vc-annotate.el (vc-annotate): Use widened line - number (Bug#2612). + * vc-annotate.el (vc-annotate): Use widened line number (Bug#2612). 2009-03-09 Jason Rumney @@ -74,9 +77,9 @@ 2009-03-04 David Reitter - * menu-bar.el (clipboard-yank): avoid - checking (x-selection-exists-p) if unbound in order to enable the - item. For paste menu item, same, and check kill-ring. + * menu-bar.el (clipboard-yank): Avoid checking (x-selection-exists-p) + if unbound in order to enable the item. + For paste menu item, same, and check kill-ring. 2009-03-04 Sam Steingold @@ -144,18 +147,16 @@ * files.el (basic-save-buffer-1): Set car part of buffer-file-coding-system-explicit. - (revert-buffer): Check car part of - buffer-file-coding-system-explicit. + (revert-buffer): Check car part of buffer-file-coding-system-explicit. * international/mule-cmds.el (select-safe-coding-system): If cdr part of buffer-file-coding-system-explicit is set, ignore - default-buffer-file-coding-system and the most preferred coding - system. + default-buffer-file-coding-system and the most preferred coding system. * international/mule.el (set-buffer-file-coding-system): Set cdr part of buffer-file-coding-system-explicit. - (after-insert-file-set-coding): Set - buffer-file-coding-system-explicit to a cons. + (after-insert-file-set-coding): + Set buffer-file-coding-system-explicit to a cons. 2009-03-02 Glenn Morris @@ -187,8 +188,8 @@ 2009-02-28 Eli Zaretskii - * progmodes/grep.el (grep-process-setup) [windows-nt msdos]: Use - "--color=always". + * progmodes/grep.el (grep-process-setup) [windows-nt msdos]: + Use "--color=always". 2009-02-28 Glenn Morris @@ -226,8 +227,7 @@ 2009-02-26 Michael Albinus - * net/tramp.el (tramp-remote-coding-commands): Add - "base64". (Bug#2463) + * net/tramp.el (tramp-remote-coding-commands): Add "base64". (Bug#2463) 2009-02-26 Juanma Barranquero @@ -430,8 +430,8 @@ 2009-02-20 Era Eriksson (tiny change) - * textmodes/bibtex.el (bibtex-autokey-titleword-ignore): Fix - regexp (Bug#2385). + * textmodes/bibtex.el (bibtex-autokey-titleword-ignore): + Fix regexp (Bug#2385). (bibtex-autokey-get-title): Observe case for bibtex-autokey-titleword-ignore. @@ -562,8 +562,8 @@ 2009-02-17 Sam Steingold - * progmodes/compile.el (compilation-filter): Call - `comint-carriage-motion', just like `comint-output-filter'. + * progmodes/compile.el (compilation-filter): + Call `comint-carriage-motion', just like `comint-output-filter'. 2009-02-17 Jason Rumney @@ -701,13 +701,13 @@ 2009-02-13 Kenichi Handa - * international/titdic-cnv.el (tit-process-header): Use - buffer-substring-no-properties instead of buffer-substring. + * international/titdic-cnv.el (tit-process-header): + Use buffer-substring-no-properties instead of buffer-substring. (tit-process-body): Likewise. (tsang-quick-converter): Handle superfluous CR at eol. (py-converter): Use buffer-substring-no-properties instead of buffer-substring. Handle superfluous CR at eol. - (ziranma-converter): Likewise + (ziranma-converter): Likewise. (ctlau-converter): Likewise. (miscdic-convert): Read a file without eol conversion. (Bug#2307) @@ -916,8 +916,8 @@ 2009-02-09 Tassilo Horn * doc-view.el (doc-view-scroll-up-or-next-page) - (doc-view-scroll-down-or-previous-page, doc-view-goto-page): Reset - the old hscroll value after switching pages. + (doc-view-scroll-down-or-previous-page, doc-view-goto-page): + Reset the old hscroll value after switching pages. 2009-02-09 Glenn Morris @@ -944,8 +944,8 @@ * textmodes/artist.el (artist-system): Allow make-temp-file to use temporary-file-directory. - * mail/rmailmm.el (rmail-mime-attachment-dirs-alist): Use - temporary-file-directory. + * mail/rmailmm.el (rmail-mime-attachment-dirs-alist): + Use temporary-file-directory. 2009-02-07 Glenn Morris @@ -968,9 +968,9 @@ * mail/rmail.el (rmail-redecode-body): Don't encode/decode the message; instead, just rewrite the X-Coding-System header with the - new encoding, and let rmail-show-message do the rest. Remove - unused argument RAW. Fix doc string to be consistent with the new - implementation. + new encoding, and let rmail-show-message do the rest. + Remove unused argument RAW. Fix doc string to be consistent with the + new implementation. (rmail-show-message): Honor X-Coding-System header, if present, in preference to Content-Type header. @@ -1047,8 +1047,8 @@ 2009-02-05 Kenichi Handa - * international/fontset.el (script-representative-chars): Remove - mathematical. + * international/fontset.el (script-representative-chars): + Remove mathematical. (setup-default-fontset): Add entries for each subgroup of mathematical script. @@ -1121,8 +1121,8 @@ 2009-02-04 Kenichi Handa - * international/mule-cmds.el (select-safe-coding-system): Use - buffer-chars-modified-tick instead of buffer-modified-tick. + * international/mule-cmds.el (select-safe-coding-system): + Use buffer-chars-modified-tick instead of buffer-modified-tick. * descr-text.el (describe-char): Check font-object by fontp. @@ -1193,7 +1193,7 @@ Sync with Tramp 2.1.15. - * net/tramp.el (tramp-read-passwd): Cached passwords shall still be + * net/tramp.el (tramp-read-passwd): Cache passwords shall still be used. * net/tramp-cache.el (top): Autoload `tramp-run-real-handler'. @@ -1265,8 +1265,7 @@ * mail/unrmail.el (unrmail): Set coding-system of the old Rmail file to `raw-text-unix'. Bind coding-system-for-write when - writing out the converted message, and make sure it uses Unix - EOLs. + writing out the converted message, and make sure it uses Unix EOLs. * mail/rmail.el (rmail-convert-babyl-to-mbox): Set Rmail's buffer encoding to `raw-text-unix'. @@ -1314,8 +1313,8 @@ * mail/unrmail.el (unrmail): Fix conversion of BABYL attributes into Rmail-mbox attributes. - * mail/rmail.el (rmail-convert-babyl-to-mbox): Bind - coding-system-for-read to `raw-text', and use insert-file-contents + * mail/rmail.el (rmail-convert-babyl-to-mbox): + Bind coding-system-for-read to `raw-text', and use insert-file-contents instead of insert-file-contents-literally. Fixes bug #2019. (rmail-resent-attr-index): Fix index value. @@ -1346,8 +1345,8 @@ 2009-01-29 Michael Albinus - * net/tramp.el (tramp-process-actions, tramp-read-passwd): Allow - correction of passwords. + * net/tramp.el (tramp-process-actions, tramp-read-passwd): + Allow correction of passwords. 2009-01-29 Chong Yidong @@ -1435,9 +1434,9 @@ Prevent insertion of a new entry inside of an existing entry. Minor code cleanup. (Bug#2084) (todo-add-category): Change the interactive spec. Signal an error - if the Todo file is non-empty but contains no category. Reject - category names that could induce bugs and confusion. Call - todo-mode if the Todo file is new and unsaved. Simplify handling + if the Todo file is non-empty but contains no category. + Reject category names that could induce bugs and confusion. + Call todo-mode if the Todo file is new and unsaved. Simplify handling of local variables cookie. Properly display the newly added category in Todo mode. (todo-show): Call todo-initial-setup only if there is neither a diff --git a/lisp/doc-view.el b/lisp/doc-view.el index bfdc40d50b..f4847e45f7 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 -- cgit v1.2.3