[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master e3351f6 2/2: Use mupdf in doc-view-mode if gs is not installed
From: |
Lars Ingebrigtsen |
Subject: |
master e3351f6 2/2: Use mupdf in doc-view-mode if gs is not installed |
Date: |
Mon, 29 Nov 2021 09:48:45 -0500 (EST) |
branch: master
commit e3351f61529b196a5ad8c772746646a82da2f3a5
Author: Daniel MartÃn <mardani29@yahoo.es>
Commit: Lars Ingebrigtsen <larsi@gnus.org>
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).
---
lisp/doc-view.el | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/lisp/doc-view.el b/lisp/doc-view.el
index 7e113e4..11559bf 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)