[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex 6e25d11aa6 44/77: Add comment
From: |
Tassilo Horn |
Subject: |
[elpa] externals/auctex 6e25d11aa6 44/77: Add comment |
Date: |
Fri, 26 Aug 2022 16:06:36 -0400 (EDT) |
branch: externals/auctex
commit 6e25d11aa6a852d0309d798dc54442dc561cd19f
Author: Jean-François B <jfbu@free.fr>
Commit: Ikumi Keita <ikumi@ikumi.que.jp>
Add comment
* preview.el.in (preview-cache-preamble): Add explanation of TeX codes
written in tempral .ini file.
Signed-off-by: Ikumi Keita <ikumi@ikumi.que.jp>
---
preview.el.in | 24 ++++++++++++++++++++++--
1 file changed, 22 insertions(+), 2 deletions(-)
diff --git a/preview.el.in b/preview.el.in
index cefa807ef9..51415301a5 100644
--- a/preview.el.in
+++ b/preview.el.in
@@ -3979,8 +3979,28 @@ If FORMAT-CONS is non-nil, a previous format may get
reused."
(preview-cache-preamble-off format-cons)
(setq format-cons (list format-name))
(push format-cons preview-dumped-alist))
- ;; mylatex.ltx expects a file name to follow. Bad. `.tex'
- ;; in the tools bundle is an empty file.
+ ;; mylatex.ltx expects a file name to follow. Bad.
+ ;; The file `.tex' in the tools bundle is solely emitting
+ ;; `File ignored', and `\input mylatex.ltx \relax' has the
+ ;; same effect as `\input mylatex.ltx .tex '.
+ ;; The \dump hacks accomplish, among others:
+ ;; - let TeX not ignore spaces (despite instructions to the
+ ;; contrary inserted into the format by mylatex.ltx)
+ ;; as we may need to input a `file name with spaces'.
+ ;; - work around the fact that the backslash `\' (as per
+ ;; mylatex.ltx mandate) has lost its standard TeX status
+ ;; once the format is loaded, and we could not use `\input'
+ ;; as in e.g. `pdflatex &abc '\input' abc.tex'. We
+ ;; configure TeX for `/' as substitute.
+ ;; - in place of such `/input', we will use `/AUCTEXINPUT'
+ ;; defined here in the dumped format to grab the file name,
+ ;; sanitize it via `\detokenize', then
+ ;; reset TeX to ignore spaces and execute `\input' which
+ ;; will skip the preamble already dumped.
+ ;; Prior to the patch adding `/AUCTEXINPUT', resetting the
+ ;; spaces to be ignored was included as part of `\everyjob',
+ ;; which was another way to delay this to after the filename
+ ;; was seen by TeX.
(write-region "\\let\\PREVIEWdump\\dump\\def\\dump{%
\\edef\\next{{\\ifx\\pdfoutput\\undefined\\else\
\\pdfoutput=\\the\\pdfoutput\\relax\\fi\
- [elpa] externals/auctex 46373674e2 22/77: ; Fix completion for counters made in 37e5a450, (continued)
- [elpa] externals/auctex 46373674e2 22/77: ; Fix completion for counters made in 37e5a450, Tassilo Horn, 2022/08/26
- [elpa] externals/auctex e30fda8130 26/77: ; Really silence the compiler for the change in 37e5a450, Tassilo Horn, 2022/08/26
- [elpa] externals/auctex 59ef475125 30/77: Simplify regexp, Tassilo Horn, 2022/08/26
- [elpa] externals/auctex 60ca36b5a1 39/77: ; * .gitignore: Exclude temp files produced by 2022-06-01 kernel., Tassilo Horn, 2022/08/26
- [elpa] externals/auctex d1f2c2cdb2 41/77: Add new style/proc.el, Tassilo Horn, 2022/08/26
- [elpa] externals/auctex 054b38887b 42/77: Fix (void-variable compilation-in-progress) error, Tassilo Horn, 2022/08/26
- [elpa] externals/auctex b24dcb4feb 40/77: Track changes in LaTeX kernel 2022-06-01, Tassilo Horn, 2022/08/26
- [elpa] externals/auctex 4163bb5c42 66/77: Fix `autoconf` warnings, Tassilo Horn, 2022/08/26
- [elpa] externals/auctex ead30464d8 64/77: * style/listings.el (TeX-add-style-hook): Update fontification., Tassilo Horn, 2022/08/26
- [elpa] externals/auctex 7d7e563862 34/77: * doc/changes.texi: Add NEWS item for the previous commit., Tassilo Horn, 2022/08/26
- [elpa] externals/auctex 6e25d11aa6 44/77: Add comment,
Tassilo Horn <=
- [elpa] externals/auctex 4a3d7a2dc2 60/77: Suppress indentation of verbatim env's in docTeX-mode, Tassilo Horn, 2022/08/26
- [elpa] externals/auctex ce4bb7c1b6 58/77: ; * style/doc.el: Delete spurious `declare-function'., Tassilo Horn, 2022/08/26
- [elpa] externals/auctex d1d1bd819d 47/77: Control the opening and closing braces during insertion, Tassilo Horn, 2022/08/26
- [elpa] externals/auctex 23f4040c9d 57/77: Add new test, Tassilo Horn, 2022/08/26
- [elpa] externals/auctex 04b9a6d1f9 56/77: Improve shortvrb.sty support, Tassilo Horn, 2022/08/26
- [elpa] externals/auctex 33a01b6928 59/77: Extend test for filling, Tassilo Horn, 2022/08/26
- [elpa] externals/auctex cb0a1e6be1 72/77: Improve function calls to retrieve key=vals in style hooks, Tassilo Horn, 2022/08/26
- [elpa] externals/auctex e194656ce2 28/77: Let RefTeX recognize labels in user defined environments, Tassilo Horn, 2022/08/26
- [elpa] externals/auctex 64a8e189a3 19/77: Remove compatibility code, Tassilo Horn, 2022/08/26
- [elpa] externals/auctex 6fe2f21e96 31/77: ; Fix warnings about single quotes in docstrings, Tassilo Horn, 2022/08/26