From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Sebastian Urban Newsgroups: gmane.emacs.bugs Subject: bug#36357: Wrong Ghostscript program name on MS Win Date: Tue, 21 Apr 2020 19:51:45 +0200 Message-ID: References: <90d6e546-8058-1cb3-1d2c-da31f9af0edc@gmail.com> <4291e1bb-c061-39bc-818a-7243544ec52b@gmail.com> <86y2qpj2nv.fsf@gnu.org> <86d0817zdd.fsf@gnu.org> <3f0dcce2-8837-4ef9-8981-3aa5864ca15f@beta.fastmail.com> <868sip7yyi.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="41114"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 Cc: 36357@debbugs.gnu.org To: Arash Esbati , Tassilo Horn Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Apr 21 19:52:13 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jQx49-000AaO-Lw for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 21 Apr 2020 19:52:13 +0200 Original-Received: from localhost ([::1]:33874 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jQx48-000229-Nd for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 21 Apr 2020 13:52:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38610) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jQx3z-000203-2H for bug-gnu-emacs@gnu.org; Tue, 21 Apr 2020 13:52:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jQx3y-0005Fx-Ir for bug-gnu-emacs@gnu.org; Tue, 21 Apr 2020 13:52:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39160) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jQx3y-0005Fr-62 for bug-gnu-emacs@gnu.org; Tue, 21 Apr 2020 13:52:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jQx3y-0008Tr-30 for bug-gnu-emacs@gnu.org; Tue, 21 Apr 2020 13:52:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Sebastian Urban Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 21 Apr 2020 17:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36357 X-GNU-PR-Package: emacs Original-Received: via spool by 36357-submit@debbugs.gnu.org id=B36357.158749151732584 (code B ref 36357); Tue, 21 Apr 2020 17:52:02 +0000 Original-Received: (at 36357) by debbugs.gnu.org; 21 Apr 2020 17:51:57 +0000 Original-Received: from localhost ([127.0.0.1]:50706 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jQx3t-0008TU-5o for submit@debbugs.gnu.org; Tue, 21 Apr 2020 13:51:57 -0400 Original-Received: from mail-wr1-f45.google.com ([209.85.221.45]:46675) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jQx3r-0008TF-HG for 36357@debbugs.gnu.org; Tue, 21 Apr 2020 13:51:56 -0400 Original-Received: by mail-wr1-f45.google.com with SMTP id f13so17421165wrm.13 for <36357@debbugs.gnu.org>; Tue, 21 Apr 2020 10:51:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=8Hzme+x77UGgSImOLddosM6ImV9l0pHXlwnhKODMb84=; b=NErdZpFRbpeUy9UJ0jM94hFp0hh0+NLqpVJ3TDTfn4Zji8aUWoQlxe7httd0gecsMm 30sUrpvNrb26ak2CSVULan+sloWJ4dI8SD1iC8c2WqRv0aMgtalBVCza/74W3DaR3FNx Sj0uTr7hR2IAbfmXx7hZBIqOE0FDFlQC2LIXeAabjxLOdBj7CVQQM6/Vl71oq7zP+G9f rmyJrXUbwEXnZ9245saRYbjh4et+IMdkdpDgt8zmS3+FrFryMCbhrcNKMLAsEjjYxuE4 0Cp8GINNhaj5EiuBkYx0OersJTj99aYNAdqEZj7wlfSFaYOQtzojf0SBHM2uwKG2+Ysv K69w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=8Hzme+x77UGgSImOLddosM6ImV9l0pHXlwnhKODMb84=; b=BGY+6v6aW6xIjxtC9fdVlckcgr8eplPM3ime/i+uK2V4ATMF6HEgire5kGemUyKtfo ETVsyjbWY2kSbdvdbnPnckTuJ6GLAKBy2VF8FMG6f85d7gooc2i99QlO1ak0uMNhORcN 48B73Ap1yypCA356RGyOGpfRHBCILrYeqAgli2sA55kgPH24XIw94sqGrtic8MnWtesG aX1y3SLrRqQbVN+LRFO3ZwyPHHiEbfMP9HyeA3J6s0XloBxv2MfsMHQCD6ccT5tgNKrg 4xVFUw24CKe1Q4p6Tv0waWH5+GbQRo8B650dY0nr45coQglZdsXzpxW/aGL+fZJgq6qq 4xuw== X-Gm-Message-State: AGi0PuaZyF+7I0D4qN5EnXqythDwW/1Gwe3CKEHBTzsuMFqogRLNuMr4 3FuFQXFpgmq2x5FaBOnJwy/Bwjk6 X-Google-Smtp-Source: APiQypILjGtJr/+nOdvyrWcIaqhBTi7WWstz27CTDJQLbiml0e+1obUdLwcWCWVDjgm2VqYgxdNXTQ== X-Received: by 2002:adf:fc4f:: with SMTP id e15mr25316409wrs.415.1587491509072; Tue, 21 Apr 2020 10:51:49 -0700 (PDT) Original-Received: from ?IPv6:2a00:f41:1cf4:16d5:341b:25b4:977f:92a8? ([2a00:f41:1cf4:16d5:341b:25b4:977f:92a8]) by smtp.gmail.com with ESMTPSA id k9sm4625384wrd.17.2020.04.21.10.51.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 21 Apr 2020 10:51:48 -0700 (PDT) In-Reply-To: <868sip7yyi.fsf@gnu.org> Content-Language: en-GB X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:178759 Archived-At: 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.