Fix DocView with DVI files
authorManuel Giraud <manuel@ledu-giraud.fr>
Mon, 22 Jul 2024 18:44:46 +0000 (20:44 +0200)
committerTassilo Horn <tsdh@gnu.org>
Mon, 22 Jul 2024 18:44:46 +0000 (20:44 +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.

lisp/doc-view.el

index 65ac6e007680e13694bf7661146650b0d3b1ee7b..e7d7ed4a8620ff23898464eb8feefc5d2d6ff999 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))