From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 23 14:54:17 2018 Received: (at submit) by debbugs.gnu.org; 23 Jul 2018 18:54:17 +0000 Received: from localhost ([127.0.0.1]:54325 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fhfyK-00033i-Tz for submit@debbugs.gnu.org; Mon, 23 Jul 2018 14:54:17 -0400 Received: from eggs.gnu.org ([208.118.235.92]:35302) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fhe8c-0000Nl-2S for submit@debbugs.gnu.org; Mon, 23 Jul 2018 12:56:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fhe8V-0002IR-NT for submit@debbugs.gnu.org; Mon, 23 Jul 2018 12:56:40 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:34604) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fhe8V-0002II-JP for submit@debbugs.gnu.org; Mon, 23 Jul 2018 12:56:39 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54490) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fhe8U-0002Cn-5i for bug-auctex@gnu.org; Mon, 23 Jul 2018 12:56:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fhe8T-0002Ft-2w for bug-auctex@gnu.org; Mon, 23 Jul 2018 12:56:38 -0400 Received: from mail-pg1-x529.google.com ([2607:f8b0:4864:20::529]:41791) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fhe8S-0002Fg-Ow for bug-auctex@gnu.org; Mon, 23 Jul 2018 12:56:37 -0400 Received: by mail-pg1-x529.google.com with SMTP id z8-v6so797119pgu.8 for ; Mon, 23 Jul 2018 09:56:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=qQc2KSHjkc8jR/b3lR/5fIHl9OTZF3OZiL1VWpAjm+A=; b=azXwVyc0ao7iQlzrxFGfB8RdMQTll41H8os87nK6A3WmZfss4oR2f8jdcz5Tk5l0C8 e0Qmcfy0l873L/puQ88I9LYYuAHe4y6hQlvaaR3jnxkciqsgzc6+N3n3IQdmJmAEJU6A hHDGlj6TKFHWoaYB1851SUIzbPcSYslrLKlqxo41nVssmsxSrVRnMIAsRofiwQSbSIN4 76zsDRozK6GkhsS5REyO0HgdXCKW/HayINLLfm+u4xB+wvtKDwdTeuWSJ2Wn2Jaxoil1 IVLYWgE5PsO8hxlbAfYJdtIbNJ8oaniZ7ZkPY0jKrR2OcMRIufN9IcWPdOSU+0Dk3sWx /Tcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=qQc2KSHjkc8jR/b3lR/5fIHl9OTZF3OZiL1VWpAjm+A=; b=lgDNGRwaTgSyWggulzsrEME4xZrdzZZiRJxrB668Z3xWbSEuX/ANbKI7YotQ9mUhFZ cM/jUkUer3uc4g1GMQLyOhyPHoFV3dektUKQzPsRW9czAnRdycUpMrK2rxF0SB3+SJE1 2BlUWxG6Zn6sKkxbWVNZwELmky2A9ZGSfC/Gy18N+77VKLpKXshNkXPm4H+V23Cja5sS WRccttNFJtH4Zfwb83e+CSzhKGPcX45sUsqFwmeD+ptE/g/ULDBPyYXjPCuwbliK5IJ6 jvEW7agXRC3mdV8hPAsMKRFGz910Kcxp7dkVwGYyNXxvt4ZzmfHQrCpIy1JhSwAoKaKA Dr5Q== X-Gm-Message-State: AOUpUlFkLXGS+TJJg8bMNRAjJiphEOnKwOmYu0oUlYMZz7HMdRpNWman E+auwkGEz/CQvIWajIPmtgZ5bWTWKhHY03vebQjxuldVtZU= X-Google-Smtp-Source: AAOMgpfVtmSoJhRSdmKx6yvta004m/0TUuloJ+O8wu570Dtf7KdVh36Q5ABbyelTMlXzup/6bxR6bqn65Sbkp/+Xrdo= X-Received: by 2002:a62:8917:: with SMTP id v23-v6mr14156425pfd.127.1532364995522; Mon, 23 Jul 2018 09:56:35 -0700 (PDT) MIME-Version: 1.0 From: Jian Wang Date: Tue, 24 Jul 2018 00:56:22 +0800 Message-ID: Subject: [Windows] Cannot locate gs when the path contains space To: bug-auctex@gnu.org Content-Type: multipart/alternative; boundary="0000000000003973240571ad87e0" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Mon, 23 Jul 2018 14:54:15 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) --0000000000003973240571ad87e0 Content-Type: text/plain; charset="UTF-8" Hi, all When I try to preview on windows, the Ghostscript executable bundled with MiKTeX cannot be located since the path of MiKTeX contains a space. Thus when I open a tex buffer there will be an echoed message telling me ''c:/Program" is not a valid command. I fixed this issue by making the following change: (defcustom preview-gs-command (or ;; The GS wrapper coming with TeX Live (executable-find "rungs") ;; The MikTeX builtin GS (let ((gs (executable-find "mgs"))) ;; Check if mgs is functional for external non-MikTeX apps. ;; See http://blog.miktex.org/post/2005/04/07/Starting-mgsexe-at-the-DOS-Prompt.aspx (when (and gs (= 0 (shell-command (concat (shell-quote-argument gs) " -q -dNODISPLAY -c quit")))) gs)) ;; Windows ghostscript (executable-find "GSWIN32C.EXE") ;; standard GhostScript (executable-find "gs")) "*How to call gs for conversion from EPS. See also `preview-gs-options'." :group 'preview-gs :type 'string) I wrap the 'gs' variable with a 'shell-quote-argument' and voila! I hope this would be helpful for those who had the same issue. Best regards, James --0000000000003973240571ad87e0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi, all

When I try to preview on windows= , the Ghostscript executable bundled with MiKTeX=C2=A0cannot be located sin= ce the path of MiKTeX contains a space. Thus when I open a tex buffer there= will be an echoed message telling me ''c:/Program" is not a v= alid command.

I fixed this issue by making the following change:

(defcus= tom preview-gs-command
=C2=A0 (or ;; The GS wrapper coming with TeX Live
=C2= =A0 =C2=A0(executable-find "rungs")
=C2=A0 =C2=A0;; The MikTeX bu= iltin GS
=C2=A0 =C2=A0(let ((gs (executable-find "mgs")))
=C2=A0 =C2=A0;; Check if mgs is functional f= or external non-MikTeX apps.
= =C2=A0 =C2=A0(when (and gs (=3D 0 (shell-command (concat (shell-quote-argum= ent gs) " -q -dNODISPLAY -c quit"))))
=C2=A0 =C2=A0 =C2=A0gs))
= =C2=A0 =C2=A0;; Windows ghostscript
=C2= =A0 =C2=A0(executable-find "GSWIN32C.EXE")
=C2=A0 =C2=A0;; standar= d GhostScript
=C2=A0 =C2=A0(executable-find "gs"))
=C2=A0 "*Ho= w to call gs for conversion from EPS.=C2=A0 See also `preview-gs-options= 9;."
=C2=A0 :group 'preview-gs
=C2=A0 :type 'string)
=

I wrap the 'gs= ' variable with a 'shell-quote-argument' and voila! I hope this= would be helpful for those who had the same issue.

Best regards,

James

--0000000000003973240571ad87e0-- From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 31 04:18:56 2018 Received: (at 32251) by debbugs.gnu.org; 31 Oct 2018 08:18:56 +0000 Received: from localhost ([127.0.0.1]:56239 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gHliK-0003HE-2n for submit@debbugs.gnu.org; Wed, 31 Oct 2018 04:18:56 -0400 Received: from smtp1.inetd.co.jp ([210.129.88.11]:55898) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gHliH-0003H3-AR for 32251@debbugs.gnu.org; Wed, 31 Oct 2018 04:18:54 -0400 Received: from localhost (203-165-248-246.rev.home.ne.jp [203.165.248.246]) by smtp1.inetd.co.jp (Postfix) with ESMTPA id D341D76; Wed, 31 Oct 2018 17:18:50 +0900 (JST) From: Ikumi Keita To: Jian Wang Subject: Re: bug#32251: [Windows] Cannot locate gs when the path contains space In-reply-to: References: Comments: In-reply-to Jian Wang message dated "Tue, 24 Jul 2018 00:56:22 +0800." X-Mailer: MH-E 8.6+git; nmh 1.7.1; GNU Emacs 26.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <53335.1540973930.1@localhost> Content-Transfer-Encoding: quoted-printable Date: Wed, 31 Oct 2018 17:18:50 +0900 Message-ID: <53336.1540973930@localhost> X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 32251 Cc: 32251@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi Jian, sorry for very late response. >>>>> Jian Wang writes: > Hi, all > When I try to preview on windows, the Ghostscript executable bundled wit= h > MiKTeX cannot be located since the path of MiKTeX contains a space. Thus > when I open a tex buffer there will be an echoed message telling me > ''c:/Program" is not a valid command. > I fixed this issue by making the following change: > (defcustom preview-gs-command > (or ;; The GS wrapper coming with TeX Live > (executable-find "rungs") > ;; The MikTeX builtin GS > (let ((gs (executable-find "mgs"))) > ;; Check if mgs is functional for external non-MikTeX apps. > ;; See > http://blog.miktex.org/post/2005/04/07/Starting-mgsexe-at-the-DOS-Prompt= .aspx > (when (and gs (=3D 0 (shell-command (concat (shell-quote-argument gs)= " -q > -dNODISPLAY -c quit")))) > gs)) > ;; Windows ghostscript > (executable-find "GSWIN32C.EXE") > ;; standard GhostScript > (executable-find "gs")) > "*How to call gs for conversion from EPS. See also `preview-gs-option= s'." > :group 'preview-gs > :type 'string) Thank you for your contribution, I incorporated the above change into the git repository. Best regards, Ikumi Keita From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 01 02:05:05 2018 Received: (at control) by debbugs.gnu.org; 1 Nov 2018 06:05:05 +0000 Received: from localhost ([127.0.0.1]:57658 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gI66K-0004uE-VD for submit@debbugs.gnu.org; Thu, 01 Nov 2018 02:05:05 -0400 Received: from smtp1.inetd.co.jp ([210.129.88.11]:45180) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gI66J-0004tg-66 for control@debbugs.gnu.org; Thu, 01 Nov 2018 02:05:03 -0400 Received: from localhost (203-165-248-246.rev.home.ne.jp [203.165.248.246]) by smtp1.inetd.co.jp (Postfix) with ESMTPA id 64ABAAA for ; Thu, 1 Nov 2018 15:05:00 +0900 (JST) To: control@debbugs.gnu.org From: Ikumi Keita Subject: control message for bug #32251 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <60051.1541052299.1@localhost> Date: Thu, 01 Nov 2018 15:04:59 +0900 Message-ID: <60052.1541052299@localhost> X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 32251 fixed close 32251 From unknown Sat Aug 16 12:45:07 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 29 Nov 2018 12:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator