summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2019-07-06 14:49:23 +0300
committerEli Zaretskii <eliz@gnu.org>2019-07-06 14:49:23 +0300
commit3cb166ad268244f253a0bf3dd180ab871d1bed55 (patch)
treeb320d3dde14253e5b008c996b738aeca75a6ef20
parent64684356595be58ec939939997d16bc8cf624825 (diff)
downloademacs-3cb166ad268244f253a0bf3dd180ab871d1bed55.tar.gz
Improve the default value of 'doc-view-ghostscript-program'
* lisp/doc-view.el (doc-view-ghostscript-program): Make the default value dependent on the underlying OS. (Bug#36357)
-rw-r--r--lisp/doc-view.el10
1 files changed, 8 insertions, 2 deletions
diff --git a/lisp/doc-view.el b/lisp/doc-view.el
index 7ab8539052a..78895ebd7a6 100644
--- a/lisp/doc-view.el
+++ b/lisp/doc-view.el
@@ -152,9 +152,15 @@
:group 'multimedia
:prefix "doc-view-")
-(defcustom doc-view-ghostscript-program "gs"
+(defcustom doc-view-ghostscript-program
+ (cond
+ ((memq system-type '(windows-nt ms-dos))
+ "gswin32c")
+ (t
+ "gs"))
"Program to convert PS and PDF files to PNG."
- :type 'file)
+ :type 'file
+ :version "27.1")
(defcustom doc-view-pdfdraw-program
(cond