From: Daniel MartÃn <mardani29@yahoo.es> Date: Mon, 29 Nov 2021 14:48:03 +0000 (+0100) Subject: Use mupdf in doc-view-mode if gs is not installed X-Git-Tag: emacs-29.0.90~3639^2~17 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e3351f61529b196a5ad8c772746646a82da2f3a5;p=emacs.git 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). --- diff --git a/lisp/doc-view.el b/lisp/doc-view.el index 7e113e4f34c..11559bf2f50 100644 --- a/lisp/doc-view.el +++ b/lisp/doc-view.el @@ -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)