From unknown Sun Jun 22 17:12:29 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#65628 <65628@debbugs.gnu.org> To: bug#65628 <65628@debbugs.gnu.org> Subject: Status: Document preview fails with long filenames Reply-To: bug#65628 <65628@debbugs.gnu.org> Date: Mon, 23 Jun 2025 00:12:29 +0000 retitle 65628 Document preview fails with long filenames reassign 65628 auctex submitter 65628 John Holman severity 65628 normal tag 65628 notabug thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 30 12:36:00 2023 Received: (at submit) by debbugs.gnu.org; 30 Aug 2023 16:36:00 +0000 Received: from localhost ([127.0.0.1]:53840 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qbOAg-0007MT-Kv for submit@debbugs.gnu.org; Wed, 30 Aug 2023 12:36:00 -0400 Received: from lists.gnu.org ([2001:470:142::17]:57266) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qbLpA-0003Tz-Ls for submit@debbugs.gnu.org; Wed, 30 Aug 2023 10:05:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qbLox-0005um-LR for bug-auctex@gnu.org; Wed, 30 Aug 2023 10:05:23 -0400 Received: from mail-lj1-x22e.google.com ([2a00:1450:4864:20::22e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qbLot-0005ym-IH for bug-auctex@gnu.org; Wed, 30 Aug 2023 10:05:23 -0400 Received: by mail-lj1-x22e.google.com with SMTP id 38308e7fff4ca-2b9c907bc68so84983201fa.2 for ; Wed, 30 Aug 2023 07:05:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693404315; x=1694009115; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=BOtPSfwcjOqVvz94lsFTWG4NfdLIy4tGU9Y3ug4kyak=; b=AkVtQamPkblOxvNCavfo7DsRRVTGb7rTIaRmozMJ+M/8396izY4/1FRpqUytY15joI MC4e/9aLvZ9pGyg3LE6XxcjVJCLhSQGetNMXBn9AddTgvDZbWNi3pAjrKq9nRuGnAFAk +qZn4tRIkiOejNIU5387fSHZHm9hOAf3pvx2XYvzN3HaHFOPXNjOw28ykvDvUk5nyHdR XF4mozoNg5eYMlqBc/DtLq7FOIDTcTX/7lnpFEL4Xw+E7xlzy6a7cNOt10w0zHz3aqSl SG+phoxKz1lFVNXQL1wkGdwo1okYWGwotsoUxLuby8aNwv/b0eFkpYgZ2hmgxcoQctOR mHOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693404315; x=1694009115; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=BOtPSfwcjOqVvz94lsFTWG4NfdLIy4tGU9Y3ug4kyak=; b=WKv2wXlr+5DsiRU794lDSAge9vYKS4PxQ7EefR+LeZf5vdlWLqEaKyqBi7G7iZdM4c kH93GFFC5Uic4WadT/DOJmNqb2KqtL58SHvOTKRWeE/dVNaBvLElwXoIcIdaPRs1lVHH rhazt7PHUcoXmwVT/1/KJQbYb1bM9K9TVXDdFMjdS3Cikydg7ms+FbW9qVpQddEyHDA6 ptvFusgUBZ/Aa9FmqvgWggTFla6UZofwN/R4rW+vikAgGHKbjtoRb2o9Hqjc2vtEPhaJ 93okEdMx5AvL5+3O2MurS/21y8kiKGNSnjQ254DsS/YkhfhMO8BFWpQuQjXhBIh1F7Ua rAXA== X-Gm-Message-State: AOJu0YxVJAHv7YatpCDLv/Jc/dpAkfaieBUYQ8epTmlrCqaUNLOPbDE9 9+zngTGzW1bhBbMKFlPBQfvlKwlQ6AUWz6fBxUuS5jDUU6I= X-Google-Smtp-Source: AGHT+IEk8M9Ua6pkLpZ33SJbnB71auUI75enLNRVG/2BKldYhIZEFftJdfzwAM4dBQkfxPQImeuK6VskjOLkJb/jo80= X-Received: by 2002:a2e:7317:0:b0:2bc:ba71:ddf2 with SMTP id o23-20020a2e7317000000b002bcba71ddf2mr1724697ljc.15.1693404314848; Wed, 30 Aug 2023 07:05:14 -0700 (PDT) MIME-Version: 1.0 From: John Holman Date: Wed, 30 Aug 2023 15:05:03 +0100 Message-ID: Subject: Document preview fails with long filenames To: bug-auctex@gnu.org Content-Type: multipart/alternative; boundary="000000000000a5d5ee0604246ac1" Received-SPF: pass client-ip=2a00:1450:4864:20::22e; envelope-from=john.g.holman@gmail.com; helo=mail-lj1-x22e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 30 Aug 2023 12:35:53 -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: -0.0 (/) --000000000000a5d5ee0604246ac1 Content-Type: text/plain; charset="UTF-8" Hi. I'm not sure that the problem was captured in the log below created by preview-report-bug so a few more details first: Running auctex on windows 11 with MiKTeX Test file contents (but most files containing maths seem to trigger the problem) \documentclass{article} \begin{document} \(x=y\) \end{document} Document preview works when the filename has no more than 22 characters, e.g. test.tex, but fails with message "Ghostscript filter: No bounding box" when the filename has more, e.g. 01234567890123456789012.tex. However buffer preview always works. When document preview fails the maths sections are replaced with the roadworks signs indefinitely. The 01234567890123456789012.prv directory is created containing a temp folder containing a preview.dsc file but no png images. The rungs.exe and mgs.exe processes don't exit until killed manually or emacs is closed. The contents of the *.. output* buffer are then Running `Preview-LaTeX' on `012345678901234546789012' with ``pdflatex -file-line-error "\nonstopmode\nofiles\PassOptionsToPackage{active,tightpage,auctex}{preview}\AtBeginDocument{\ifx\ifPreview\undefined\RequirePackage[displaymath,floats,graphics,textmath,sections,footnotes]{preview}[2004/11/05]\fi}" "\input" "\detokenize{" "012345678901234546789012.tex" "}"'' This is pdfTeX, Version 3.141592653-2.6-1.40.25 (MiKTeX 23.5) (preloaded format=pdflatex.fmt) restricted \write18 enabled. entering extended mode LaTeX2e <2023-06-01> patch level 1 L3 programming layer <2023-08-11> No auxiliary output files. (012345678901234546789012.tex (C:\Users\johng\AppData\Local\Programs\MiKTeX\tex/latex/base\article.cls Document Class: article 2023/05/17 v1.4n Standard LaTeX document class (C:\Users\johng\AppData\Local\Programs\MiKTeX\tex/latex/base\size10.clo)) (C:\Users\johng\AppData\Local\Programs\MiKTeX\tex/latex/l3backend\l3backend-pdf tex.def) No file 012345678901234546789012.aux. (c:/Users/johng/.emacs.d/elpa/auctex-13.2.1/latex\preview.sty (C:\Users\johng\AppData\Local\Programs\MiKTeX\tex/latex/luatex85\luatex85.sty) (c:/Users/johng/.emacs.d/elpa/auctex-13.2.1/latex\prtightpage.def) (c:/Users/johng/.emacs.d/elpa/auctex-13.2.1/latex\prauctex.def No auxiliary output files. (c:/Users/johng/.emacs.d/elpa/auctex-13.2.1/latex\prauctex.cfg)) (c:/Users/johng/.emacs.d/elpa/auctex-13.2.1/latex\prfootnotes.def) Preview: Fontsize 10pt Preview: PDFoutput 1 ) 012345678901234546789012.tex:4: Preview: Snippet 1 started. <-><-> l.4 \( x=y\) Preview: Tightpage -32891 -32891 32891 32891 012345678901234546789012.tex:4: Preview: Snippet 1 ended.(282168+127431x1593186 ). <-><-> l.4 \(x=y\) [1{C:/Users/johng/AppData/Local/MiKTeX/fonts/map/pdftex/pdftex.map}] ) (see the transcript file for additional information) Output written on 012345678901234546789012.pdf (1 page, 17918 bytes). Transcript written on 012345678901234546789012.log. TeX Output exited as expected with code 1 at Wed Aug 30 14:49:41 Running `Preview-PDF2DSC' with ``pdf2dsc "012345678901234546789012.pdf" "012345678901234546789012.prv/tmpqz9sI5"/preview.dsc'' Preview-PDF2DSC finished at Wed Aug 30 14:49:42 Running `Preview-Ghostscript' with ``"c:/Users/johng/AppData/Local/Programs/MiKTeX/miktex/bin/x64/rungs.exe" ^"-sOutputFile=012345678901234546789012.prv/tmpqz9sI5/pr1-^%d.png^" "-q" "-dDELAYSAFER" "-dNOPAUSE" "-DNOPLATFONTS" "-dPrinted" "-dTextAlphaBits=4" "-dGraphicsAlphaBits=4" "-sDEVICE=png16m" "-r106.74x106.68"'' Ghostscript filter: No bounding box === Emacs : GNU Emacs 29.1 (build 2, x86_64-w64-mingw32) of 2023-08-02 Package: 13.2.1 Run buffer contents: Running `Preview-LaTeX' on `012345678901234546789012' with ``pdflatex -file-line-error "\nonstopmode\nofiles\PassOptionsToPackage{active,tightpage,auctex}{preview}\AtBeginDocument{\ifx\ifPreview\undefined\RequirePackage[displaymath,floats,graphics,textmath,sections,footnotes]{preview}[2004/11/05]\fi}" "\input" "\detokenize{" "012345678901234546789012.tex" "}"'' This is pdfTeX, Version 3.141592653-2.6-1.40.25 (MiKTeX 23.5) (preloaded format=pdflatex.fmt) restricted \write18 enabled. entering extended mode LaTeX2e <2023-06-01> patch level 1 L3 programming layer <2023-08-11> No auxiliary output files. (012345678901234546789012.tex (C:\Users\johng\AppData\Local\Programs\MiKTeX\tex/latex/base\article.cls Document Class: article 2023/05/17 v1.4n Standard LaTeX document class (C:\Users\johng\AppData\Local\Programs\MiKTeX\tex/latex/base\size10.clo)) (C:\Users\johng\AppData\Local\Programs\MiKTeX\tex/latex/l3backend\l3backend-pdf tex.def) No file 012345678901234546789012.aux. (c:/Users/johng/.emacs.d/elpa/auctex-13.2.1/latex\preview.sty (C:\Users\johng\AppData\Local\Programs\MiKTeX\tex/latex/luatex85\luatex85.sty) (c:/Users/johng/.emacs.d/elpa/auctex-13.2.1/latex\prtightpage.def) (c:/Users/johng/.emacs.d/elpa/auctex-13.2.1/latex\prauctex.def No auxiliary output files. (c:/Users/johng/.emacs.d/elpa/auctex-13.2.1/latex\prauctex.cfg)) (c:/Users/johng/.emacs.d/elpa/auctex-13.2.1/latex\prfootnotes.def) Preview: Fontsize 10pt Preview: PDFoutput 1 ) 012345678901234546789012.tex:4: Preview: Snippet 1 started. <-><-> l.4 \( x=y\) Preview: Tightpage -32891 -32891 32891 32891 012345678901234546789012.tex:4: Preview: Snippet 1 ended.(282168+127431x1593186 ). <-><-> l.4 \(x=y\) [1{C:/Users/johng/AppData/Local/MiKTeX/fonts/map/pdftex/pdftex.map}] ) (see the transcript file for additional information) Output written on 012345678901234546789012.pdf (1 page, 17918 bytes). Transcript written on 012345678901234546789012.log. TeX Output exited as expected with code 1 at Wed Aug 30 14:44:32 Running `Preview-PDF2DSC' with ``pdf2dsc "012345678901234546789012.pdf" "012345678901234546789012.prv/tmp3SwYcB"/preview.dsc'' Preview-PDF2DSC finished at Wed Aug 30 14:44:32 Running `Preview-Ghostscript' with ``"c:/Users/johng/AppData/Local/Programs/MiKTeX/miktex/bin/x64/rungs.exe" ^"-sOutputFile=012345678901234546789012.prv/tmp3SwYcB/pr1-^%d.png^" "-q" "-dDELAYSAFER" "-dNOPAUSE" "-DNOPLATFONTS" "-dPrinted" "-dTextAlphaBits=4" "-dGraphicsAlphaBits=4" "-sDEVICE=png16m" "-r106.74x106.68"'' Ghostscript filter: No bounding box current state: ============== (setq AUCTeX-version "13.2.1" LaTeX-command-style '(("" "%(PDF)%(latex) %(file-line-error) %(extraopts) %(output-dir) %S%(PDFout)") ) image-types '(bmp svg webp png gif tiff jpeg xpm xbm pbm) preview-image-type 'png preview-image-creators '((dvipng (open preview-gs-open preview-dvipng-process-setup) (place preview-gs-place) (close preview-dvipng-close)) (png (open preview-gs-open) (place preview-gs-place) (close preview-gs-close)) (jpeg (open preview-gs-open) (place preview-gs-place) (close preview-gs-close)) (pnm (open preview-gs-open) (place preview-gs-place) (close preview-gs-close)) (tiff (open preview-gs-open) (place preview-gs-place) (close preview-gs-close)) ) preview-dvipng-image-type 'png preview-dvipng-command "dvipng -picky -noghostscript %d -o %m/prev%%03d.png" preview-pdf2dsc-command "pdf2dsc %(O?pdf) %m/preview.dsc" preview-gs-command "c:/Users/johng/AppData/Local/Programs/MiKTeX/miktex/bin/x64/rungs.exe" preview-gs-options '("-q" "-dDELAYSAFER" "-dNOPAUSE" "-DNOPLATFONTS" "-dPrinted" "-dTextAlphaBits=4" "-dGraphicsAlphaBits=4") preview-gs-image-type-alist '((png png "-sDEVICE=png16m") (dvipng png "-sDEVICE=png16m") (jpeg jpeg "-sDEVICE=jpeg") (pnm pbm "-sDEVICE=pnmraw") (tiff tiff "-sDEVICE=tiff12nc")) preview-fast-conversion t preview-prefer-TeX-bb nil preview-dvips-command "dvips -Pwww -i -E %d -o %m/preview.000" preview-fast-dvips-command "dvips -Pwww %d -o %m/preview.ps" preview-scale-function 'preview-scale-from-face preview-LaTeX-command '("%`%l \"\\nonstopmode\\nofiles\\PassOptionsToPackage{" ("," . preview-required-option-list) "}{preview}\\AtBeginDocument{\\ifx\\ifPreview\\undefined" preview-default-preamble "\\fi}\"%' \"\\detokenize{\" %(t-filename-only) \"}\"") preview-required-option-list '("active" "tightpage" "auctex" (preview-preserve-counters "counters")) preview-preserve-counters nil preview-default-option-list '("displaymath" "floats" "graphics" "textmath" "sections" "footnotes") preview-default-preamble '("\\RequirePackage[" ("," . preview-default-option-list) "]{preview}[2004/11/05]") preview-LaTeX-command-replacements nil preview-dump-replacements '(preview-LaTeX-command-replacements ("\\`\\([^ ]+\\)\\(?: +\\(?:\\(--?kanji[= ][^ ]+\\)\\|\\(--?output-directory[= ][^ ]+\\)\\|-\\(?:[^ \\\"]\\|\\\\.\\|\"[^\"]*\"\\)*\\)\\)*\\(.*\\)\\'" "\\1 -ini \\2 \\3 -interaction=nonstopmode \"&\\1\" " preview-format-name ".ini \\4") ) preview-undump-replacements '(("\\`\\([^ ]+\\)\\(?: +\\(?:\\(--?kanji[= ][^ ]+\\)\\|\\(--?output-directory[= ][^ ]+\\)\\|-\\(?:[^ \\\"]\\|\\\\.\\|\"[^\"]*\"\\)*\\)\\)*.* \"\\\\input\" \"\\\\detokenize{\" \\(.*\\) \"}\"\\'" "\\1 \\2 \\3 -interaction=nonstopmode -file-line-error " preview-format-name " \"/AUCTEXINPUT{\" \\4 \"}\"") ) preview-auto-cache-preamble 'ask preview-TeX-style-dir "c:/Users/johng/.emacs.d/elpa/auctex-13.2.1/latex" ) Output from running `c:/Users/johng/AppData/Local/Programs/MiKTeX/miktex/bin/x64/rungs.exe -h': MiKTeX GPL Ghostscript 9.25 (2018-09-13) Copyright (C) 2018 Artifex Software, Inc. All rights reserved. Usage: gs [switches] [file1.ps file2.ps ...] Most frequently used switches: (you can use # in place of =) -dNOPAUSE no pause after page | -q `quiet', fewer messages -gx page size in pixels | -r pixels/inch resolution -sDEVICE= select device | -dBATCH exit after last file -sOutputFile= select output file: - for stdout, |command for pipe, embed %d or %ld for page # Input formats: PostScript PostScriptLevel1 PostScriptLevel2 PostScriptLevel3 PDF Default output device: display Available devices: bbox bit bitcmyk bitrgb bitrgbtags bj10e bj200 bjc600 bjc800 bmp16 bmp16m bmp256 bmp32b bmpgray bmpmono bmpsep1 bmpsep8 cdeskjet cdj550 cdjcolor cdjmono declj250 deskjet devicen display djet500 djet500c eps2write eps9high eps9mid epson epsonc fpng gprf ibmpro ijs ink_cov inkcov jetp3852 jpeg jpegcmyk jpeggray laserjet lbp8 lj250 ljet2p ljet3 ljet3d ljet4 ljet4d ljetplus m8510 mswinpr2 necp6 nullpage pam pamcmyk32 pamcmyk4 pbm pbmraw pclm pcx16 pcx24b pcx256 pcxcmyk pcxgray pcxmono pdfimage24 pdfimage32 pdfimage8 pdfwrite pgm pgmraw pgnm pgnmraw pj pjxl pjxl300 pkmraw plan planc plang plank planm planr plib plibc plibg plibk plibm png16 png16m png256 pngalpha pnggray pngmono pngmonod pnm pnmcmyk pnmraw ppm ppmraw ps2write psdcmyk psdcmykog psdrgb pxlcolor pxlmono r4081 spotcmyk st800 stcolor t4693d2 t4693d4 t4693d8 tek4696 tiff12nc tiff24nc tiff32nc tiff48nc tiff64nc tiffcrle tiffg3 tiffg32d tiffg4 tiffgray tifflzw tiffpack tiffscaled tiffscaled24 tiffscaled32 tiffscaled4 tiffscaled8 tiffsep tiffsep1 txtwrite uniprint xpswrite Search path: C:/Users/johng/AppData/Local/Programs/MiKTeX/ghostscript/base ; C:/Users/johng/AppData/Local/Programs/MiKTeX/fonts ; %rom%Resource/Init/ ; %rom%lib/ ; c:/gs/gs9.25/Resource/Init ; c:/gs/gs9.25/lib ; c:/gs/gs9.25/Resource/Font ; c:/gs/fonts Initialization files are compiled into the executable. For more information, see c:/gs/gs9.25/doc/Use.htm. Please report bugs to bugs.ghostscript.com. --000000000000a5d5ee0604246ac1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi. I'm not sure that the problem was captured in= the log below created
by preview-report-bug so a few more details first= :

Running auctex on windows 11 with MiKTeX

= Test file contents (but most files containing maths seem to trigger the pro= blem)

\documentclass{article}
\begin{document}

\(x=3Dy\)
\end{document}

Document preview works when the filename has no= more than 22 characters,
e.g. test.tex, but fails with message "Gh= ostscript filter: No bounding box" when the filename has more, e.g. 01= 234567890123456789012.tex. However buffer preview always works.

When= document preview fails the maths sections are replaced with the roadworks = signs indefinitely. The 01234567890123456789012.prv directory is createdcontaining a temp folder containing a preview.dsc file but no png
image= s. The rungs.exe and mgs.exe processes don't exit until killed manually=
or emacs is closed.

The contents of the *.. output* buffer are t= hen

Running `Preview-LaTeX' on `012345678901234546789012' wi= th ``pdflatex =C2=A0-file-line-error =C2=A0 =C2=A0"\nonstopmode\nofile= s\PassOptionsToPackage{active,tightpage,auctex}{preview}\AtBeginDocument{\i= fx\ifPreview\undefined\RequirePackage[displaymath,floats,graphics,textmath,= sections,footnotes]{preview}[2004/11/05]\fi}" "\input" "= ;\detokenize{" "012345678901234546789012.tex" "}"&= #39;'
This is pdfTeX, Version 3.141592653-2.6-1.40.25 (MiKTeX 23.5) = (preloaded format=3Dpdflatex.fmt)
=C2=A0restricted \write18 enabled.
= entering extended mode
LaTeX2e <2023-06-01> patch level 1
L3 pr= ogramming layer <2023-08-11>

No auxiliary output files.
(012345678901234546789012.tex
(C:\Users\johng\AppData\Local\Programs\Mi= KTeX\tex/latex/base\article.cls
Document Class: article 2023/05/17 v1.4n= Standard LaTeX document class
(C:\Users\johng\AppData\Local\Programs\Mi= KTeX\tex/latex/base\size10.clo))
(C:\Users\johng\AppData\Local\Programs\= MiKTeX\tex/latex/l3backend\l3backend-pdf
tex.def)
No file 01234567890= 1234546789012.aux.
(c:/Users/johng/.emacs.d/elpa/auctex-13.2.1/latex\pre= view.sty
(C:\Users\johng\AppData\Local\Programs\MiKTeX\tex/latex/luatex8= 5\luatex85.sty)
(c:/Users/johng/.emacs.d/elpa/auctex-13.2.1/latex\prtigh= tpage.def)
(c:/Users/johng/.emacs.d/elpa/auctex-13.2.1/latex\prauctex.de= f
No auxiliary output files.


(c:/Users/johng/.emacs.d/elpa/au= ctex-13.2.1/latex\prauctex.cfg))
(c:/Users/johng/.emacs.d/elpa/auctex-13= .2.1/latex\prfootnotes.def)
Preview: Fontsize 10pt
Preview: PDFoutput= 1
)
012345678901234546789012.tex:4: Preview: Snippet 1 started.
&= lt;-><->
=C2=A0 =C2=A0 =C2=A0
l.4 \(
=C2=A0 =C2=A0 =C2= =A0 x=3Dy\)
Preview: Tightpage -32891 -32891 32891 32891
012345678901= 234546789012.tex:4: Preview: Snippet 1 ended.(282168+127431x1593186
).<-><->
=C2=A0 =C2=A0 =C2=A0
l.4 \(x=3Dy\)
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0
[1{C:/Users/johng/AppData/Local/MiKTe= X/fonts/map/pdftex/pdftex.map}] )
(see the transcript file for additiona= l information)<C:/Users/johng/AppData/Loc
al/Programs/MiKTeX/fonts/ty= pe1/public/amsfonts/cm/cmmi10.pfb><C:/Users/johng/Ap
pData/Local/P= rograms/MiKTeX/fonts/type1/public/amsfonts/cm/cmr10.pfb>
Output writt= en on 012345678901234546789012.pdf (1 page, 17918 bytes).
Transcript wri= tten on 012345678901234546789012.log.

TeX Output exited as expected = with code 1 at Wed Aug 30 14:49:41
Running `Preview-PDF2DSC' with ``= pdf2dsc "012345678901234546789012.pdf" "01234567890123454678= 9012.prv/tmpqz9sI5"/preview.dsc''

Preview-PDF2DSC finis= hed at Wed Aug 30 14:49:42
Running `Preview-Ghostscript' with ``&quo= t;c:/Users/johng/AppData/Local/Programs/MiKTeX/miktex/bin/x64/rungs.exe&quo= t; ^"-sOutputFile=3D012345678901234546789012.prv/tmpqz9sI5/pr1-^%d.png= ^" "-q" "-dDELAYSAFER" "-dNOPAUSE" "= ;-DNOPLATFONTS" "-dPrinted" "-dTextAlphaBits=3D4" = "-dGraphicsAlphaBits=3D4" "-sDEVICE=3Dpng16m" "-r1= 06.74x106.68"''
Ghostscript filter: No bounding box

= =3D=3D=3D

Emacs =C2=A0: GNU Emacs 29.1 (build 2, x86_64-w64-mingw32)=
=C2=A0of 2023-08-02
Package: 13.2.1

Run buffer contents:
<= br>Running `Preview-LaTeX' on `012345678901234546789012' with ``pdf= latex =C2=A0-file-line-error =C2=A0 =C2=A0"\nonstopmode\nofiles\PassOp= tionsToPackage{active,tightpage,auctex}{preview}\AtBeginDocument{\ifx\ifPre= view\undefined\RequirePackage[displaymath,floats,graphics,textmath,sections= ,footnotes]{preview}[2004/11/05]\fi}" "\input" "\detoke= nize{" "012345678901234546789012.tex" "}"''= ;
This is pdfTeX, Version 3.141592653-2.6-1.40.25 (MiKTeX 23.5) (preload= ed format=3Dpdflatex.fmt)
=C2=A0restricted \write18 enabled.
entering= extended mode
LaTeX2e <2023-06-01> patch level 1
L3 programmin= g layer <2023-08-11>

No auxiliary output files.

(012345= 678901234546789012.tex
(C:\Users\johng\AppData\Local\Programs\MiKTeX\tex= /latex/base\article.cls
Document Class: article 2023/05/17 v1.4n Standar= d LaTeX document class
(C:\Users\johng\AppData\Local\Programs\MiKTeX\tex= /latex/base\size10.clo))
(C:\Users\johng\AppData\Local\Programs\MiKTeX\t= ex/latex/l3backend\l3backend-pdf
tex.def)
No file 0123456789012345467= 89012.aux.
(c:/Users/johng/.emacs.d/elpa/auctex-13.2.1/latex\preview.sty=
(C:\Users\johng\AppData\Local\Programs\MiKTeX\tex/latex/luatex85\luatex= 85.sty)
(c:/Users/johng/.emacs.d/elpa/auctex-13.2.1/latex\prtightpage.de= f)
(c:/Users/johng/.emacs.d/elpa/auctex-13.2.1/latex\prauctex.def
No = auxiliary output files.


(c:/Users/johng/.emacs.d/elpa/auctex-13.= 2.1/latex\prauctex.cfg))
(c:/Users/johng/.emacs.d/elpa/auctex-13.2.1/lat= ex\prfootnotes.def)
Preview: Fontsize 10pt
Preview: PDFoutput 1
)<= br>012345678901234546789012.tex:4: Preview: Snippet 1 started.
<->= <->
=C2=A0 =C2=A0 =C2=A0
l.4 \(
=C2=A0 =C2=A0 =C2=A0 x=3Dy\= )
Preview: Tightpage -32891 -32891 32891 32891
0123456789012345467890= 12.tex:4: Preview: Snippet 1 ended.(282168+127431x1593186
).
<->= ;<->
=C2=A0 =C2=A0 =C2=A0
l.4 \(x=3Dy\)
=C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0
[1{C:/Users/johng/AppData/Local/MiKTeX/fonts/ma= p/pdftex/pdftex.map}] )
(see the transcript file for additional informat= ion)<C:/Users/johng/AppData/Loc
al/Programs/MiKTeX/fonts/type1/public= /amsfonts/cm/cmmi10.pfb><C:/Users/johng/Ap
pData/Local/Programs/Mi= KTeX/fonts/type1/public/amsfonts/cm/cmr10.pfb>
Output written on 0123= 45678901234546789012.pdf (1 page, 17918 bytes).
Transcript written on 01= 2345678901234546789012.log.

TeX Output exited as expected with code = 1 at Wed Aug 30 14:44:32
Running `Preview-PDF2DSC' with ``pdf2dsc &q= uot;012345678901234546789012.pdf" "012345678901234546789012.prv/t= mp3SwYcB"/preview.dsc''

Preview-PDF2DSC finished at Wed= Aug 30 14:44:32
Running `Preview-Ghostscript' with ``"c:/Users= /johng/AppData/Local/Programs/MiKTeX/miktex/bin/x64/rungs.exe" ^"= -sOutputFile=3D012345678901234546789012.prv/tmp3SwYcB/pr1-^%d.png^" &q= uot;-q" "-dDELAYSAFER" "-dNOPAUSE" "-DNOPLATF= ONTS" "-dPrinted" "-dTextAlphaBits=3D4" "-dGr= aphicsAlphaBits=3D4" "-sDEVICE=3Dpng16m" "-r106.74x106.= 68"''
Ghostscript filter: No bounding box


curren= t state:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
(setq
=C2=A0AU= CTeX-version "13.2.1"
=C2=A0LaTeX-command-style '(("&= quot;
"%(PDF)%(latex) %(file-line-error) %(extraopts) %(outpu= t-dir) %S%(PDFout)")
=C2=A0 )
=C2=A0image-types '(bmp = svg webp png gif tiff jpeg xpm xbm pbm)
=C2=A0preview-image-type 'pn= g
=C2=A0preview-image-creators '((dvipng (open preview-gs-open previ= ew-dvipng-process-setup)
=C2=A0 (place preview-gs-place) (close p= review-dvipng-close))
=C2=A0(png (open preview-gs-open) (place pr= eview-gs-place)
=C2=A0 (close preview-gs-close))
=C2=A0= (jpeg (open preview-gs-open) (place preview-gs-place)
=C2=A0 (clo= se preview-gs-close))
=C2=A0(pnm (open preview-gs-open) (place pr= eview-gs-place)
=C2=A0 (close preview-gs-close))
=C2=A0= (tiff (open preview-gs-open) (place preview-gs-place)
=C2=A0 (clo= se preview-gs-close))
=C2=A0)
=C2=A0preview-dvipng-image-type = 'png
=C2=A0preview-dvipng-command "dvipng -picky -noghostscript= %d -o %m/prev%%03d.png"
=C2=A0preview-pdf2dsc-command "pdf2ds= c %(O?pdf) %m/preview.dsc"
=C2=A0preview-gs-command "c:/Users/= johng/AppData/Local/Programs/MiKTeX/miktex/bin/x64/rungs.exe"
=C2= =A0preview-gs-options '("-q" "-dDELAYSAFER" "-= dNOPAUSE" "-DNOPLATFONTS" "-dPrinted"
=C2= =A0"-dTextAlphaBits=3D4" "-dGraphicsAlphaBits=3D4")
= =C2=A0preview-gs-image-type-alist '((png png "-sDEVICE=3Dpng16m&qu= ot;)
=C2=A0 (dvipng png "-sDEVICE=3Dpng16m")
= =C2=A0 (jpeg jpeg "-sDEVICE=3Djpeg") (pnm pbm "-sDEVICE=3D= pnmraw")
=C2=A0 (tiff tiff "-sDEVICE=3Dtiff12nc")= )
=C2=A0preview-fast-conversion t
=C2=A0preview-prefer-TeX-bb nil
= =C2=A0preview-dvips-command "dvips -Pwww -i -E %d -o %m/preview.000&qu= ot;
=C2=A0preview-fast-dvips-command "dvips -Pwww %d -o %m/preview.ps"
=C2=A0preview-scale-function= 'preview-scale-from-face
=C2=A0preview-LaTeX-command '("%`= %l \"\\nonstopmode\\nofiles\\PassOptionsToPackage{"
(&q= uot;," . preview-required-option-list)
"}{preview}\\AtB= eginDocument{\\ifx\\ifPreview\\undefined"
preview-default-pr= eamble
"\\fi}\"%' \"\\detokenize{\" %(t-f= ilename-only) \"}\"")
=C2=A0preview-required-option-list = '("active" "tightpage" "auctex"
= (preview-preserve-counters "counters"))
=C2=A0preview-preser= ve-counters nil
=C2=A0preview-default-option-list '("displaymat= h" "floats" "graphics" "textmath" "= sections"
=C2=A0 "footnotes")
=C2=A0preview-de= fault-preamble '("\\RequirePackage[" ("," . preview= -default-option-list)
"]{preview}[2004/11/05]")
=C2= =A0preview-LaTeX-command-replacements nil
=C2=A0preview-dump-replacement= s '(preview-LaTeX-command-replacements
("\\`\\([^ ]+\\)= \\(?: +\\(?:\\(--?kanji[=3D ][^ ]+\\)\\|\\(--?output-directory[=3D ][^ ]+\\= )\\|-\\(?:[^ \\\"]\\|\\\\.\\|\"[^\"]*\"\\)*\\)\\)*\\(.*= \\)\\'" "\\1 -ini \\2 \\3 -interaction=3Dnonstopmode \"&= amp;\\1\" " preview-format-name ".ini \\4")
= )
=C2=A0preview-undump-replacements '(("\\`\\([^ ]+\\)\\(?: +\\= (?:\\(--?kanji[=3D ][^ ]+\\)\\|\\(--?output-directory[=3D ][^ ]+\\)\\|-\\(?= :[^ \\\"]\\|\\\\.\\|\"[^\"]*\"\\)*\\)\\)*.* \"\\\\= input\" \"\\\\detokenize{\" \\(.*\\) \"}\"\\'&= quot; "\\1 \\2 \\3 -interaction=3Dnonstopmode -file-line-error " = preview-format-name " \"/AUCTEXINPUT{\" \\4 \"}\"&= quot;)
=C2=A0 )
=C2=A0preview-auto-cache-preamble 'ask=C2=A0preview-TeX-style-dir "c:/Users/johng/.emacs.d/elpa/auctex-13.2= .1/latex"
=C2=A0)

Output from running `c:/Users/johng/AppDat= a/Local/Programs/MiKTeX/miktex/bin/x64/rungs.exe -h':
MiKTeX GPL Gho= stscript 9.25 (2018-09-13)
Copyright (C) 2018 Artifex Software, Inc.=C2= =A0 All rights reserved.
Usage: gs [switches] [file1.ps file2.ps ...]
Most frequ= ently used switches: (you can use # in place of =3D)
=C2=A0-dNOPAUSE =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 no pause after page =C2=A0 | -q =C2=A0 =C2= =A0 =C2=A0 `quiet', fewer messages
=C2=A0-g<width>x<height&= gt; =C2=A0page size in pixels =C2=A0 | -r<res> =C2=A0pixels/inch reso= lution
=C2=A0-sDEVICE=3D<devname> =C2=A0select device =C2=A0 =C2= =A0 =C2=A0 =C2=A0 | -dBATCH =C2=A0exit after last file
=C2=A0-sOutputFil= e=3D<file> select output file: - for stdout, |command for pipe,
= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0em= bed %d or %ld for page #
Input formats: PostScript PostScriptLevel1 Post= ScriptLevel2 PostScriptLevel3 PDF
Default output device: display
Avai= lable devices:
=C2=A0 =C2=A0bbox bit bitcmyk bitrgb bitrgbtags bj10e bj2= 00 bjc600 bjc800 bmp16 bmp16m
=C2=A0 =C2=A0bmp256 bmp32b bmpgray bmpmono= bmpsep1 bmpsep8 cdeskjet cdj550 cdjcolor
=C2=A0 =C2=A0cdjmono declj250 = deskjet devicen display djet500 djet500c eps2write
=C2=A0 =C2=A0eps9high= eps9mid epson epsonc fpng gprf ibmpro ijs ink_cov inkcov
=C2=A0 =C2=A0j= etp3852 jpeg jpegcmyk jpeggray laserjet lbp8 lj250 ljet2p ljet3 ljet3d
= =C2=A0 =C2=A0ljet4 ljet4d ljetplus m8510 mswinpr2 necp6 nullpage pam pamcmy= k32
=C2=A0 =C2=A0pamcmyk4 pbm pbmraw pclm pcx16 pcx24b pcx256 pcxcmyk pc= xgray pcxmono
=C2=A0 =C2=A0pdfimage24 pdfimage32 pdfimage8 pdfwrite pgm = pgmraw pgnm pgnmraw pj pjxl
=C2=A0 =C2=A0pjxl300 pkmraw plan planc plang= plank planm planr plib plibc plibg plibk
=C2=A0 =C2=A0plibm png16 png16= m png256 pngalpha pnggray pngmono pngmonod pnm pnmcmyk
=C2=A0 =C2=A0pnmr= aw ppm ppmraw ps2write psdcmyk psdcmykog psdrgb pxlcolor pxlmono
=C2=A0 = =C2=A0r4081 spotcmyk st800 stcolor t4693d2 t4693d4 t4693d8 tek4696 tiff12nc=
=C2=A0 =C2=A0tiff24nc tiff32nc tiff48nc tiff64nc tiffcrle tiffg3 tiffg3= 2d tiffg4
=C2=A0 =C2=A0tiffgray tifflzw tiffpack tiffscaled tiffscaled24= tiffscaled32
=C2=A0 =C2=A0tiffscaled4 tiffscaled8 tiffsep tiffsep1 txtw= rite uniprint xpswrite
Search path:
=C2=A0 =C2=A0C:/Users/johng/AppDa= ta/Local/Programs/MiKTeX/ghostscript/base ;
=C2=A0 =C2=A0C:/Users/johng/= AppData/Local/Programs/MiKTeX/fonts ;
=C2=A0 =C2=A0%rom%Resource/Init/ ;= %rom%lib/ ; c:/gs/gs9.25/Resource/Init ;
=C2=A0 =C2=A0c:/gs/gs9.25/lib = ; c:/gs/gs9.25/Resource/Font ; c:/gs/fonts
Initialization files are comp= iled into the executable.
For more information, see c:/gs/gs9.25/doc/Use= .htm.
Please report bugs to bugs= .ghostscript.com.

--000000000000a5d5ee0604246ac1-- From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 30 13:35:33 2023 Received: (at 65628) by debbugs.gnu.org; 30 Aug 2023 17:35:34 +0000 Received: from localhost ([127.0.0.1]:53921 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qbP6L-0000V8-JJ for submit@debbugs.gnu.org; Wed, 30 Aug 2023 13:35:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50712) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qbP6I-0000Us-JN for 65628@debbugs.gnu.org; Wed, 30 Aug 2023 13:35:32 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qbP65-0005pQ-Eu; Wed, 30 Aug 2023 13:35:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=QWZCe7e5uvntN9/AB3rDDA+JQSbjSo6jJq+W9mdNlrk=; b=MQN7MMxy0HC1EVWsnvb9 2MVTG9VIGNM70ndtLJdLBDpqUHk9o5CuCNGVAlksXcQ6Ct84XDigGFwFx2nsEPE0koRW8xDFLPpMu oYo3EjxQhjfIZulqB7s6vF/bIIkU8FceLjh3zmo4Z5Qo8Lc5UFs7AVIKiZeFm6NrJgUMXDI0GH9SF oYXZ+FGdO7Sddjr27AePlNSm+mCVZXxarxfO0/UGHqYa1CYqyQF2erSkSk8DPKC3c/vM4Xb6GJ/Fm xGinRrPExK/JoCyHLi2CR1OSutR8Lhz+7mN7H77X6hbo5Wpj51TvmanV8UHMOvT5xJrLcFePRPaR5 /1lMPXpig/WsJA==; From: David Kastrup To: John Holman Subject: Re: bug#65628: Document preview fails with long filenames In-Reply-To: (John Holman's message of "Wed, 30 Aug 2023 15:05:03 +0100") References: Date: Wed, 30 Aug 2023 19:35:13 +0200 Message-ID: <87o7io4eni.fsf@fencepost.gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 65628 Cc: 65628@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: -3.3 (---) John Holman writes: > Hi. I'm not sure that the problem was captured in the log below created > by preview-report-bug so a few more details first: > > Running auctex on windows 11 with MiKTeX > > Test file contents (but most files containing maths seem to trigger the > problem) > > \documentclass{article} > \begin{document} > > \(x=y\) > > \end{document} > > Document preview works when the filename has no more than 22 characters, > e.g. test.tex, but fails with message "Ghostscript filter: No bounding box" > when the filename has more, e.g. 01234567890123456789012.tex. However > buffer preview always works. > > When document preview fails the maths sections are replaced with the > roadworks signs indefinitely. The 01234567890123456789012.prv directory is > created > containing a temp folder containing a preview.dsc file but no png > images. The rungs.exe and mgs.exe processes don't exit until killed manually > or emacs is closed. > > The contents of the *.. output* buffer are then > > Running `Preview-LaTeX' on `012345678901234546789012' with ``pdflatex > -file-line-error > "\nonstopmode\nofiles\PassOptionsToPackage{active,tightpage,auctex}{preview}\AtBeginDocument{\ifx\ifPreview\undefined\RequirePackage[displaymath,floats,graphics,textmath,sections,footnotes]{preview}[2004/11/05]\fi}" > "\input" "\detokenize{" "012345678901234546789012.tex" "}"'' Probably exceeding a total command line length of 256 characters or some similar Windows restriction. I also seem to remember that some Windows file system or API limited the length of absolute filenames you could access even when only using relative filenames, so the length of the directory path you are in might also play a part here. -- David Kastrup From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 30 13:52:35 2023 Received: (at 65628) by debbugs.gnu.org; 30 Aug 2023 17:52:35 +0000 Received: from localhost ([127.0.0.1]:53925 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qbPMp-0000y1-8n for submit@debbugs.gnu.org; Wed, 30 Aug 2023 13:52:35 -0400 Received: from mail-lj1-x234.google.com ([2a00:1450:4864:20::234]:50231) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qbPMk-0000xm-9g for 65628@debbugs.gnu.org; Wed, 30 Aug 2023 13:52:33 -0400 Received: by mail-lj1-x234.google.com with SMTP id 38308e7fff4ca-2bcc14ea414so1710101fa.0 for <65628@debbugs.gnu.org>; Wed, 30 Aug 2023 10:52:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693417936; x=1694022736; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=JfAum41ggxnv8acU11m+yhe1PdpsF24AO1iN05IdLZQ=; b=NHLtiNveQUvTL2JSl3smx0Zn9hQvbctuarBDyTXjAZp6G9zCf79N2CICfiDxDW2Snx z8Z7LIa1SnRpEVGVnrUiRQ/zvB9FoImXcpwBBzCRbf0bhap7ZIDeijGOyj/4J261S993 rH3chin5/cFddXajZHQITbtevycDsJqBG601NNg2U0t+SapAxrHMMd4bbxSgf/XtprAX 8ty7zJ94K2L1S20Bi/ViwyuTkgWvVVGIMp0a7net+q1TXvXW0sl3JMaPc/jLE6KcyyQB oQJvn0noVtJyVKaVlqa+VZQvz4UmVPkFb7HCiio3jh44aU1K4tAoLIldlUfrufjMa+Wy r1dw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693417936; x=1694022736; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=JfAum41ggxnv8acU11m+yhe1PdpsF24AO1iN05IdLZQ=; b=Qtwn6GeKXcXrgR+5/ig0CoHyxQk2J/3BHPmoLA+8PLhMVWgNC9l1W36kL0x3gM/nLH OSS/vREO7f/jSg9k8t10vSbz4MbhNvUYcX3V4HGb9EGkGk1f0Avuh1tns4YrpeDIhhON y8Ia9JDyH3CndEep1GP9CwM/KR97JuzsAtsxYUDDC+lfbkJJ0nIeGhEmby9lOlyTpTNQ nqIwYqsH5KDZIp73vH2PvsHZbwVWkQDemwktkLohzvU3yAlCBhRU9nBpxmDWtUkp2aWx DZ2L0OmEjJa4xZyJCsFoAK3BVKVzBEAgJs1lt+zGn6n8nclK0pYOtFG3VGBTuJo/CSG4 dG9w== X-Gm-Message-State: AOJu0YzTpMVL83lJs+X8Nvm/U1n+GqH/ua02SQ7K0TLyrrlrJUv6PKMy xn65i2UexLbWcFlhmqc2Za2BF5uhLgp4dKkxIkg= X-Google-Smtp-Source: AGHT+IFCDx3xWTAJw1mUTUin+oZSsxXHAzMUDbrZi4VRxBywKb33JZ5aYXCiqj1Jk+xEhUACt9o/pGdkIr2e+rkuGbc= X-Received: by 2002:a2e:9495:0:b0:2bb:a28b:58e1 with SMTP id c21-20020a2e9495000000b002bba28b58e1mr2466353ljh.41.1693417936305; Wed, 30 Aug 2023 10:52:16 -0700 (PDT) MIME-Version: 1.0 References: <87o7io4eni.fsf@fencepost.gnu.org> In-Reply-To: <87o7io4eni.fsf@fencepost.gnu.org> From: John Holman Date: Wed, 30 Aug 2023 18:52:04 +0100 Message-ID: Subject: Re: bug#65628: Document preview fails with long filenames To: David Kastrup Content-Type: multipart/alternative; boundary="0000000000008cc0a706042796e8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 65628 Cc: 65628@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 (-) --0000000000008cc0a706042796e8 Content-Type: text/plain; charset="UTF-8" Have to say this explanation seems unlikely to me at first sight. File path limit MAX_PATH is 260 but here we have C:\Users\johng\temp\textest\01234567890123456789012.tex which is only about 50. Routinely deal with much longer paths than this using windows without a problem. Similarly max command length for cmd.exe is 8182, the underlying API limit is 32767 - and you can see the full command to pdflatex echoed in the log so it's obviously getting through - so that also seems unlikely. On Wed, 30 Aug 2023 at 18:35, David Kastrup wrote: > John Holman writes: > > > Hi. I'm not sure that the problem was captured in the log below created > > by preview-report-bug so a few more details first: > > > > Running auctex on windows 11 with MiKTeX > > > > Test file contents (but most files containing maths seem to trigger the > > problem) > > > > \documentclass{article} > > \begin{document} > > > > \(x=y\) > > > > \end{document} > > > > Document preview works when the filename has no more than 22 characters, > > e.g. test.tex, but fails with message "Ghostscript filter: No bounding > box" > > when the filename has more, e.g. 01234567890123456789012.tex. However > > buffer preview always works. > > > > When document preview fails the maths sections are replaced with the > > roadworks signs indefinitely. The 01234567890123456789012.prv directory > is > > created > > containing a temp folder containing a preview.dsc file but no png > > images. The rungs.exe and mgs.exe processes don't exit until killed > manually > > or emacs is closed. > > > > The contents of the *.. output* buffer are then > > > > Running `Preview-LaTeX' on `012345678901234546789012' with ``pdflatex > > -file-line-error > > > "\nonstopmode\nofiles\PassOptionsToPackage{active,tightpage,auctex}{preview}\AtBeginDocument{\ifx\ifPreview\undefined\RequirePackage[displaymath,floats,graphics,textmath,sections,footnotes]{preview}[2004/11/05]\fi}" > > "\input" "\detokenize{" "012345678901234546789012.tex" "}"'' > > Probably exceeding a total command line length of 256 characters or some > similar Windows restriction. I also seem to remember that some Windows > file system or API limited the length of absolute filenames you could > access even when only using relative filenames, so the length of the > directory path you are in might also play a part here. > > -- > David Kastrup > --0000000000008cc0a706042796e8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Have to say this explanation seems unlikely to me at=C2=A0= first sight. File path limit MAX_PATH is 260 but here we have C:\Users\john= g\temp\textest\01234567890123456789012.tex which is only about=C2=A050. Rou= tinely deal with much longer paths than this using windows without a proble= m. Similarly max command length for cmd.exe is 8182, the underlying API lim= it is 32767 - and you can see the full command to pdflatex echoed in the lo= g so it's obviously getting through - so that also seems unlikely.
=

On Wed, 30 Aug 2023 at 18:35, David Kastrup <dak@gnu.org> wrote:
John Holman <john.g.holman@gmail.com> writes:

> Hi. I'm not sure that the problem was captured in the log below cr= eated
> by preview-report-bug so a few more details first:
>
> Running auctex on windows 11 with MiKTeX
>
> Test file contents (but most files containing maths seem to trigger th= e
> problem)
>
> \documentclass{article}
> \begin{document}
>
> \(x=3Dy\)
>
> \end{document}
>
> Document preview works when the filename has no more than 22 character= s,
> e.g. test.tex, but fails with message "Ghostscript filter: No bou= nding box"
> when the filename has more, e.g. 01234567890123456789012.tex. However<= br> > buffer preview always works.
>
> When document preview fails the maths sections are replaced with the > roadworks signs indefinitely. The 01234567890123456789012.prv director= y is
> created
> containing a temp folder containing a preview.dsc file but no png
> images. The rungs.exe and mgs.exe processes don't exit until kille= d manually
> or emacs is closed.
>
> The contents of the *.. output* buffer are then
>
> Running `Preview-LaTeX' on `012345678901234546789012' with ``p= dflatex
>=C2=A0 -file-line-error
>=C2=A0 "\nonstopmode\nofiles\PassOptionsToPackage{active,tightpage= ,auctex}{preview}\AtBeginDocument{\ifx\ifPreview\undefined\RequirePackage[d= isplaymath,floats,graphics,textmath,sections,footnotes]{preview}[2004/11/05= ]\fi}"
> "\input" "\detokenize{" "01234567890123454678= 9012.tex" "}"''

Probably exceeding a total command line length of 256 characters or some similar Windows restriction.=C2=A0 I also seem to remember that some Window= s
file system or API limited the length of absolute filenames you could
access even when only using relative filenames, so the length of the
directory path you are in might also play a part here.

--
David Kastrup
--0000000000008cc0a706042796e8-- From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 31 01:21:35 2023 Received: (at 65628) by debbugs.gnu.org; 31 Aug 2023 05:21:35 +0000 Received: from localhost ([127.0.0.1]:54605 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qba7b-0001vQ-IW for submit@debbugs.gnu.org; Thu, 31 Aug 2023 01:21:35 -0400 Received: from smtp1a.inetd.co.jp ([210.129.88.11]:40874) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qba7Y-0001vG-JX for 65628@debbugs.gnu.org; Thu, 31 Aug 2023 01:21:33 -0400 Received: from localhost (42-144-34-11.rev.home.ne.jp [42.144.34.11]) by smtp1a.inetd.co.jp (Postfix) with ESMTPA id 212765C; Thu, 31 Aug 2023 14:21:22 +0900 (JST) From: Ikumi Keita To: John Holman Subject: Re: bug#65628: Document preview fails with long filenames In-reply-to: References: Comments: In-reply-to John Holman message dated "Wed, 30 Aug 2023 15:05:03 +0100." X-Mailer: MH-E 8.6+git; nmh 1.7.1; Emacs 29.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <58637.1693459280.1@localhost> Date: Thu, 31 Aug 2023 14:21:20 +0900 Message-ID: <58640.1693459280@localhost> X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 65628 Cc: 65628@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 John, >>>>> John Holman writes: > Document preview works when the filename has no more than 22 characters, > e.g. test.tex, but fails with message "Ghostscript filter: No bounding box" > when the filename has more, e.g. 01234567890123456789012.tex. However > buffer preview always works. I think the origin of this issue is the same as bug#27088: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=27088 The log you provided seems to have extra line break discussed in the above bug record thread: > The contents of the *.. output* buffer are then > 012345678901234546789012.tex:4: Preview: Snippet 1 > ended.(282168+127431x1593186 > ). > <-><-> > l.4 \(x=y\) As I corrected in the above thread, MikTeX doesn't see the environment variable max_print_line unfortunately and you can try one of the following two options: (1) Add command line option --max-print-line=1000 to latex. I expect you can use the customize option `preview-LaTeX-command' for that purpose. (2) Edit the MikTeX config file and modify max_print_line parameter. Regards, Ikumi Keita #StandWithUkraine #StopWarInUkraine From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 31 04:13:54 2023 Received: (at 65628) by debbugs.gnu.org; 31 Aug 2023 08:13:54 +0000 Received: from localhost ([127.0.0.1]:54810 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qbcoL-0000oN-M8 for submit@debbugs.gnu.org; Thu, 31 Aug 2023 04:13:54 -0400 Received: from mail-lj1-x235.google.com ([2a00:1450:4864:20::235]:54364) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qbcoG-0000o8-HG for 65628@debbugs.gnu.org; Thu, 31 Aug 2023 04:13:52 -0400 Received: by mail-lj1-x235.google.com with SMTP id 38308e7fff4ca-2bd0a5a5abbso10033701fa.0 for <65628@debbugs.gnu.org>; Thu, 31 Aug 2023 01:13:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693469614; x=1694074414; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=kZnbCwE0RqI0k4qMgtx+86DqsBY951r6oSI6NLqrXP8=; b=ZWrxkBPdp6qkYO0btgJAew65KMP1cIwWexXL0EY68sAx/ECrYD3s3iC1xgoRq8yWmE ZjjJ5KnsIMCsJh62xEz0mrYzCV1dDkvc2aXO7/LO5QXRzIUT89X8lFkZnzXz8oVJgIPK aC7p51XJxfGI59Ir7UkruZS3BWP7mOTneRKi98UeYPUvMHrVyZdfViwLWpxRosA92lij EaVOzXIqdCqPkYou50RtPe3yqeUsSgOcJctjM8pRFG+V2ahAAUhlAWwgNd7FuLQw+iXx RFXU8kDezjZiPT/WbB/57QapP/JjVQ+hu9pSHOuOHuiIlWDJh+FwBuAj2EOhATmket5C NWPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693469614; x=1694074414; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=kZnbCwE0RqI0k4qMgtx+86DqsBY951r6oSI6NLqrXP8=; b=AAG8UCvfuwJc7IRAkCst4oFG8SCpHYiVftzx5Slt6EdNLykWoMj8YuyydtILFRTaml vL0gmEqoR/i03N4Vzx/BPBA031tCm+nXhoZJeBCiPlkon6NsguOUW4ycpyzfP7pDXyeg KIhSY5smviiok3clyXXbRrYNi9C7Ceqh7hMWMWE7mVNcU8OT8DVVRFqM9YXq5WiKl8tt n/PmTLYyQMmBAy+Utn3058Y+4F4I1jL7Yv7zAhCSzcWiPOh3WlEyb0ZlVB71qtMeEjY/ aVpCZrjWxzy6nkFkpU2bjVg87jIAniVJHGCjcW9zVZygvO0x+wr2iBihVvXVdzqNUh3w i9rg== X-Gm-Message-State: AOJu0YzsVW8bK3gV1GaqIJZQhuIfi16cgs/TXCWzG+7yX4syQ9w54dWR KOthh8SP5ebS5xvnPHM3Zfe//UDkl1s6PfEV9WAPJL41xdBu3Q== X-Google-Smtp-Source: AGHT+IEDqL2sifBBjwwGPJuQLxbwaJOGjCtavYoCIAElAnjh7P+QANbNC8Qcwbz1K/2wxn59Jtp4VQAxiNyv2mQ+JWI= X-Received: by 2002:a05:651c:cd:b0:2bc:f4ee:ca57 with SMTP id 13-20020a05651c00cd00b002bcf4eeca57mr3779590ljr.48.1693469613930; Thu, 31 Aug 2023 01:13:33 -0700 (PDT) MIME-Version: 1.0 References: <58640.1693459280@localhost> In-Reply-To: <58640.1693459280@localhost> From: John Holman Date: Thu, 31 Aug 2023 09:13:23 +0100 Message-ID: Subject: Re: bug#65628: Document preview fails with long filenames To: Ikumi Keita Content-Type: multipart/alternative; boundary="000000000000c6be870604339e48" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 65628 Cc: 65628@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 (-) --000000000000c6be870604339e48 Content-Type: text/plain; charset="UTF-8" Hi Ikumi Many thanks - your suggestion to use the customize option to add --max-print-line=1000 to the pdflatex command line works at least for the current test case. Adding -max-print-line=1000 - one hyphen rather than two - also works. Perhaps auctex should be changed to add this as standard, since bug#27088 suggests it could occur in various contexts? Resulting output: Running `Preview-LaTeX' on `012345678901234546789012' with ``pdflatex -file-line-error -max-print-line=1000 "\nonstopmode\nofiles\PassOptionsToPackage{active,tightpage,auctex}{preview}\AtBeginDocument{\ifx\ifPreview\undefined\RequirePackage[displaymath,floats,graphics,textmath,sections,footnotes]{preview}[2004/11/05]\fi}" "\input" "\detokenize{" "012345678901234546789012.tex" "}"'' This is pdfTeX, Version 3.141592653-2.6-1.40.25 (MiKTeX 23.5) (preloaded format=pdflatex.fmt) restricted \write18 enabled. entering extended mode LaTeX2e <2023-06-01> patch level 1 L3 programming layer <2023-08-11> No auxiliary output files. (012345678901234546789012.tex (C:\Users\johng\AppData\Local\Programs\MiKTeX\tex/latex/base\article.cls Document Class: article 2023/05/17 v1.4n Standard LaTeX document class (C:\Users\johng\AppData\Local\Programs\MiKTeX\tex/latex/base\size10.clo)) (C:\Users\johng\AppData\Local\Programs\MiKTeX\tex/latex/l3backend\l3backend-pdftex.def) No file 012345678901234546789012.aux. (c:/Users/johng/.emacs.d/elpa/auctex-13.2.1/latex\preview.sty (C:\Users\johng\AppData\Local\Programs\MiKTeX\tex/latex/luatex85\luatex85.sty) (c:/Users/johng/.emacs.d/elpa/auctex-13.2.1/latex\prtightpage.def) (c:/Users/johng/.emacs.d/elpa/auctex-13.2.1/latex\prauctex.def No auxiliary output files. (c:/Users/johng/.emacs.d/elpa/auctex-13.2.1/latex\prauctex.cfg)) (c:/Users/johng/.emacs.d/elpa/auctex-13.2.1/latex\prfootnotes.def) Preview: Fontsize 10pt Preview: PDFoutput 1 ) 012345678901234546789012.tex:4: Preview: Snippet 1 started. <-><-> l.4 \( x=y\) Preview: Tightpage -32891 -32891 32891 32891 012345678901234546789012.tex:4: Preview: Snippet 1 ended.(282168+127431x1593186). <-><-> l.4 \(x=y\) [1{C:/Users/johng/AppData/Local/MiKTeX/fonts/map/pdftex/pdftex.map}] ) (see the transcript file for additional information) Output written on 012345678901234546789012.pdf (1 page, 17918 bytes). Transcript written on 012345678901234546789012.log. TeX Output exited as expected with code 1 at Thu Aug 31 09:08:27 Running `Preview-PDF2DSC' with ``pdf2dsc "012345678901234546789012.pdf" "012345678901234546789012.prv/tmpU0X9fd"/preview.dsc'' Preview-PDF2DSC finished at Thu Aug 31 09:08:27 Running `Preview-Ghostscript' with ``"c:/Users/johng/AppData/Local/Programs/MiKTeX/miktex/bin/x64/rungs.exe" ^"-sOutputFile=012345678901234546789012.prv/tmpU0X9fd/pr1-^%d.png^" "-q" "-dDELAYSAFER" "-dNOPAUSE" "-DNOPLATFONTS" "-dPrinted" "-dTextAlphaBits=4" "-dGraphicsAlphaBits=4" "-sDEVICE=png16m" "-r106.74x106.68"'' Preview-Ghostscript finished at Thu Aug 31 09:08:28 On Thu, 31 Aug 2023 at 06:21, Ikumi Keita wrote: > Hi John, > > >>>>> John Holman writes: > > > Document preview works when the filename has no more than 22 characters, > > e.g. test.tex, but fails with message "Ghostscript filter: No bounding > box" > > when the filename has more, e.g. 01234567890123456789012.tex. However > > buffer preview always works. > > I think the origin of this issue is the same as bug#27088: > https://debbugs.gnu.org/cgi/bugreport.cgi?bug=27088 > > The log you provided seems to have extra line break discussed in the > above bug record thread: > > The contents of the *.. output* buffer are then > > > 012345678901234546789012.tex:4: Preview: Snippet 1 > > ended.(282168+127431x1593186 > > ). > > <-><-> > > > l.4 \(x=y\) > > As I corrected in the above thread, MikTeX doesn't see the environment > variable max_print_line unfortunately and you can try one of the > following two options: > (1) Add command line option --max-print-line=1000 to latex. > I expect you can use the customize option `preview-LaTeX-command' > for that purpose. > (2) Edit the MikTeX config file and modify max_print_line parameter. > > Regards, > Ikumi Keita > #StandWithUkraine #StopWarInUkraine > --000000000000c6be870604339e48 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Ikumi

Many thanks - your suggestion = to use the=C2=A0customize=C2=A0option to add --max-print-line=3D1000 to the= pdflatex command line works at least for the current test case.=C2=A0
Adding -max-print-line=3D1000 - one hyphen rather than two - also wor= ks.
Perhaps auctex should be changed to add this as standard, sin= ce=C2=A0 bug#27088 suggests it could occur in various contexts?
<= br>
Resulting output:

Running `Preview-L= aTeX' on `012345678901234546789012' with ``pdflatex =C2=A0-file-lin= e-error =C2=A0 =C2=A0-max-print-line=3D1000 "\nonstopmode\nofiles\Pass= OptionsToPackage{active,tightpage,auctex}{preview}\AtBeginDocument{\ifx\ifP= review\undefined\RequirePackage[displaymath,floats,graphics,textmath,sectio= ns,footnotes]{preview}[2004/11/05]\fi}" "\input" "\deto= kenize{" "012345678901234546789012.tex" "}"'&#= 39;
This is pdfTeX, Version 3.141592653-2.6-1.40.25 (MiKTeX 23.5) (prelo= aded format=3Dpdflatex.fmt)
=C2=A0restricted \write18 enabled.
enteri= ng extended mode
LaTeX2e <2023-06-01> patch level 1
L3 programm= ing layer <2023-08-11>

No auxiliary output files.

(0123= 45678901234546789012.tex (C:\Users\johng\AppData\Local\Programs\MiKTeX\tex/= latex/base\article.cls
Document Class: article 2023/05/17 v1.4n Standard= LaTeX document class
(C:\Users\johng\AppData\Local\Programs\MiKTeX\tex/= latex/base\size10.clo)) (C:\Users\johng\AppData\Local\Programs\MiKTeX\tex/l= atex/l3backend\l3backend-pdftex.def)
No file 012345678901234546789012.au= x.
(c:/Users/johng/.emacs.d/elpa/auctex-13.2.1/latex\preview.sty (C:\Use= rs\johng\AppData\Local\Programs\MiKTeX\tex/latex/luatex85\luatex85.sty) (c:= /Users/johng/.emacs.d/elpa/auctex-13.2.1/latex\prtightpage.def) (c:/Users/j= ohng/.emacs.d/elpa/auctex-13.2.1/latex\prauctex.def
No auxiliary output = files.


(c:/Users/johng/.emacs.d/elpa/auctex-13.2.1/latex\praucte= x.cfg)) (c:/Users/johng/.emacs.d/elpa/auctex-13.2.1/latex\prfootnotes.def)<= br>Preview: Fontsize 10pt
Preview: PDFoutput 1
)
01234567890123454= 6789012.tex:4: Preview: Snippet 1 started.
<-><->
=C2=A0 = =C2=A0 =C2=A0
l.4 \(
=C2=A0 =C2=A0 =C2=A0 x=3Dy\)
Preview: Tightp= age -32891 -32891 32891 32891
012345678901234546789012.tex:4: Preview: S= nippet 1 ended.(282168+127431x1593186).
<-><->
=C2=A0 =C2= =A0 =C2=A0
l.4 \(x=3Dy\)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0[1{C:/Users/johng/AppData/Local/MiKTeX/fonts/map/pdftex/pdftex.map}] )(see the transcript file for additional information)<C:/Users/johng/App= Data/Local/Programs/MiKTeX/fonts/type1/public/amsfonts/cm/cmmi10.pfb><= ;C:/Users/johng/AppData/Local/Programs/MiKTeX/fonts/type1/public/amsfonts/c= m/cmr10.pfb>
Output written on 012345678901234546789012.pdf (1 page, = 17918 bytes).
Transcript written on 012345678901234546789012.log.
TeX Output exited as expected with code 1 at Thu Aug 31 09:08:27
Runnin= g `Preview-PDF2DSC' with ``pdf2dsc "012345678901234546789012.pdf&q= uot; "012345678901234546789012.prv/tmpU0X9fd"/preview.dsc'= 9;

Preview-PDF2DSC finished at Thu Aug 31 09:08:27
Running `Previ= ew-Ghostscript' with ``"c:/Users/johng/AppData/Local/Programs/MiKT= eX/miktex/bin/x64/rungs.exe" ^"-sOutputFile=3D0123456789012345467= 89012.prv/tmpU0X9fd/pr1-^%d.png^" "-q" "-dDELAYSAFER&qu= ot; "-dNOPAUSE" "-DNOPLATFONTS" "-dPrinted" &= quot;-dTextAlphaBits=3D4" "-dGraphicsAlphaBits=3D4" "-s= DEVICE=3Dpng16m" "-r106.74x106.68"''

Preview-= Ghostscript finished at Thu Aug 31 09:08:28

On Thu, 31 Aug 2023 = at 06:21, Ikumi Keita <ikumi@ikumi.que.jp> wrote:
Hi John,

>>>>> John Holman <john.g.holman@gmail.com> writes:

> Document preview works when the filename has no more than 22 character= s,
> e.g. test.tex, but fails with message "Ghostscript filter: No bou= nding box"
> when the filename has more, e.g. 01234567890123456789012.tex. However<= br> > buffer preview always works.

I think the origin of this issue is the same as bug#27088:
https://debbugs.gnu.org/cgi/bugreport.cgi?bug= =3D27088

The log you provided seems to have extra line break discussed in the
above bug record thread:
> The contents of the *.. output* buffer are then

> 012345678901234546789012.tex:4: Preview: Snippet 1
> ended.(282168+127431x1593186
> ).
> <-><->

> l.4 \(x=3Dy\)

As I corrected in the above thread, MikTeX doesn't see the environment<= br> variable max_print_line unfortunately and you can try one of the
following two options:
(1) Add command line option --max-print-line=3D1000 to latex.
=C2=A0 =C2=A0 I expect you can use the customize option `preview-LaTeX-comm= and'
=C2=A0 =C2=A0 for that purpose.
(2) Edit the MikTeX config file and modify max_print_line parameter.

Regards,
Ikumi Keita
#StandWithUkraine #StopWarInUkraine
--000000000000c6be870604339e48-- From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 31 05:41:18 2023 Received: (at 65628) by debbugs.gnu.org; 31 Aug 2023 09:41:18 +0000 Received: from localhost ([127.0.0.1]:54876 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qbeAw-0002zb-K6 for submit@debbugs.gnu.org; Thu, 31 Aug 2023 05:41:18 -0400 Received: from smtp1a.inetd.co.jp ([210.129.88.11]:41846) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qbeAs-0002zL-P4 for 65628@debbugs.gnu.org; Thu, 31 Aug 2023 05:41:17 -0400 Received: from localhost (42-144-34-11.rev.home.ne.jp [42.144.34.11]) by smtp1a.inetd.co.jp (Postfix) with ESMTPA id 4FBA55C; Thu, 31 Aug 2023 18:41:03 +0900 (JST) From: Ikumi Keita To: John Holman Subject: Re: bug#65628: Document preview fails with long filenames In-reply-to: References: <58640.1693459280@localhost> Comments: In-reply-to John Holman message dated "Thu, 31 Aug 2023 09:13:23 +0100." X-Mailer: MH-E 8.6+git; nmh 1.7.1; Emacs 29.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <60910.1693474859.1@localhost> Date: Thu, 31 Aug 2023 18:40:59 +0900 Message-ID: <60911.1693474859@localhost> X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 65628 Cc: 65628@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 John, >>>>> John Holman writes: > Many thanks - your suggestion to use the customize option to add > --max-print-line=1000 to the pdflatex command line works at least for the > current test case. > Adding -max-print-line=1000 - one hyphen rather than two - also works. Thanks for the confirmation. I'll close this bug. > Perhaps auctex should be changed to add this as standard, since bug#27088 > suggests it could occur in various contexts? Unfortunately, --max-print-line is MikTeX specific option. TeX Live doesn't recognize it and see environment variable max_print_line. :-( I hope MikTeX to follow the TeX Live behavior. Regards, Ikumi Keita #StandWithUkraine #StopWarInUkraine From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 31 05:44:43 2023 Received: (at control) by debbugs.gnu.org; 31 Aug 2023 09:44:43 +0000 Received: from localhost ([127.0.0.1]:54890 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qbeEE-00035B-VU for submit@debbugs.gnu.org; Thu, 31 Aug 2023 05:44:43 -0400 Received: from smtp1a.inetd.co.jp ([210.129.88.11]:41856) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qbeED-000353-Ap for control@debbugs.gnu.org; Thu, 31 Aug 2023 05:44:41 -0400 Received: from localhost (42-144-34-11.rev.home.ne.jp [42.144.34.11]) by smtp1a.inetd.co.jp (Postfix) with ESMTPA id 617665C for ; Thu, 31 Aug 2023 18:44:32 +0900 (JST) To: control@debbugs.gnu.org From: Ikumi Keita Subject: control message for bug #65628 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <60948.1693475068.1@localhost> Date: Thu, 31 Aug 2023 18:44:29 +0900 Message-ID: <60949.1693475069@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 65628 notabug close 65628 quit From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 31 06:45:59 2023 Received: (at 65628) by debbugs.gnu.org; 31 Aug 2023 10:45:59 +0000 Received: from localhost ([127.0.0.1]:55008 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qbfBX-0007Pv-7z for submit@debbugs.gnu.org; Thu, 31 Aug 2023 06:45:59 -0400 Received: from mail-lj1-x22c.google.com ([2a00:1450:4864:20::22c]:55387) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qbfBU-0007Pi-TF for 65628@debbugs.gnu.org; Thu, 31 Aug 2023 06:45:57 -0400 Received: by mail-lj1-x22c.google.com with SMTP id 38308e7fff4ca-2b9338e4695so11758141fa.2 for <65628@debbugs.gnu.org>; Thu, 31 Aug 2023 03:45:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693478743; x=1694083543; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=qhlpyso78xUZUClCwYW1hcnRydqPMMzvzWPEILhUur0=; b=DAujSLtW4h0t83p2o5AzsCLDM8/laDiccvUfNfnBDRIZQnbok4CbRWnx3YV8hTZg3o Q4EnhmZ39WoNp3+a/M+MQH71V/KCSn8MvshRtgm7cFikuKnghQoWYb8FsUjdIphLwiLS 33qFkXBZk1MB2gLPCUhYAR7vcFX4rcCKamAtao4aQYAY6Z+XybtOzlXjAtSedpYrLVHs QcVdj+R2hzk1Jx02qSuizfUENtbqZxqWtsz/U812RkkR5mipPb4X6FxYStsYOHhxZdTi cVMFaQpFRiA7XXptgTOo/C8L1Z6RbDe9Wf0E3P4y/H3X7GUdyOYo0m3hmAuV5glBfS7I oRYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693478743; x=1694083543; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=qhlpyso78xUZUClCwYW1hcnRydqPMMzvzWPEILhUur0=; b=BCAiELeXr6mmNZSMrUVJAvgUBYdTqJyYU7R07Wuyh0eDGEmyWCQKENC1vTQ5ix65eD rE0KyRw6gMBjCQKZ3Tkh5DkQ1yijHVAAzbjTMfiUBeVXG3LP8VrlnCjpw2xOP1XJrKEW pjvMFie4ZxCE0z5KCNFajcMq7W8fA7BgLxpxnLa/KgayrBRWc+KTgrthXNMfxY7msESi ydIuW26vQkFXJdzJTrmSC2V73jkKHJDwx0uBmHEJZG/ha7alfg3InddLzNPbsQfI9p8j +RYjBOVrEIURIZg7FiD23vVujPE6kS4COBXut1DhHEPiI+geH9zc5lqxfcms7Njs3Yvg /FKg== X-Gm-Message-State: AOJu0YxZMYJMBjX/y8JyQA/XUhE9jTJ/aQosLYguhMXhCoOGmtiHtCKk OaAcQJz+inVk25G6ANrDiID4Nh4yh8DCDfZPFFo= X-Google-Smtp-Source: AGHT+IELoRe6iHaQhZIQuKcaaDjYzou72mvMY3+Dl3tXRp4EnFPrgQ91d4MstMkqL57jwOvivE6/O87Q7Rzxcy/+VM8= X-Received: by 2002:a2e:8603:0:b0:2bc:f245:a38 with SMTP id a3-20020a2e8603000000b002bcf2450a38mr4056589lji.4.1693478742529; Thu, 31 Aug 2023 03:45:42 -0700 (PDT) MIME-Version: 1.0 References: <58640.1693459280@localhost> <60911.1693474859@localhost> In-Reply-To: <60911.1693474859@localhost> From: John Holman Date: Thu, 31 Aug 2023 11:45:32 +0100 Message-ID: Subject: Re: bug#65628: Document preview fails with long filenames To: Ikumi Keita Content-Type: multipart/alternative; boundary="000000000000e21fab060435bed7" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 65628 Cc: 65628@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 (-) --000000000000e21fab060435bed7 Content-Type: text/plain; charset="UTF-8" Yes, this does look quite awkward to fix. But maybe mention the problem and workaround for MiKTeX users in the documentation somewhere? Thanks again for your help. --000000000000e21fab060435bed7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Yes, this does look quite awkward to fix. But maybe mentio= n the problem and workaround for MiKTeX users in the documentation=C2=A0som= ewhere?

Thanks again for your help.

=
--000000000000e21fab060435bed7-- From unknown Sun Jun 22 17:12:29 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, 28 Sep 2023 11:24:10 +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