GNU bug report logs - #36357
Wrong Ghostscript program name on MS Win

Previous Next

Package: emacs;

Reported by: Sebastian Urban <mrsebastianurban <at> gmail.com>

Date: Mon, 24 Jun 2019 16:05:02 UTC

Severity: minor

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Sebastian Urban <mrsebastianurban <at> gmail.com>
To: Arash Esbati <arash <at> gnu.org>, Tassilo Horn <tsdh <at> gnu.org>
Cc: 36357 <at> debbugs.gnu.org
Subject: bug#36357: Wrong Ghostscript program name on MS Win
Date: Tue, 21 Apr 2020 19:51:45 +0200
Thanks Arash for also looking into it, but part of the patch seems to
be unnecessary.  I'm writing about these lines:

# ;; The GS wrapper coming with TeX Live
# ((executable-find "rungs.exe")
#  "rungs")
# ;; The MikTeX builtin GS
# ;; Check if mgs is functional for external non-MikTeX apps.  Was
# ;; available under:
# ;; 
http://blog.miktex.org/post/2005/04/07/Starting-mgsexe-at-the-DOS-Prompt.aspx
# ((and (executable-find "mgs.exe")
#       (= 0 (shell-command
#             (concat (shell-quote-argument (executable-find "mgs.exe"))
#                     " -q -dNODISPLAY -c quit"))))
#  "mgs")

They probably belong to AUCTeX only and do nothing in Doc-view.  So
they should be removed.

I also looked into doc-view.el and right under this variable I found
"defcustom doc-view-pdfdraw-program", which looks exactly like
something we are (may be?) looking for.

To sum things up "doc-view-ghostscript-program" could look like this:

(defcustom doc-view-ghostscript-program
  (cond
   ((executable-find "gswin64c.exe") "gswin64c")
   ((executable-find "gswin32c.exe") "gswin32c")
   (t "gs"))
  "Program to convert PS and PDF files to PNG."
  :type 'file
  :version "27.1")

PS If it's alright could it be installed in 27.1?  It's not that big
of a change.


S. U.




This bug report was last modified 5 years and 30 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.