From 3cb166ad268244f253a0bf3dd180ab871d1bed55 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 6 Jul 2019 14:49:23 +0300 Subject: [PATCH] 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 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 -- 2.39.2