summaryrefslogtreecommitdiff
path: root/lisp/doc-view.el
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright year to 2018Paul Eggert2018-01-011-1/+1
| | | | Run admin/update-copyright.
* * lisp/button.el (button-activate): Fix doc typo.Glenn Morris2017-10-271-1/+1
|
* Prefer HTTPS to FTP and HTTP in documentationPaul Eggert2017-09-131-1/+1
| | | | | | | | | | | | | Most of this change is to boilerplate commentary such as license URLs. This change was prompted by ftp://ftp.gnu.org's going-away party, planned for November. Change these FTP URLs to https://ftp.gnu.org instead. Make similar changes for URLs to other organizations moving away from FTP. Also, change HTTP to HTTPS for URLs to gnu.org and fsf.org when this works, as this will further help defend against man-in-the-middle attacks (for this part I omitted the MS-DOS and MS-Windows sources and the test tarballs to keep the workload down). HTTPS is not fully working to lists.gnu.org so I left those URLs alone for now.
* Avoid unnecessary loading of subr-x at run-timeGlenn Morris2017-04-181-1/+1
| | | | | | | | | | * lisp/doc-view.el, lisp/filenotify.el, lisp/info-look.el: * lisp/svg.el, lisp/emacs-lisp/byte-opt.el, lisp/net/shr.el: * lisp/textmodes/sgml-mode.el, test/lisp/dom-tests.el: No need to load subr-x at run-time. * lisp/gnus/nnheader.el: No need to load subr-x. ; * lisp/emacs-lisp/subr-x.el, lisp/gnus/message.el, lisp/net/nsm.el: ; Comments.
* * lisp/doc-view.el (doc-view-mode): Don't require a final newlineStefan Monnier2017-02-021-0/+5
| | | | (doc-view-revert-buffer): Silence overflow warnings.
* Update copyright year to 2017Paul Eggert2016-12-311-1/+1
| | | | Run admin/update-copyright.
* Honor prefix arg in doc-view-next-line-or-next-pageMarcin Borkowski2016-03-181-1/+1
| | | | | | * lisp/doc-view.el (doc-view-next-line-or-next-page): Take the prefix argument into consideration when continuous scrolling is not in effect (i.e., by default) (bug#19559).
* Fix soffice UserInstallation-URL for WindowsTassilo Horn2016-02-161-0/+5
| | | | | * lisp/doc-view.el (doc-view-odf->pdf-converter-soffice): Fix UserInstallation-URL when calling soffice on Windows.
* Fix wording in a doc-view.el commentEli Zaretskii2016-02-151-2/+3
| | | | | * lisp/doc-view.el (doc-view--current-cache-dir): Don't use "illegal" for something that is not against the law.
* ; Spelling fixesPaul Eggert2016-02-141-2/+2
|
* Replace colon in file name (not legal on Windows)Thomas Plass2016-02-141-8/+13
| | | | | * lisp/doc-view.el (doc-view--current-cache-dir): Replace colon in file name (not legal on Windows). [tiny change]
* Fix desktop support in todo-mode and doc-view (bug#22377)Stephen Berman2016-01-211-4/+3
| | | | | | | | * lisp/calendar/todo-mode.el (todo-restore-desktop-buffer): * lisp/doc-view.el (doc-view-restore-desktop-buffer): Return current buffer. * lisp/calendar/todo-mode.el (todo-modes-set-2): * lisp/doc-view.el (doc-view-mode): Set desktop-save-buffer unconditionally.
* Update copyright year to 2016Paul Eggert2016-01-011-1/+1
| | | | Run admin/update-copyright.
* Improve doc-view wrt. auto-revert-modeTassilo Horn2015-10-221-3/+18
| | | | | | * lisp/doc-view.el (doc-view-revert-buffer): Don't revert when file is corrupted (bug#21729). (doc-view-mode): Set doc-view-revert-buffer as revert-buffer-function.
* Support RTF in doc-viewTassilo Horn2015-10-121-1/+1
| | | | * lisp/doc-view.el (doc-view-set-doc-type): Add entry for RTF extension.
* doc-view.el (doc-view-kill-proc-and-buffer): Obsolete.Artur Malabarba2015-02-061-7/+2
| | | | | Use image-kill-buffer instead. (doc-view-mode): Add `doc-view-kill-proc' to `kill-buffer-hook'.
* * lisp/doc-view.el: Add some comments about desktop supportStefan Monnier2015-02-051-0/+8
|
* Update copyright year to 2015Paul Eggert2015-01-011-1/+1
| | | | Run admin/update-copyright.
* Improve viewing plain text contents of documentTassilo Horn2014-10-221-26/+46
| | | | | | | | | | | | | | * doc/emacs/misc.texi (Document View): Adapt to latest doc-view changes wrt viewing the document's plain text contents. * lisp/doc-view.el (doc-view-open-text): View the document's plain text in the current buffer instead of a new one. (doc-view-toggle-display): Handle the case where the current buffer contains the plain text contents of the document. (doc-view-initiate-display): Don't switch to fallback mode if the user wants to view the doc's plain text. (doc-view-set-doc-type): Use assoc-string instead of assoc-ignore-case.
* Open doc text also if it's not saved to a file.Stephen Berman2014-07-281-3/+4
| | | | | * doc-view.el (doc-view-open-text): Don't require that the document is saved in a file (e.g., email attachment).
* Add with-file-modes macro, and use itGlenn Morris2014-05-141-10/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/subr.el (with-file-modes): New macro. * lisp/printing.el (pr-save-file-modes): * lisp/eshell/esh-util.el (eshell-with-file-modes): Make obsolete. * lisp/emacs-lisp/lisp-mode.el (lisp-el-font-lock-keywords-2): Add with-file-modes. * lisp/doc-view.el (doc-view-make-safe-dir): * lisp/epg.el (epg--start): * lisp/files.el (locate-user-emacs-file, make-temp-file) (backup-buffer-copy, move-file-to-trash): * printing.el (pr-despool-print, pr-call-process, pr-text2ps): * eshell/esh-util.el (eshell-with-private-file-modes) (eshell-make-private-directory): * lisp/net/browse-url.el (browse-url-mosaic): * lisp/obsolete/mailpost.el (post-mail-send-it): * lisp/obsolete/pgg-pgp.el (pgg-pgp-verify-region): * lisp/obsolete/pgg-pgp5.el (pgg-pgp5-verify-region): * lisp/url/url-util.el (url-make-private-file): Use with-file-modes. * doc/lispref/files.texi (Changing Files): Mention with-file-modes. * etc/NEWS: Mention this.
* * lisp/image-mode.el (image-mode-window-put): Also update the property ofIan D2014-04-161-1/+1
| | | | | | the "default window". * lisp/doc-view.el (doc-view-new-window-function): If no window exists, move to the last known page.
* * lisp/doc-view.el (doc-view-set-doc-type): Ignore file name case; add .pps.Stefan Monnier2014-04-141-18/+19
|
* Fix bug#16090.Tassilo Horn2014-04-041-10/+13
| | | | | | * lisp/doc-view.el (doc-view-bookmark-jump): Use `bookmark-after-jump-hook' to jump to the right page after the buffer is shown in a window.
* Update copyright year to 2014 by running admin/update-copyright.Paul Eggert2014-01-011-1/+1
|
* Add missing custom :versions, plus small fixesGlenn Morris2013-12-271-0/+1
| | | | | | | | | | | | | | | | | | | | | | * emacs-lisp/smie.el (smie-config): Add type, version, initialize. * bookmark.el (bookmark-bmenu-use-header-line): * doc-view.el (doc-view-scale-internally): * pcmpl-x.el (pcmpl-x-tlmgr-program, pcmpl-x-ack-program): * register.el (register-preview-delay): * net/shr.el (shr-bullet): * progmodes/cfengine.el (cfengine-cf-promises) (cfengine-parameters-indent): * progmodes/octave.el (inferior-octave-error-regexp-alist): * textmodes/reftex-vars.el (reftex-label-regexps): * vc/log-edit.el (log-edit-setup-add-author): Add version. * cedet/ede/linux.el (project-linux-build-directory-default) (project-linux-architecture-default): Fix custom types. Add version. * gnus/gnus-icalendar.el (gnus-icalendar-org, gnus-icalendar): * gnus/gnus-sum.el (gnus-subthread-sort-functions): Add version. * gnus/gnus-sync.el (gnus-sync-file-encrypt-to): Add type and version.
* Refine redisplay optimizations to only redisplay *some* frames/windowsStefan Monnier2013-11-281-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | rather than all of them. * src/xdisp.c (REDISPLAY_SOME): New constant. (redisplay_other_windows, wset_redisplay, fset_redisplay) (bset_redisplay, bset_update_mode_line): New functions. (message_dolog): Use bset_redisplay. (clear_garbaged_frames): Use fset_redisplay. (echo_area_display): Use wset_redisplay. (buffer_shared_and_changed): Remove. (prepare_menu_bars): Call Vpre_redisplay_function before updating frame titles. Compute the actual set of windows redisplayed. Don't update frame titles and menu bars for frames that don't need to be redisplayed. (propagate_buffer_redisplay): New function. (AINC): New macro. (redisplay_internal): Use it. Be more selective in the set of windows we redisplay. Propagate windows_or_buffers_changed to update_mode_lines a bit later to simplify the code. (mark_window_display_accurate_1): Reset window and buffer's `redisplay' flag. (redisplay_window): Do nothing if neither the window nor the buffer nor the frame needs redisplay. * src/window.h (struct window): Add `redisplay' field. (wset_redisplay, fset_redisplay, bset_redisplay, bset_update_mode_line) (redisplay_other_windows, window_list): New declarations. * src/window.c (select_window, Fset_window_start): Use wset_redisplay. (window_list): Not static any more. (grow_mini_window, shrink_mini_window): Use fset_redisplay. * src/minibuf.c (read_minibuf_unwind): Don't redisplay everything. * src/insdel.c (prepare_to_modify_buffer_1): Use bset_redisplay. * src/frame.c (Fmake_frame_visible): Don't redisplay everything. * src/frame.h (struct frame): Add `redisplay' field. Move `external_menu_bar' bitfield next to other bit-fields. (SET_FRAME_GARBAGED): Use fset_redisplay. (SET_FRAME_VISIBLE): Don't garbage the frame; Use redisplay_other_windows. * src/buffer.h (struct buffer): Add `redisplay' field. * src/buffer.c (Fforce_mode_line_update): Pay attention to the `all' flag. (modify_overlay): Use bset_redisplay. * src/alloc.c (gc_sweep): Don't unmark strings while sweeping symbols. * lisp/doc-view.el (doc-view-goto-page): Update mode-line.
* * doc-view.el (doc-view-scale-reset): Rename fromTassilo Horn2013-09-271-4/+21
| | | | | | | `doc-view-reset-zoom-level'. (doc-view-scale-adjust): New command. (doc-view-mode-map): Remap `text-scale-adjust' bindings to `doc-view-scale-adjust'.
* * doc-view.el (doc-view-reset-zoom-level): New command.Tassilo Horn2013-09-261-0/+18
| | | | | (doc-view-mode-map): Remap text-scale-adjust bindings to doc-view zoom commands (bug#15466).
* * doc-view.el (doc-view-mode): Silence --without-x compilation.Glenn Morris2013-09-171-3/+6
|
* Do not call to `selected-window' where it is assumed by default.Dmitry Antipov2013-08-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Affected functions are `window-minibuffer-p', `window-dedicated-p', `window-hscroll', `window-width', `window-height', `window-buffer', `window-frame', `window-start', `window-point', `next-window' and `window-display-table'. * abbrev.el (abbrev--default-expand): * bs.el (bs--show-with-configuration): * buff-menu.el (Buffer-menu-mouse-select): * calc/calc.el (calc): * calendar/calendar.el (calendar-generate-window): * calendar/diary-lib.el (diary-simple-display, diary-show-all-entries) (diary-make-entry): * comint.el (send-invisible, comint-dynamic-complete-filename) (comint-dynamic-simple-complete, comint-dynamic-list-completions): * completion.el (complete): * dabbrev.el (dabbrev-expand, dabbrev--make-friend-buffer-list): * disp-table.el (describe-current-display-table): * doc-view.el (doc-view-insert-image): * ebuff-menu.el (Electric-buffer-menu-mouse-select): * ehelp.el (with-electric-help): * emacs-lisp/easy-mmode.el (easy-mmode-define-navigation): * emacs-lisp/edebug.el (edebug-two-window-p, edebug-pop-to-buffer): * emacs-lisp/helper.el (Helper-help-scroller): * emulation/cua-base.el (cua--post-command-handler-1): * eshell/esh-mode.el (eshell-output-filter): * ffap.el (ffap-gnus-wrapper): * help-macro.el (make-help-screen): * hilit-chg.el (highlight-compare-buffers): * hippie-exp.el (hippie-expand, try-expand-dabbrev-visible): * hl-line.el (global-hl-line-highlight): * icomplete.el (icomplete-simple-completing-p): * isearch.el (isearch-done): * jit-lock.el (jit-lock-stealth-fontify): * mail/rmailsum.el (rmail-summary-scroll-msg-up): * lisp/mouse-drag.el (mouse-drag-should-do-col-scrolling): * mpc.el (mpc-tagbrowser, mpc): * net/rcirc.el (rcirc-any-buffer): * play/gomoku.el (gomoku-max-width, gomoku-max-height): * play/landmark.el (landmark-max-width, landmark-max-height): * play/zone.el (zone): * progmodes/compile.el (compilation-goto-locus): * progmodes/ebrowse.el (ebrowse-view/find-file-and-search-pattern): * progmodes/etags.el (find-tag-other-window): * progmodes/fortran.el (fortran-column-ruler): * progmodes/gdb-mi.el (gdb-mouse-toggle-breakpoint-fringe): * progmodes/verilog-mode.el (verilog-point-text): * reposition.el (reposition-window): * rot13.el (toggle-rot13-mode): * server.el (server-switch-buffer): * shell.el (shell-dynamic-complete-command) (shell-dynamic-complete-environment-variable): * simple.el (insert-buffer, set-selective-display) (delete-completion-window): * speedbar.el (speedbar-timer-fn, speedbar-center-buffer-smartly) (speedbar-recenter): * startup.el (fancy-splash-head): * textmodes/ispell.el (ispell-command-loop): * textmodes/makeinfo.el (makeinfo-compilation-sentinel-region): * tutorial.el (help-with-tutorial): * vc/add-log.el (add-change-log-entry): * vc/compare-w.el (compare-windows): * vc/ediff-help.el (ediff-indent-help-message): * vc/ediff-util.el (ediff-setup-control-buffer, ediff-position-region): * vc/ediff-wind.el (ediff-skip-unsuitable-frames) (ediff-setup-control-frame): * vc/emerge.el (emerge-position-region): * vc/pcvs-util.el (cvs-bury-buffer): * window.el (walk-windows, mouse-autoselect-window-select): * winner.el (winner-set-conf, winner-undo): Related users changed.
* Remove some more reimplementations of cl-lib functionsGlenn Morris2013-07-111-11/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/doc-view.el: Require cl-lib at runtime too. (doc-view-remove-if): Remove. (doc-view-search-next-match, doc-view-search-previous-match): Use cl-remove-if. * lisp/edmacro.el: Require cl-lib at runtime too. (edmacro-format-keys, edmacro-parse-keys): Use cl-mismatch, cl-subseq. (edmacro-mismatch, edmacro-subseq): Remove. * lisp/filesets.el: Comments. * lisp/shadowfile.el: Require cl-lib. (shadow-remove-if): Remove. (shadow-set-cluster, shadow-shadows-of-1, shadow-remove-from-todo): Use cl-remove-if. * lisp/wid-edit.el: Require cl-lib. (widget-choose): Use cl-remove-if. (widget-remove-if): Remove. * lisp/progmodes/ebrowse.el: Require cl-lib at runtime too. (ebrowse-delete-if-not): Remove. (ebrowse-browser-buffer-list, ebrowse-member-buffer-list) (ebrowse-tree-buffer-list, ebrowse-same-tree-member-buffer-list): Use cl-delete-if-not.
* * lisp/doc-view.el: Minor naming convention tweaks.Stefan Monnier2013-05-261-134/+131
| | | | (desktop-buffer-mode-handlers): Don't add to it repeatedly.
* * lisp/image-mode.el (image-mode-winprops): Add winprops toStefan Monnier2013-05-241-20/+14
| | | | | | | | image-mode-winprops-alist before running image-mode-new-window-functions. * lisp/doc-view.el (doc-view-new-window-function): Don't delay doc-view-goto-page via timers. Fixes: debbugs:14435
* * doc-view.el: Integrate with desktop.el. (Bug#14435)Tassilo Horn2013-05-241-0/+22
| | | | | | | | | | (doc-view-desktop-save-buffer): New function. (doc-view-restore-desktop-buffer): New function. (desktop-buffer-mode-handlers): Add `doc-view-restore-desktop-buffer' as desktop.el buffer mode handler. (doc-view-mode): Set `doc-view-desktop-save-buffer' as custom `desktop-save-buffer' function.
* Silence some compiler warningsGlenn Morris2013-05-211-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * calculator.el (electric, ehelp): No need to load when compiling. (Electric-command-loop, electric-describe-mode): Declare. * doc-view.el (doc-view-current-converter-processes): Move before use. * files.el (dired-unmark): * progmodes/gud.el (gdb-input): Update declarations. * emacs-lisp/easy-mmode.el (define-globalized-minor-mode): Move MODE-set-explicitly definition before use. * erc/erc-log.el (erc-network-name): Declare. * erc/erc-notify.el (pcomplete--here): Declare. (pcomplete/erc-mode/NOTIFY): Require pcomplete. * international/mule-diag.el (mule-diag): Don't use obsolete window-system-version. * mail/feedmail.el (smtpmail): No need to load when compiling. (smtpmail-via-smtp, smtpmail-smtp-server): Declare. * mail/mail-utils.el (rfc822): No need to load when compiling. (rfc822-addresses): Autoload it. (mail-strip-quoted-names): Trivial simplification. * mail/rmail.el (rmail-mime-message-p, rmail-mime-toggle-raw): Declare. (rmail-retry-failure): Don't assume that rmail-mime-feature == rmailmm. * net/snmp-mode.el (tempo): Don't duplicate requires. * progmodes/prolog.el (info): No need to load when compiling. (comint): Require before shell requires it. (Info-goto-node): Autoload it. (Info-follow-nearest-node): Declare. (prolog-help-info, prolog-goto-predicate-info): No need to require info. * textmodes/artist.el (picture-mode-exit): Declare. * textmodes/reftex-parse.el (reftex-parse-from-file): Trivial rewrite so the compiler can parse it better. * url/url-dav.el (url-http): Require it. (url-http-head-file-attributes): Don't autoload it. * url/url-proxy.el (url-http): Autoload it.
* * lisp/doc-view.el (doc-view-start-process): Handle url-handler directories.Stefan Monnier2013-04-151-2/+2
|
* * doc-view.el (doc-view-new-window-function): Check the new windowTassilo Horn2013-03-181-6/+5
| | | | | | | | | overlay's display property instead the char property of the buffer's first char. Use `with-selected-window' instead of `save-window-excursion' with `select-window'. (doc-view-document->bitmap): Check the current doc-view overlay's display property instead the char property of the buffer's first char.
* * doc-view.el Fix bug#13887.Tassilo Horn2013-03-141-5/+23
| | | | | | | | (doc-view-insert-image): Don't modify overlay associated to non-live windows, and implement horizontal centering of image in case it's smaller than the window. (doc-view-new-window-function): Force redisplay of new windows on doc-view buffers.
* * doc-view.el (doc-view-insert-image): Don't modify overlayTassilo Horn2013-03-141-38/+54
| | | | | | associated with pseudo winprops entry, and implement horizontal centering of image in case it's smaller than the window (bug#13887).
* * lisp/doc-view.el: Preserve h&v scroll across C-c C-c C-c C-c.Stefan Monnier2013-02-271-5/+2
| | | | | | | (doc-view-fallback-mode): Remove overlays here. (doc-view-toggle-display): Instead of here. Don't throw away image-mode-winprops-alist. (doc-view-goto-page): Don't mess with hscroll.
* Add more keymaps where S-SPC scrolls in the opposite direction to SPC.Juri Linkov2013-02-131-0/+1
| | | | | | | | | | | * lisp/image-mode.el (image-mode-map): * lisp/doc-view.el (doc-view-mode-map): * lisp/vc/ediff-util.el (ediff-setup-keymap): Make S-SPC scroll in the opposite sense to SPC. * lisp/gnus/gnus-art.el (gnus-article-mode-map): * lisp/gnus/gnus-sum.el (gnus-summary-mode-map, gnus-summary-article-map): Make S-SPC scroll in the opposite sense to SPC. (Bug#2145)
* Improve previous patch to allow for multiple simultaneous ODF->PDFTassilo Horn2013-02-121-16/+15
| | | | conversions.
* * doc-view.el (doc-view-odf->pdf-converter-soffice): Use separateTassilo Horn2013-02-121-2/+14
| | | | | UserInstallation when calling soffice to work around LibreOffice bug 37531.
* * lisp/doc-view.el (doc-view-current-cache-dir): Beware % escapes.Elias Pipping2013-02-111-1/+2
| | | | Fixes: debbugs:13679
* * doc-view.el: Use (and prefer) soffice as default ODF->PDFTassilo Horn2013-02-091-7/+39
| | | | | | | | | | | | | | converter (Bug#13622). Patch provided by Jambunathan K <kjambunathan@gmail.com>. (doc-view-unoconv-program): Make obsolete variable. (doc-view-odf->pdf-converter-program): New variable. (doc-view-odf->pdf-converter-function): New variable. (doc-view-mode-p): Use it. (doc-view-odf->pdf-converter-unoconv): Rename from `doc-view-odf->pdf-converter-unoconv'. (doc-view-odf->pdf-converter-soffice): New function. (doc-view-convert-current-doc): Use `doc-view-odf->pdf-converter-function'.
* * src/insdel.c (prepare_to_modify_buffer): Revert last change as suggestedDmitry Antipov2013-01-241-0/+2
| | | | | | in http://lists.gnu.org/archive/html/emacs-devel/2013-01/msg00555.html. * lisp/doc-view.el (doc-view-display): Force mode line update until all document is converted. Suggested by Stefan Monnier (Bug#13164).
* * lisp/files.el (auto-mode-alist): Use doc-view for djvu files.Elias Pipping2013-01-101-4/+3
| | | | | | | | * lisp/doc-view.el (doc-view-document->bitmap): Use doc-view-single-page-converter-function instead of single-page-converter arg; adjust callers. Fixes: debbugs:13164
* * lisp/doc-view.el (doc-view-pdfdraw-program): Allow "pdfdraw" name.Stefan Monnier2013-01-101-135/+100
| | | | | | | | | | | | | | | | | | | | | (doc-view-pdf->png-converter-function): Use mupdf if available. (doc-view-djvu->png-converter-function) (doc-view-ps->png-converter-function): Remove. (doc-view--image-file-pattern): Replace doc-view--image-file-extension. (doc-view-goto-page, doc-view-convert-current-doc, doc-view-display) (doc-view-already-converted-p): Adjust accordingly. (doc-view-mode-p): Simplify. (doc-view-enlarge): Use setq-local. (doc-view-pdf->png-converter-ghostscript) (doc-view-djvu->png-converter-ddjvu) (doc-view-pdf->png-converter-mupdf): Rework to call doc-view-start-process directly. (doc-view-pdf/ps->png): Simplify accordingly. (doc-view-pdf->png-1, doc-view-djvu->png-1): Remove. (doc-view-document->bitmap): Rename from doc-view-document->png. (doc-view-convert-current-doc): Merge pdf and djvu cases. (doc-view-set-slice-from-bounding-box): Fix completion table. (doc-view-mode): Use add-hook for after-revert-hook.
* * lisp/doc-view.el: Add support for DjVu.Elias Pipping2013-01-091-40/+117
| | | | | | | | | | | | | | | | | | | (doc-view-djvu->png-converter-function): New config var. (doc-view-single-page-converter-function, doc-view--image-type) (doc-view--image-file-extension): New vars. (doc-view-mode): Initialize them. (doc-view-goto-page): Use them. (doc-view-mode-p): Add support for ddjvu. (doc-view-djvu->png-converter-ddjvu, doc-view-djvu->png-1) (doc-view-set-up-single-converter): New funs. (doc-view-pdf/ps->png): Extend for djvu. (doc-view-document->png): Rename from doc-view-pdf->png. (doc-view-convert-current-doc): Handle djvu. (doc-view-insert-image, doc-view-display) (doc-view-already-converted-p): Don't hardcode png. (doc-view-set-doc-type): Recognize djvu docs. Fixes: debbugs:13164