From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 02 07:53:40 2018 Received: (at submit) by debbugs.gnu.org; 2 Jun 2018 11:53:41 +0000 Received: from localhost ([127.0.0.1]:58444 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fP56K-0002U0-Mw for submit@debbugs.gnu.org; Sat, 02 Jun 2018 07:53:40 -0400 Received: from eggs.gnu.org ([208.118.235.92]:57987) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fP56J-0002Tl-Hj for submit@debbugs.gnu.org; Sat, 02 Jun 2018 07:53:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fP56D-0002m0-Js for submit@debbugs.gnu.org; Sat, 02 Jun 2018 07:53:34 -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 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:46482) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fP56D-0002la-Fb for submit@debbugs.gnu.org; Sat, 02 Jun 2018 07:53:33 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48953) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fP56C-0006Xb-4h for bug-auctex@gnu.org; Sat, 02 Jun 2018 07:53:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fP569-0002df-3o for bug-auctex@gnu.org; Sat, 02 Jun 2018 07:53:32 -0400 Received: from smtp02.univ-lille1.fr ([2001:660:4401:100::20]:46865) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fP568-0002Ym-Oh for bug-auctex@gnu.org; Sat, 02 Jun 2018 07:53:29 -0400 Received: from smtps2.univ-lille1.fr (smtps2.univ-lille1.fr [193.49.225.53]) by smtp02.univ-lille1.fr (8.14.3/8.14.3) with ESMTP id w52BrOMo017997 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sat, 2 Jun 2018 13:53:24 +0200 Received: from [192.168.0.10] (13.135.3.93.rev.sfr.net [93.3.135.13]) (authenticated bits=0) by smtps2.univ-lille1.fr (8.14.3/8.14.3/Debian-5) with ESMTP id w52BrPN1007503 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Sat, 2 Jun 2018 13:53:26 +0200 From: jfbu Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Subject: 12.1.1; Preview-DviPNG fails with filename having spaces (DviPS is used as fallback) Message-Id: <3546303F-7A45-4683-A3F1-3016DB62E08F@free.fr> Date: Sat, 2 Jun 2018 13:53:21 +0200 To: bug-auctex@gnu.org Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) X-Mailer: Apple Mail (2.1878.6) X-USTL-MailScanner-Information: Please contact the ISP for more information X-USTL-MailScanner-ID: w52BrOMo017997 X-USTL-MailScanner: Found to be clean X-USTL-MailScanner-From: jfbu@free.fr X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit 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: -6.0 (------) Hi, consider this file ---- start \documentclass{article} \def\abc{abc} \begin{document} $\abc$ \end{document} ---- stop With default engine (pdftex): Experience 1: name it as abcdefghi.tex. Switch to DVI mode. (C-cC-tC-p as PDF mode is ON by default) Ask to generate previews for all document. Answer YES to "Cache preamble?" It works. Experience 2: name it as abc def ghi.tex (so it includes spaces in = filename) Switch to DVI mode Ask to generate previews for all document. Answer YES to "Cache preamble?" It **appears to work** but in fact it doesn't:=20 .... Running `Preview-DviPNG' with ``dvipng -picky -noghostscript abc\ def\ = ghi.dvi -o "abc\ def\ ghi.prv/tmp14749czs/prev%03d.png" -D186 '' This is dvipng (dvipng (TeX Live)) 1.15 Copyright 2002-2015 Jan-Ake = Larsson [1 (preview-latex version 12.1) (preview-latex tightpage option = detected, will use its bounding box) dvipng: Fatal error, cannot open output file abc\ def\ = ghi.prv/tmp14749czs/prev001.png Preview-DviPNG exited abnormally with code 2 at Sat Jun 2 13:44:48 Running `Preview-DviPS' with ``dvips -Pwww abc\ def\ ghi.dvi -o abc\ = def\ ghi.prv/tmp14749p9y/preview.ps'' ... So the preview was generated but using ghostscript as a fallback. In the case with no spaces the process output buffer contains this .... TeX Output exited as expected with code 1 at Sat Jun 2 13:50:37 Running `Preview-DviPNG' with ``dvipng -picky -noghostscript = abcdefghi.dvi -o "abcdefghi.prv/tmp14749bHC/prev%03d.png" -D186 '' This is dvipng (dvipng (TeX Live)) 1.15 Copyright 2002-2015 Jan-Ake = Larsson [1 (preview-latex version 12.1) (preview-latex tightpage option = detected, will use its bounding box)]=20 Preview-DviPNG finished at Sat Jun 2 13:50:37 .... This is with stock AUCTeX 12.1.1. Jean-Fran=E7ois From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 08 01:02:43 2018 Received: (at 31684) by debbugs.gnu.org; 8 Jun 2018 05:02:43 +0000 Received: from localhost ([127.0.0.1]:38597 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fR9Xu-0002NU-LJ for submit@debbugs.gnu.org; Fri, 08 Jun 2018 01:02:42 -0400 Received: from smtp1.inetd.co.jp ([210.129.88.11]:50392) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fR9Xs-0002NK-Hy for 31684@debbugs.gnu.org; Fri, 08 Jun 2018 01:02:41 -0400 Received: from localhost (210-20-196-135.rev.home.ne.jp [210.20.196.135]) by smtp1.inetd.co.jp (Postfix) with ESMTPA id 0BE9D5F; Fri, 8 Jun 2018 14:02:37 +0900 (JST) From: Ikumi Keita To: jfbu Subject: Re: bug#31684: 12.1.1; Preview-DviPNG fails with filename having spaces (DviPS is used as fallback) In-reply-to: <3546303F-7A45-4683-A3F1-3016DB62E08F@free.fr> References: <3546303F-7A45-4683-A3F1-3016DB62E08F@free.fr> Comments: In-reply-to jfbu message dated "Sat, 02 Jun 2018 13:53:21 +0200." 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: <81562.1528434156.1@localhost> Content-Transfer-Encoding: quoted-printable Date: Fri, 08 Jun 2018 14:02:36 +0900 Message-ID: <81565.1528434156@localhost> X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 31684 Cc: 31684@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 Jean and all, >>>>> jfbu writes: > Experience 2: name it as abc def ghi.tex (so it includes spaces in filen= ame) > Switch to DVI mode > Ask to generate previews for all document. > Answer YES to "Cache preamble?" > It **appears to work** but in fact it doesn't: = > .... > Running `Preview-DviPNG' with ``dvipng -picky -noghostscript abc\ def\ g= hi.dvi -o "abc\ def\ ghi.prv/tmp14749czs/prev%03d.png" -D186 '' > This is dvipng (dvipng (TeX Live)) 1.15 Copyright 2002-2015 Jan-Ake Lars= son > [1 (preview-latex version 12.1) (preview-latex tightpage option detected= , will use its bounding box) > dvipng: Fatal error, cannot open output file abc\ def\ ghi.prv/tmp14749c= zs/prev001.png Confirmed. It seems the reason is that `preview-dvipng-command' contains spurious quotes. Various `preview-*-command' are defined as: (defcustom preview-dvipng-command "dvipng -picky -noghostscript %d -o \"%m/prev%%03d.png\"" ... (defcustom preview-dvips-command "dvips -Pwww -i -E %d -o %m/preview.000" ... (defcustom preview-fast-dvips-command "dvips -Pwww %d -o %m/preview.ps" ... (defcustom preview-pdf2dsc-command "pdf2dsc %s.pdf %m/preview.dsc" ... . They don't have quotes around %m except `preview-dvipng-command'. Removing the quotes makes dvipng works with file name with space on my side. In addition, I noticed during test runs that single quotes in `preview-dvipng-color-string' choke dvipng on w32 platform because single quotes are not consumed by w32 shell (cmd.exe). Could you please test the following patch? (It is for preview.el.in in the source files, not for preview.el.) Regards, Ikumi Keita diff --git a/preview.el.in b/preview.el.in --- a/preview.el.in +++ b/preview.el.in @@ -522,7 +522,7 @@ be consulted recursively.") = (defcustom preview-dvipng-command - "dvipng -picky -noghostscript %d -o \"%m/prev%%03d.png\"" + "dvipng -picky -noghostscript %d -o %m/prev%%03d.png" "*Command used for converting to separate PNG images. = You might specify options for converting to other image types, @@ -796,13 +796,13 @@ (border (aref colors 3))) (concat (and bg - (format "--bg 'rgb %s' " + (format "--bg \"rgb %s\" " (mapconcat #'preview-gs-color-value bg " "))) (and fg - (format "--fg 'rgb %s' " + (format "--fg \"rgb %s\" " (mapconcat #'preview-gs-color-value fg " "))) (and mask border - (format "--bd 'rgb %s' " + (format "--bd \"rgb %s\" " (mapconcat #'preview-gs-color-value mask " "))) (and border (format "--bd %d" (max 1 (round (/ (* res border) 72.0)))))))) From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 08 05:04:05 2018 Received: (at 31684) by debbugs.gnu.org; 8 Jun 2018 09:04:05 +0000 Received: from localhost ([127.0.0.1]:38700 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fRDJU-0008Ar-U7 for submit@debbugs.gnu.org; Fri, 08 Jun 2018 05:04:05 -0400 Received: from smtp7.tech.numericable.fr ([82.216.111.43]:57430) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fRDJT-0008Ai-IA for 31684@debbugs.gnu.org; Fri, 08 Jun 2018 05:04:04 -0400 Received: from Ordinateur-Burnolien.local (13.135.3.93.rev.sfr.net [93.3.135.13]) by smtp7.tech.numericable.fr (Postfix) with ESMTP id 66A16627E4; Fri, 8 Jun 2018 11:04:01 +0200 (CEST) Subject: Re: bug#31684: 12.1.1; Preview-DviPNG fails with filename having spaces (DviPS is used as fallback) To: Ikumi Keita References: <3546303F-7A45-4683-A3F1-3016DB62E08F@free.fr> <81565.1528434156@localhost> From: jfbu Message-ID: Date: Fri, 8 Jun 2018 11:04:00 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <81565.1528434156@localhost> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: fr Content-Transfer-Encoding: 8bit X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedthedrjeelucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecupfgfoffgtffkveetuefngfdpqfgfvfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhepuffvfhfhkffffgggjggtgfesthekredttdefjeenucfhrhhomhepjhhfsghuuceojhhfsghusehfrhgvvgdrfhhrqeenucffohhmrghinhepvghlrdhinhenucfrrghrrghmpehmohguvgepshhmthhpohhuthenucevlhhushhtvghrufhiiigvpedt X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 31684 Cc: 31684@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.7 (-) Hi Keita Le 08/06/2018 à 07:02, Ikumi Keita a écrit : > Hi Jean and all, > >>>>>> jfbu writes: >> Experience 2: name it as abc def ghi.tex (so it includes spaces in filename) >> Switch to DVI mode >> Ask to generate previews for all document. >> Answer YES to "Cache preamble?" >> It **appears to work** but in fact it doesn't: > >> .... >> Running `Preview-DviPNG' with ``dvipng -picky -noghostscript abc\ def\ ghi.dvi -o "abc\ def\ ghi.prv/tmp14749czs/prev%03d.png" -D186 '' >> This is dvipng (dvipng (TeX Live)) 1.15 Copyright 2002-2015 Jan-Ake Larsson >> [1 (preview-latex version 12.1) (preview-latex tightpage option detected, will use its bounding box) >> dvipng: Fatal error, cannot open output file abc\ def\ ghi.prv/tmp14749czs/prev001.png > > Confirmed. It seems the reason is that `preview-dvipng-command' > contains spurious quotes. Various `preview-*-command' are defined as: > (defcustom preview-dvipng-command > "dvipng -picky -noghostscript %d -o \"%m/prev%%03d.png\"" > ... > (defcustom preview-dvips-command > "dvips -Pwww -i -E %d -o %m/preview.000" > ... > (defcustom preview-fast-dvips-command > "dvips -Pwww %d -o %m/preview.ps" > ... > (defcustom preview-pdf2dsc-command > "pdf2dsc %s.pdf %m/preview.dsc" > ... > . They don't have quotes around %m except `preview-dvipng-command'. > Removing the quotes makes dvipng works with file name with space on my > side. > > In addition, I noticed during test runs that single quotes in > `preview-dvipng-color-string' choke dvipng on w32 platform because > single quotes are not consumed by w32 shell (cmd.exe). > > Could you please test the following patch? (It is for preview.el.in in > the source files, not for preview.el.) I confirm problem is fixed at my locale for the MWE I posted initially: (mac os x 10.9.5) Here is transcript: > ... > (see the transcript file for additional information) > Output written on "abc def ghi.dvi" (1 page, 1584 bytes). > Transcript written on "abc def ghi.log". > > TeX Output exited as expected with code 1 at Fri Jun 8 10:57:23 > Running `Preview-DviPNG' with ``dvipng -picky -noghostscript abc\ def\ ghi.dvi -o abc\ def\ ghi.prv/tmpDOwfcQ/prev%03d.png -D186 '' > This is dvipng (dvipng (TeX Live)) 1.15 Copyright 2002-2015 Jan-Ake Larsson > [1 (preview-latex version 12.1) (preview-latex tightpage option detected, will use its bounding box)] > > Preview-DviPNG finished at Fri Jun 8 10:57:23 My testing does not extend to that part of your patch dealing with options but I trust it does the right thing... Best, Jean-François From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 08 09:09:33 2018 Received: (at 31684) by debbugs.gnu.org; 8 Jun 2018 13:09:33 +0000 Received: from localhost ([127.0.0.1]:38924 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fRH93-0003QG-9B for submit@debbugs.gnu.org; Fri, 08 Jun 2018 09:09:33 -0400 Received: from smtp1.inetd.co.jp ([210.129.88.11]:59308) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fRH90-0003Q6-Sz for 31684@debbugs.gnu.org; Fri, 08 Jun 2018 09:09:31 -0400 Received: from localhost (210-20-196-135.rev.home.ne.jp [210.20.196.135]) by smtp1.inetd.co.jp (Postfix) with ESMTPA id 36F95C2; Fri, 8 Jun 2018 22:09:28 +0900 (JST) From: Ikumi Keita To: jfbu Subject: Re: bug#31684: 12.1.1; Preview-DviPNG fails with filename having spaces (DviPS is used as fallback) In-reply-to: References: <3546303F-7A45-4683-A3F1-3016DB62E08F@free.fr> <81565.1528434156@localhost> Comments: In-reply-to jfbu message dated "Fri, 08 Jun 2018 11:04:00 +0200." 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: <85498.1528463367.1@localhost> Content-Transfer-Encoding: quoted-printable Date: Fri, 08 Jun 2018 22:09:27 +0900 Message-ID: <85499.1528463367@localhost> X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 31684 Cc: 31684@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 Jean and all, Thank you for confirmation. I think this change is small and rather safe, so I'll commit it as soon as I finish some documentation. Regards, Ikumi Keita >>>>> jfbu writes: >> . They don't have quotes around %m except `preview-dvipng-command'. >> Removing the quotes makes dvipng works with file name with space on my >> side. >> = >> In addition, I noticed during test runs that single quotes in >> `preview-dvipng-color-string' choke dvipng on w32 platform because >> single quotes are not consumed by w32 shell (cmd.exe). >> = >> Could you please test the following patch? (It is for preview.el.in in >> the source files, not for preview.el.) > I confirm problem is fixed at my locale for the MWE I posted initially: > (mac os x 10.9.5) > Here is transcript: >> ... >> (see the transcript file for additional information) >> Output written on "abc def ghi.dvi" (1 page, 1584 bytes). >> Transcript written on "abc def ghi.log". >> = >> TeX Output exited as expected with code 1 at Fri Jun 8 10:57:23 >> Running `Preview-DviPNG' with ``dvipng -picky -noghostscript abc\ def\ = ghi.dvi -o abc\ def\ ghi.prv/tmpDOwfcQ/prev%03d.png -D186 '' >> This is dvipng (dvipng (TeX Live)) 1.15 Copyright 2002-2015 Jan-Ake Lar= sson >> [1 (preview-latex version 12.1) (preview-latex tightpage option >> detected, will use its bounding box)] = >> = >> Preview-DviPNG finished at Fri Jun 8 10:57:23 > My testing does not extend to that part of your patch dealing with optio= ns > but I trust it does the right thing... From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 31 09:24:31 2018 Received: (at control) by debbugs.gnu.org; 31 Oct 2018 13:24:31 +0000 Received: from localhost ([127.0.0.1]:56331 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gHqU3-0004SV-1E for submit@debbugs.gnu.org; Wed, 31 Oct 2018 09:24:31 -0400 Received: from smtp1.inetd.co.jp ([210.129.88.11]:60340) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gHqU0-0004SM-VS for control@debbugs.gnu.org; Wed, 31 Oct 2018 09:24:29 -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 4D7EF88 for ; Wed, 31 Oct 2018 22:24:26 +0900 (JST) To: control@debbugs.gnu.org From: Ikumi Keita Subject: control message for bug #31684 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <56099.1540992266.1@localhost> Date: Wed, 31 Oct 2018 22:24:26 +0900 Message-ID: <56100.1540992266@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 (-) close 31684 From unknown Wed Sep 10 10:35:35 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