]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix DocView with DVI files
authorManuel Giraud <manuel@ledu-giraud.fr>
Mon, 22 Jul 2024 18:44:46 +0000 (20:44 +0200)
committerEshel Yaron <me@eshelyaron.com>
Wed, 24 Jul 2024 16:56:37 +0000 (18:56 +0200)
* lisp/doc-view.el (doc-view-pdf/ps->png): Use
`doc-view-pdf->png-converter-function' for DVI files, too, since they
are converted to PDF earlier.

(cherry picked from commit 1aaadc8aec5272d453b996ca4b4761f3da6a17db)

lisp/doc-view.el

index 38907c2f226b65c9b8f888597f624d0b55cf037a..718428c4b7d12c8d49fac2a472dd229c8a2eddb2 100644 (file)
@@ -1328,7 +1328,7 @@ is named like ODF with the extension turned to pdf."
   "Convert PDF-PS to PNG asynchronously."
   (funcall
    (pcase doc-view-doc-type
-     ((or 'pdf 'odf 'epub 'cbz 'fb2 'xps 'oxps)
+     ((or 'pdf 'odf 'epub 'cbz 'fb2 'xps 'oxps 'dvi)
       doc-view-pdf->png-converter-function)
      ('djvu #'doc-view-djvu->tiff-converter-ddjvu)
      (_ #'doc-view-ps->png-converter-ghostscript))