Use mupdf in doc-view-mode if gs is not installed

* lisp/doc-view.el (doc-view-mode-p): Use mupdf to render PDF and
related formats if gs is not installed (bug#52170).
This commit is contained in:
Daniel Martín 2021-11-29 15:48:03 +01:00 committed by Lars Ingebrigtsen
parent 247ed6ccbc
commit e3351f6152

View 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)