diff options
author | Eli Zaretskii <eliz@gnu.org> | 2019-07-06 14:49:23 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2019-07-06 14:49:23 +0300 |
commit | 3cb166ad268244f253a0bf3dd180ab871d1bed55 (patch) | |
tree | b320d3dde14253e5b008c996b738aeca75a6ef20 /lisp/doc-view.el | |
parent | 64684356595be58ec939939997d16bc8cf624825 (diff) | |
download | emacs-3cb166ad268244f253a0bf3dd180ab871d1bed55.tar.gz emacs-3cb166ad268244f253a0bf3dd180ab871d1bed55.tar.bz2 emacs-3cb166ad268244f253a0bf3dd180ab871d1bed55.zip |
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)
Diffstat (limited to 'lisp/doc-view.el')
-rw-r--r-- | lisp/doc-view.el | 10 |
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 |