GNU bug report logs -
#36357
Wrong Ghostscript program name on MS Win
Previous Next
Full log
View this message in rfc822 format
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.