]> git.eshelyaron.com Git - emacs.git/commitdiff
Use mupdf in doc-view-mode if gs is not installed
authorDaniel Martín <mardani29@yahoo.es>
Mon, 29 Nov 2021 14:48:03 +0000 (15:48 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Mon, 29 Nov 2021 14:48:03 +0000 (15:48 +0100)
* lisp/doc-view.el (doc-view-mode-p): Use mupdf to render PDF and
related formats if gs is not installed (bug#52170).

lisp/doc-view.el

index 7e113e4f34c3019ce098e9b5f07622a8e082ac5e..11559bf2f5074a51d00f9218d3b2a40ef30c1a0b 100644 (file)
@@ -811,9 +811,10 @@ OpenDocument format)."
                  (and doc-view-dvipdfm-program
                       (executable-find doc-view-dvipdfm-program)))))
        ((memq type '(postscript ps eps pdf))
-        ;; FIXME: allow mupdf here
-        (and doc-view-ghostscript-program
-             (executable-find doc-view-ghostscript-program)))
+        (or (and doc-view-ghostscript-program
+                 (executable-find doc-view-ghostscript-program))
+             (and doc-view-pdfdraw-program
+                  (executable-find doc-view-pdfdraw-program))))
        ((eq type 'odf)
         (and doc-view-odf->pdf-converter-program
              (executable-find doc-view-odf->pdf-converter-program)