emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 3cb166a: Improve the default value of 'doc-view-gho


From: Eli Zaretskii
Subject: [Emacs-diffs] master 3cb166a: Improve the default value of 'doc-view-ghostscript-program'
Date: Sat, 6 Jul 2019 07:50:13 -0400 (EDT)

branch: master
commit 3cb166ad268244f253a0bf3dd180ab871d1bed55
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>

    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)
---
 lisp/doc-view.el | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/lisp/doc-view.el b/lisp/doc-view.el
index 7ab8539..78895eb 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]