diff options
| author | Eli Zaretskii | 2019-07-06 14:49:23 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2019-07-06 14:49:23 +0300 |
| commit | 3cb166ad268244f253a0bf3dd180ab871d1bed55 (patch) | |
| tree | b320d3dde14253e5b008c996b738aeca75a6ef20 | |
| parent | 64684356595be58ec939939997d16bc8cf624825 (diff) | |
| download | emacs-3cb166ad268244f253a0bf3dd180ab871d1bed55.tar.gz 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)
| -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 @@ | |||
| 152 | :group 'multimedia | 152 | :group 'multimedia |
| 153 | :prefix "doc-view-") | 153 | :prefix "doc-view-") |
| 154 | 154 | ||
| 155 | (defcustom doc-view-ghostscript-program "gs" | 155 | (defcustom doc-view-ghostscript-program |
| 156 | (cond | ||
| 157 | ((memq system-type '(windows-nt ms-dos)) | ||
| 158 | "gswin32c") | ||
| 159 | (t | ||
| 160 | "gs")) | ||
| 156 | "Program to convert PS and PDF files to PNG." | 161 | "Program to convert PS and PDF files to PNG." |
| 157 | :type 'file) | 162 | :type 'file |
| 163 | :version "27.1") | ||
| 158 | 164 | ||
| 159 | (defcustom doc-view-pdfdraw-program | 165 | (defcustom doc-view-pdfdraw-program |
| 160 | (cond | 166 | (cond |