[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 054b38887b 42/77: Fix (void-variable compilation-in-progress) error, (continued)
- [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 e3657144f5 53/77: Partial fix of region preview with TeX-output-dir feature, Tassilo Horn, 2022/08/26
- [elpa] externals/auctex 9a3078e510 68/77: Fix comments and doc strings, Tassilo Horn, 2022/08/26
- [elpa] externals/auctex 3447aa75c3 32/77: ; Further fixes about single quotes in docstrings, Tassilo Horn, 2022/08/26
- [elpa] externals/auctex 30f7a1ca68 63/77: Don't use void function texinfo-outline-level, Tassilo Horn, 2022/08/26
- [elpa] externals/auctex fade32d568 54/77: Don't break line inside \verb-like macro (bug#56160), Tassilo Horn, 2022/08/26
- [elpa] externals/auctex 9b5cf4b550 27/77: Fix insertion of second optional argument, Tassilo Horn, 2022/08/26
- [elpa] externals/auctex 39e0062235 46/77: Introduce face and keyword class for underlined text, 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 6e25d11aa6 44/77: Add comment,
Tassilo Horn <=
- [elpa] externals/auctex ce4bb7c1b6 58/77: ; * style/doc.el: Delete spurious `declare-function'., Tassilo Horn, 2022/08/26
- [elpa] externals/auctex 06db9e302b 75/77: Add new style/tcolorboxlib-theorems.el, Tassilo Horn, 2022/08/26
- [elpa] externals/auctex f2138e9a74 33/77: New option for saving auto parsed information (bug#55511), Tassilo Horn, 2022/08/26
- [elpa] externals/auctex 4486056d50 16/77: Add new style/ltcaption.el, Tassilo Horn, 2022/08/26
- [elpa] externals/auctex 019bcc9cc3 48/77: ; * style/proc.el: Fix a typo., 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 8404fe8b18 17/77: Provide generic completion functions, Tassilo Horn, 2022/08/26
- [elpa] externals/auctex b377080c80 50/77: Add notification about xelatex in preview-latex doc, Tassilo Horn, 2022/08/26
- [elpa] externals/auctex fe15af59d0 76/77: Merge remote-tracking branch 'origin/master' into externals/auctex, Tassilo Horn, 2022/08/26
- [elpa] externals/auctex 19a2607b42 73/77: Unbreak building with Emacs 29 after obsoleting autoload.el, Tassilo Horn, 2022/08/26