From unknown Wed Sep 10 13:55:51 2025 X-Loop: help-debbugs@gnu.org Subject: bug#31685: 12.1.1; Preview with cached preamble fails with lualatex engine and filenames with spaces Resent-From: jfbu Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Sat, 02 Jun 2018 12:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 31685 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: 31685@debbugs.gnu.org X-Debbugs-Original-To: bug-auctex@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.152794156111226 (code B ref -1); Sat, 02 Jun 2018 12:13:02 +0000 Received: (at submit) by debbugs.gnu.org; 2 Jun 2018 12:12:41 +0000 Received: from localhost ([127.0.0.1]:58450 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fP5Oj-0002uy-Bj for submit@debbugs.gnu.org; Sat, 02 Jun 2018 08:12:41 -0400 Received: from eggs.gnu.org ([208.118.235.92]:32788) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fP5Oh-0002um-Lb for submit@debbugs.gnu.org; Sat, 02 Jun 2018 08:12:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fP5Oa-0000Eq-Ne for submit@debbugs.gnu.org; Sat, 02 Jun 2018 08:12: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]:36744) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fP5Oa-0000Ed-Jg for submit@debbugs.gnu.org; Sat, 02 Jun 2018 08:12:32 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51962) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fP5OZ-00008o-2F for bug-auctex@gnu.org; Sat, 02 Jun 2018 08:12:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fP5OV-00009I-Sl for bug-auctex@gnu.org; Sat, 02 Jun 2018 08:12:31 -0400 Received: from smtp01.univ-lille1.fr ([2001:660:4401:100::19]:52744) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fP5OV-000078-Hv for bug-auctex@gnu.org; Sat, 02 Jun 2018 08:12:27 -0400 Received: from smtps2.univ-lille1.fr (smtps2.univ-lille1.fr [193.49.225.53]) by smtp01.univ-lille1.fr (8.14.3/8.14.3) with ESMTP id w52CCNpE030981 for ; Sat, 2 Jun 2018 14:12:23 +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 w52CCOKa007867 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Sat, 2 Jun 2018 14:12:26 +0200 From: jfbu Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Message-Id: <6E0DE545-1A2A-412F-AE75-22FD2FCF865D@free.fr> Date: Sat, 2 Jun 2018 14:12:20 +0200 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: w52CCNpE030981 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-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 \documentclass{article} \def\abc{abc} \begin{document} $\abc$ \end{document} and switch engine to luatex. Then generate previews for document, answering yes to caching preamble. This fails=20 1. the cached format can not be generated Running `Preview-LaTeX' on `abc def ghi' with ``lualatex -ini = -interaction=3Dnonstopmode "&lualatex" prv_abc_def_ghi.ini \ def\ ghi = -file-line-error = "\nonstopmode\nofiles\PassOptionsToPackage{active,tightpage,auctex}{previe= w}\AtBeginDocument{\ifx\ifPreview\undefined\RequirePackage[displaymath,flo= ats,graphics,textmath,sections,footnotes]{preview}[2004/11/05]\fi}" = "\input" \"abc\ def\ ghi.tex\"'' notice that the above is ill-formed (see \ def\ ghi -file-line-error) = bit This is LuaTeX, Version 1.07.0 (TeX Live 2018) (INITEX) restricted system commands enabled. (./prv_abc_def_ghi.ini LaTeX2e <2018-04-01> patch level 5 (using write cache: = /usr/local/texlive/2018/texmf-var/luatex-cache/generic)(using read = cache: /usr/local/texlive/2018/texmf-var/luatex-cache/generic = /Users/jfb/Library/texlive/2018/texmf-var/luatex-cache/generic) luaotfload | main : initialization completed in 0.116 seconds = (/usr/local/texlive/2018/texmf-dist/tex/latex/carlisle/mylatex.ltx)) ! I can't find file `def'. <*> &lualatex prv_abc_def_ghi.ini def=20 ghi -file-line-error = \nonstopmode\nofile... (Press Enter to retry, or Control-D to exit) Please type another input file name ! Emergency stop. <*> &lualatex prv_abc_def_ghi.ini def=20 ghi -file-line-error = \nonstopmode\nofile... 246 words of node memory still in use: 1 dir, 35 glue_spec nodes avail lists: 2:12,3:1,4:1 ! =3D=3D> Fatal error occurred, no output PDF file produced! Transcript written on prv_abc_def_ghi.log. 2. even the fallback of not using cached preamble fails (see bug = #31684) Running `Preview-LaTeX' on `abc def ghi' with ``lualatex --jobname=3Dabc\ = def\ ghi -file-line-error = "\nonstopmode\nofiles\PassOptionsToPackage{active,tightpage,auctex}{previe= w}\AtBeginDocument{\ifx\ifPreview\undefined\RequirePackage[displaymath,flo= ats,graphics,textmath,sections,footnotes]{preview}[2004/11/05]\fi}" = "\input" \"abc\ def\ ghi.tex\"'' This is LuaTeX, Version 1.07.0 (TeX Live 2018)=20 restricted system commands enabled. LaTeX2e <2018-04-01> patch level 5 (using write cache: = /usr/local/texlive/2018/texmf-var/luatex-cache/generic)(using read = cache: /usr/local/texlive/2018/texmf-var/luatex-cache/generic = /Users/jfb/Library/texlive/2018/texmf-var/luatex-cache/generic) luaotfload | main : initialization completed in 0.108 seconds No auxiliary output files. ("./abc def ghi.tex" = (/usr/local/texlive/2018/texmf-dist/tex/latex/base/article.cls Document Class: article 2014/09/29 v1.4h Standard LaTeX document class (/usr/local/texlive/2018/texmf-dist/tex/latex/base/size10.clo(load luc: = /usr/local/texlive/2018/texmf-var/luatex-cache/generic/fonts/otl/lmroman10= -regular.luc))) No file "abc def ghi".aux. (/Users/jfb/.emacs.d/elpa/auctex-12.1.1/latex/preview.sty = (/usr/local/texlive/2018/texmf-dist/tex/generic/luatex85/luatex85.sty) = (/Users/jfb/.emacs.d/elpa/auctex-12.1.1/latex/prtightpage.def) = (/Users/jfb/.emacs.d/elpa/auctex-12.1.1/latex/prauctex.def No auxiliary output files. (/Users/jfb/.emacs.d/elpa/auctex-12.1.1/latex/prauctex.cfg)) = (/Users/jfb/.emacs.d/elpa/auctex-12.1.1/latex/prfootnotes.def) Preview: Fontsize 10pt Preview: PDFoutput 1 ) ./abc def ghi.tex:4: Preview: Snippet 1 started. <-><-> =20 l.4 $ \abc$ Preview: Tightpage -32891 -32891 32891 32891 ./abc def ghi.tex:4: Preview: Snippet 1 ended.(455111+0x911285). <-><-> =20 l.4 $\abc$ =20 = [1{/usr/local/texlive/2018/texmf-var/fonts/map/pdftex/updmap/pdftex.map}])= (see the transcript file for additional information) 362 words of node memory still in use: 2 hlist, 1 vlist, 1 rule, 2 glue, 4 attribute, 45 glue_spec, 4 = attribute_list, 2 write nodes avail lists: 2:14,3:3,4:1,5:11,6:1,7:7,8:3,9:2 = Output written on abc def ghi.pdf (1 page, 8584 bytes). Transcript written on "abc def ghi.log". TeX Output exited as expected with code 1 at Sat Jun 2 14:03:07 Running `Preview-DviPNG' with ``dvipng -picky -noghostscript abc\ def\ = ghi.dvi -o "abc\ def\ ghi.prv/tmp14898GFt/prev%03d.png" -D186 '' Parser: End of Preview snippet 1 unexpected Preview-DviPNG killed: 9 at Sat Jun 2 14:03:07 Related notes: 1. Actually caching the preamble when using lualatex is very fragile. It = would break or at least be in inconsistent state if any Lua code is executed in the = preamble. Nevertheless, for simple file above, if filename has no spaces, then = preview generation appears to work as expected (in PDF mode, luatex engine) 2. When using xelatex, the situation is even simpler, it is impossible = currently to use mylatex.ltx with it. = https://github.com/davidcarlisle/dpctex/issues/15 =20 This is with AUCTeX 12.1.1. Jean-Fran=E7ois From unknown Wed Sep 10 13:55:51 2025 X-Loop: help-debbugs@gnu.org Subject: bug#31685: 12.1.1; Preview with cached preamble fails with lualatex engine and filenames with spaces Resent-From: Ikumi Keita Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Mon, 04 Jun 2018 18:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31685 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: 31685@debbugs.gnu.org Cc: jfbu Received: via spool by 31685-submit@debbugs.gnu.org id=B31685.152813530517959 (code B ref 31685); Mon, 04 Jun 2018 18:02:01 +0000 Received: (at 31685) by debbugs.gnu.org; 4 Jun 2018 18:01:45 +0000 Received: from localhost ([127.0.0.1]:33616 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fPtnd-0004fa-GJ for submit@debbugs.gnu.org; Mon, 04 Jun 2018 14:01:45 -0400 Received: from smtp1.inetd.co.jp ([210.129.88.11]:39526) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fPtna-0004fP-Op for 31685@debbugs.gnu.org; Mon, 04 Jun 2018 14:01:43 -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 2AECBC2; Tue, 5 Jun 2018 03:01:40 +0900 (JST) From: Ikumi Keita In-reply-to: <6E0DE545-1A2A-412F-AE75-22FD2FCF865D@free.fr> References: <6E0DE545-1A2A-412F-AE75-22FD2FCF865D@free.fr> Comments: In-reply-to jfbu message dated "Sat, 02 Jun 2018 14:12:20 +0200." X-Mailer: MH-E 8.6+git; nmh 1.7.1; GNU Emacs 26.1 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Date: Tue, 05 Jun 2018 03:01:39 +0900 Message-ID: <23633.1528135299@localhost> X-Spam-Score: -0.0 (/) 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 (-) --=-=-= Content-Type: text/plain Hi all, >>>>> jfbu writes: > 1. the cached format can not be generated > Running `Preview-LaTeX' on `abc def ghi' with ``lualatex -ini -interaction=nonstopmode "&lualatex" prv_abc_def_ghi.ini \ def\ ghi -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" \"abc\ def\ ghi.tex\"'' > notice that the above is ill-formed (see \ def\ ghi -file-line-error) bit During the personal correspondence between Jean and me, we reach a resolution. First of all, Jean kindly provided a new .ini code which enables preamble cache with unusual file name for not only lualatex, but also platex and uplatex! This makes platex and uplatex to be able to use preamble cache even with file names with space. (This case caused error before; That's independent of my recent commits.) Next, he found out that an option -file-line-error is necessary in `preview-undump-replacements' for lualatex to use preamble cache on file name with space. In addition, it turned out that -kanji option of platex cannot be omitted even when dumping format file if the preamble contains Japanese characters. I combined the due change to cope with these issues and made up the attached patch. It dismisses the additional post process of the command line string in `TeX-inline-preview-internal' to the effect of not leaving unnecessary fragments in the command line string when file name with space is used with lualatex. ---------------------------------------------------------------------- However, I'm puzzled now by very weird emacs 26 behavior. Currently, I cannot sort out regression test yet. On my environment, simple test vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv (require 'ert) (ert-deftest weird-cond () "check for `cond'" (should (equal (xyz t) 2))) (defun xyz (arg) "dummy" ; (cond ((eq arg nil) ; OK ; (cond ((eq arg 'abc) ; OK ; (cond ((eq arg 'def) ; OK (cond ((eq arg 'default) ; NG ; (cond ((eq arg 'default1) ; OK 1) (t 2))) (byte-compile 'xyz) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ fails; i.e., after evaluating these forms, M-x ert RET RET fails on emacs 26.1. Does this reproduce with others? 0. Because of this behavior, `LaTeX-includegraphics-extensions' in tests/latex/latex-test.el doesn't pass "make check" with emacs 26.1. 1. As the commens in the above suggests, only the symbol `default' triggers this behavior. 2. Emacs 25.3 doesn't have this problem. 3. If `xyz' is not byte compiled, the test does pass. 4. It seems that the following entry in NEWS is related: ** Certain cond/pcase/cl-case forms are now compiled using a faster jump table implementation. This uses a new bytecode op 'switch', which isn't compatible with previous Emacs versions. This functionality can be disabled by setting 'byte-compile-cond-use-jump-table' to nil. If I replace the last line in the above example with (let ((byte-compile-cond-use-jump-table nil)) (byte-compile 'xyz)) , the test does pass. ---------------------------------------------------------------------- > 2. even the fallback of not using cached preamble fails (see bug #31684) Though I haven't examined this issue yet, I guess that preview-latex assumes that fallback run always produces dvi file. In actual, pdf file is produced in this case: > Output written on abc def ghi.pdf (1 page, 8584 bytes). > Transcript written on "abc def ghi.log". Therefore dvipng fails: > TeX Output exited as expected with code 1 at Sat Jun 2 14:03:07 > Running `Preview-DviPNG' with ``dvipng -picky -noghostscript abc\ def\ ghi.dvi -o "abc\ def\ ghi.prv/tmp14898GFt/prev%03d.png" -D186 '' > Parser: End of Preview snippet 1 unexpected > Preview-DviPNG killed: 9 at Sat Jun 2 14:03:07 Regards, Ikumi Keita --=-=-= Content-Type: application/x-gzip Content-Disposition: attachment; filename=luatex-preamble-cache.gz Content-Transfer-Encoding: base64 Content-Description: apply to the current git repo H4sICElvFVsCA2x1YXRleC1wcmVhbWJsZS1jYWNoZQC9V3tv2zYQ/9v+FAcVmeXKVOp4WR9D0Gxr NwQYhmJrtwJli8rSyWYjkZpEJXZdf/cdH3Lt2Gu6p5HoQd77fndHZSLPgbGZ0JAcVzVeCbyOsYiF hOnue58xdpOmH0XRHt35ObDJyVcPRg8hsvfxGM7P+9CHMMM8bRutSvAsLGvLitVYFUmKJUrd9AFg EHbbPybP8SVLVVkmMtuliwC+/houyPrLRL4ToCotlARciEY3I6hEegnkVVtB0oCeIzSYKplBmeh0 Hnv2J6JJkzqDpChAEVHtxTSxsQMgDDh/y3n46g28jjgf8j6jN/qDiLllbn7Ba84/2Ccem6fg1Rta u8uJe3jX/xN57O6DoM+s9NjKHwMTUpiLxjpJjfozSSZoVZUqQ+DBF0TEAwg2UctVTW4wmZQIQWy4 OT8NhsNhn4wMHz8Cd6MLY49teM42HvAPzG462zeWv4rh9SHT3W3L9GjfdM5P/rH5E2s+SQ5+QEmC NEICBh3gsw95TbgxiWybNik6Yd12HBjmR7NaUcYHnaaC5Czshl5WSMAiCGGiPUbvEzbvGZA+uDca TyxIez1KOuGkgUbXQs7Ac9DiXImUULQsp6rwu0P7+xNot3If3P8DaAfhAdBCfPcxmJxyLmTVakoH D1bmNUOtLlGK97gyiz7TtLteG/pDWD2c54Pp7bOe0XT8zYvvnj99efHTsxfPnZoTo4EH/x1myQ0K 1990eRfjn4Q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YCi8OuoPz7cFPIIZ0b2oIo3QmY2ZMpBM7gAEKp5xCO mREqZ/RMUskCezVC/gBJNKqpcA4AAA== --=-=-=-- From unknown Wed Sep 10 13:55:51 2025 X-Loop: help-debbugs@gnu.org Subject: bug#31685: 12.1.1; Preview with cached preamble fails with lualatex engine and filenames with spaces Resent-From: Ikumi Keita Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Thu, 07 Jun 2018 06:01:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31685 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: 31685@debbugs.gnu.org Cc: jfbu Received: via spool by 31685-submit@debbugs.gnu.org id=B31685.15283512513775 (code B ref 31685); Thu, 07 Jun 2018 06:01:01 +0000 Received: (at 31685) by debbugs.gnu.org; 7 Jun 2018 06:00:51 +0000 Received: from localhost ([127.0.0.1]:37348 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fQnyc-0000yp-RU for submit@debbugs.gnu.org; Thu, 07 Jun 2018 02:00:51 -0400 Received: from smtp1.inetd.co.jp ([210.129.88.11]:56852) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fQnya-0000ye-5R for 31685@debbugs.gnu.org; Thu, 07 Jun 2018 02:00:49 -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 4B5CAB5; Thu, 7 Jun 2018 15:00:45 +0900 (JST) From: Ikumi Keita In-reply-to: <23633.1528135299@localhost> References: <6E0DE545-1A2A-412F-AE75-22FD2FCF865D@free.fr> <23633.1528135299@localhost> Comments: In-reply-to Ikumi Keita message dated "Tue, 05 Jun 2018 03:01:39 +0900." X-Mailer: MH-E 8.6+git; nmh 1.7.1; GNU Emacs 26.1 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Date: Thu, 07 Jun 2018 15:00:44 +0900 Message-ID: <69633.1528351244@localhost> X-Spam-Score: -0.0 (/) 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 (-) --=-=-= Content-Type: text/plain >>>>> Ikumi Keita writes: >>>>> jfbu writes: >> 1. the cached format can not be generated [...] > I combined the due change to cope with these issues and made up the > attached patch. The previous patch doesn't play nice with non-ascii characters escaped with backslash again, so I revised it further. The attached patch is for the current git repository. The regexp in `preview-dump-replacements' is changed from \\\. (written as \\\\\\. in string literal) to \\. (written as \\\\. in string leteral) this time. Whereas the former matches a sequence of "a backslash followed by a period", I can't think of a reason to distinguish period from other chars in the context here. So I changed it to the latter so that any chars escaped with backslash are treated equally. The same regexp is used in `preview-undump-replacements', too. I also revised the regression test since the previous one didn't test what should be tested actually, and added another test. If other problems aren't found, I'll commit this in several days. > ---------------------------------------------------------------------- > However, I'm puzzled now by very weird emacs 26 behavior. Currently, I > cannot sort out regression test yet. I filed a bug report at https://debbugs.gnu.org/cgi/bugreport.cgi?bug=31718 and a fix is proposed. It isn't yet clear whether this fix is incorportated in Emacs officially. Anyway, without this fix, `LaTeX-includegraphics-extensions(-list)' in style/graphicx.el doesn't return the correct value when `TeX-engine' is neither `default', `luatex' nor `xetex', when byte-compiled by emacs 26. In addition, other codes that have a structure of (cond ((eq TeX-engine 'default) ...) ... (t ...)) suffer similar failure, if there are any such codes. Regards, Ikumi Keita --=-=-= Content-Type: application/x-gzip Content-Disposition: attachment; filename=luatex-preamble-cache2.gz Content-Transfer-Encoding: base64 Content-Description: revised patch; apply to the current git repo H4sICOm9GFsCA2x1YXRleC1wcmVhbWJsZS1jYWNoZTIAzVprd9s2Ev1s/oV+war1SgpF2pLt+JGk cZpH122SzUmcbM4J4w1EghJtimAJ0rbW9X/fOwBISbYcu9nuns1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2bY9z9YzH+/xitSyq4PxSkurPdIdwUl+7d 49L9M+LSbXbpTwnFVe43m14ehiKfVcX2V/NFmBmf2hWyzgjPuv6yH5ajaTYWC72HldbDyf71dLaa 03i/ijRtsHJmg8ZMRgM7tP7W8AYFQRLP8GeBWr83pqV+c4zTCGjUboIeSjQf6wqPyKtGDIrPnHhN 1XN3tHXMUaOX686G84zZ9Grxbebdm7nRvYEbXQfefMCubQKwn1MMISmoqEKHl/QfX9iH+v8P7DmO 828mvvDM0SQAAA== --=-=-=-- From unknown Wed Sep 10 13:55:51 2025 X-Loop: help-debbugs@gnu.org Subject: bug#31685: copyright assignment Resent-From: Ikumi Keita Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Sat, 09 Jun 2018 13:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31685 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: Tassilo Horn , =?UTF-8?Q?Mos=C3=A8?= Giordano , Arash Esbati , David Kastrup Cc: auctex-devel@gnu.org, 31685@debbugs.gnu.org, jfbu Received: via spool by 31685-submit@debbugs.gnu.org id=B31685.152855240620009 (code B ref 31685); Sat, 09 Jun 2018 13:54:02 +0000 Received: (at 31685) by debbugs.gnu.org; 9 Jun 2018 13:53:26 +0000 Received: from localhost ([127.0.0.1]:40454 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fReJ4-0005Cf-7g for submit@debbugs.gnu.org; Sat, 09 Jun 2018 09:53:26 -0400 Received: from smtp1.inetd.co.jp ([210.129.88.11]:38520) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fReJ1-0005CV-QL for 31685@debbugs.gnu.org; Sat, 09 Jun 2018 09:53:24 -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 C767761; Sat, 9 Jun 2018 22:53:20 +0900 (JST) From: Ikumi Keita In-reply-to: <69633.1528351244@localhost> References: <6E0DE545-1A2A-412F-AE75-22FD2FCF865D@free.fr> <23633.1528135299@localhost> <69633.1528351244@localhost> Comments: In-reply-to Ikumi Keita message dated "Thu, 07 Jun 2018 15:00:44 +0900." X-Mailer: MH-E 8.6+git; nmh 1.7.1; GNU Emacs 26.1 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Date: Sat, 09 Jun 2018 22:53:20 +0900 Message-ID: <94904.1528552400@localhost> X-Spam-Score: -0.0 (/) 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 Tassilo, Mos=E8, Arash and David, > First of all, Jean kindly provided a new .ini code which enables > preamble cache with unusual file name for not only lualatex, but also > platex and uplatex! > If other problems aren't found, I'll commit this in several days. Alhough I didn't think well before, now I think Jean's contribution of .ini code related to this topic is big enough to need to get copyright assignment. Here is the diff in preview.el.in with respect to his contribution: @@ -3315,10 +3331,13 @@ (push format-cons preview-dumped-alist)) ;; mylatex.ltx expects a file name to follow. Bad. `.tex' ;; in the tools bundle is an empty file. - (write-region "\\ifx\\pdfoutput\\undefined\\else\ -\\let\\PREVIEWdump\\dump\\def\\dump{% -\\edef\\next{{\\catcode`\\ 9 \\pdfoutput=3D\\the\\pdfoutput\\relax\ -\\the\\everyjob}}\\everyjob\\next\\catcode`\\ 10 \\let\\dump\\PREVIEWdump\= \dump}\\fi\\input mylatex.ltx \\relax\n" nil dump-file) + (write-region "\\let\\PREVIEWdump\\dump\\def\\dump{% +\\edef\\next{{\\ifx\\pdfoutput\\undefined\\else\ +\\pdfoutput=3D\\the\\pdfoutput\\relax\\fi\ +\\the\\everyjob}}\\everyjob\\next\\catcode`\\ 10 % +\\catcode`/ 0 % +\\def\\AUCTEXINPUT##1{\\catcode`/ 12\\relax\\catcode`\\ 9\\relax\\input\\d= etokenize{##1}\\relax}% +\\let\\dump\\PREVIEWdump\\dump}\\input mylatex.ltx \\relax%\n" nil dump-fi= le) (TeX-save-document master) (prog1 (preview-generate-preview I already asked him and he answered that he is fine with giving over his copyright, so could you please provide him instructions of necessary procedure? Best regards, Ikumi Keita From unknown Wed Sep 10 13:55:51 2025 X-Loop: help-debbugs@gnu.org Subject: bug#31685: 12.1.1; Preview with cached preamble fails with lualatex engine and filenames with spaces Resent-From: Ikumi Keita Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Tue, 12 Jun 2018 06:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31685 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: Cc: 31685@debbugs.gnu.org, jfbu Received: via spool by 31685-submit@debbugs.gnu.org id=B31685.152878391926090 (code B ref 31685); Tue, 12 Jun 2018 06:12:02 +0000 Received: (at 31685) by debbugs.gnu.org; 12 Jun 2018 06:11:59 +0000 Received: from localhost ([127.0.0.1]:43958 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fScX9-0006mj-9i for submit@debbugs.gnu.org; Tue, 12 Jun 2018 02:11:59 -0400 Received: from smtp1.inetd.co.jp ([210.129.88.11]:51264) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fScX7-0006mb-GO for 31685@debbugs.gnu.org; Tue, 12 Jun 2018 02:11:58 -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 4700899; Tue, 12 Jun 2018 15:11:55 +0900 (JST) From: Ikumi Keita In-reply-to: <69633.1528351244@localhost> References: <6E0DE545-1A2A-412F-AE75-22FD2FCF865D@free.fr> <23633.1528135299@localhost> <69633.1528351244@localhost> Comments: In-reply-to Ikumi Keita message dated "Thu, 07 Jun 2018 15:00:44 +0900." 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: <15055.1528783914.1@localhost> Date: Tue, 12 Jun 2018 15:11:54 +0900 Message-ID: <15058.1528783914@localhost> X-Spam-Score: 1.2 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: >>>>> Ikumi Keita writes: > If other problems aren't found, I'll commit this in several days. Done. The copyright assignment from Jean is in due process. [...] Content analysis details: (1.2 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [210.129.88.11 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 1.2 MISSING_HEADERS Missing To: header 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.2 (/) >>>>> Ikumi Keita writes: > If other problems aren't found, I'll commit this in several days. Done. The copyright assignment from Jean is in due process. Best, Ikumi Keita From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 01 02:07:25 2018 Received: (at control) by debbugs.gnu.org; 1 Nov 2018 06:07:25 +0000 Received: from localhost ([127.0.0.1]:57664 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gI68b-0004xq-Ci for submit@debbugs.gnu.org; Thu, 01 Nov 2018 02:07:25 -0400 Received: from smtp1.inetd.co.jp ([210.129.88.11]:45354) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gI68X-0004xg-DT for control@debbugs.gnu.org; Thu, 01 Nov 2018 02:07:21 -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 A1B18A9 for ; Thu, 1 Nov 2018 15:07:20 +0900 (JST) To: control@debbugs.gnu.org From: Ikumi Keita Subject: control message for bug #31685 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <60068.1541052440.1@localhost> Date: Thu, 01 Nov 2018 15:07:20 +0900 Message-ID: <60069.1541052440@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 31685 fixed close 31685