[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex d47a6e8716 29/77: Support complex \input path (b
From: |
Tassilo Horn |
Subject: |
[elpa] externals/auctex d47a6e8716 29/77: Support complex \input path (bug#55511) |
Date: |
Fri, 26 Aug 2022 16:06:34 -0400 (EDT) |
branch: externals/auctex
commit d47a6e87160efc133c534f20969a03bbe2802a41
Author: Ikumi Keita <ikumi@ikumi.que.jp>
Commit: Ikumi Keita <ikumi@ikumi.que.jp>
Support complex \input path (bug#55511)
* latex.el (LaTeX-auto-regexp-list): Allow ".." to appear more than
once in an argument of \input.
Support path surrounded by double quotes.
* tex.el (plain-TeX-auto-regexp-list): Allow ".." to appear more than
once in an argument of \input.
(TeX-auto-file): Defvar properly.
---
latex.el | 3 +--
tex.el | 6 +++++-
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/latex.el b/latex.el
index 8bdbc94b7d..a6a775a845 100644
--- a/latex.el
+++ b/latex.el
@@ -52,7 +52,6 @@
;; Silence the compiler for variables:
(defvar outline-heading-alist)
-(defvar TeX-auto-file)
(defvar LaTeX-section-list-changed)
;;; Syntax
@@ -1779,7 +1778,7 @@ This is necessary since index entries may contain
commands and stuff.")
("\\\\newenvironment\\*?{\\([^}]+\\)}"
1 LaTeX-auto-environment)
(,(concat "\\\\newtheorem{\\(" token "+\\)}") 1 LaTeX-auto-environment)
- ("\\\\input{\\(\\.*[^#}%\\\\\\.\n\r]+\\)\\(\\.[^#}%\\\\\\.\n\r]+\\)?}"
+ ("\\\\input{\"?\\([^#}%\"\\\n\r]+?\\)\\(?:\\.[^#}%/\"\\.\n\r]+\\)?\"?}"
1 TeX-auto-file)
("\\\\include{\\(\\.*[^#}%\\\\\\.\n\r]+\\)\\(\\.[^#}%\\\\\\.\n\r]+\\)?}"
1 TeX-auto-file)
diff --git a/tex.el b/tex.el
index 1a3338c795..8b76f98d32 100644
--- a/tex.el
+++ b/tex.el
@@ -3841,6 +3841,10 @@ The algorithm is as follows:
(defconst TeX-auto-parser-local 3)
(defconst TeX-auto-parser-change 4)
+(defvar TeX-auto-file nil)
+;; Internal temporal variable. Don't refer to it in your program
+;; unless you know what you are doing. Use (TeX-style-list) instead.
+
(defun TeX-auto-add-information (name entries)
"For NAME in `TeX-auto-parser' add ENTRIES."
(let* ((entry (assoc name TeX-auto-parser))
@@ -4227,7 +4231,7 @@ alter the numbering of any ordinary, non-shy groups.")
1 TeX-auto-symbol)
(,(concat "\\\\newfont{?\\\\\\(" token "+\\)}?") 1 TeX-auto-symbol)
(,(concat "\\\\typein\\[\\\\\\(" token "+\\)\\]") 1 TeX-auto-symbol)
- ("\\\\input +\\(\\.*[^#%\\\\\\.\n\r]+\\)\\(\\.[^#%\\\\\\.\n\r]+\\)?"
+ ("\\\\input +\\([^#}%\"\\\n\r]+?\\)\\(?:\\.[^#}%/\"\\.\n\r]+\\)?"
1 TeX-auto-file)
(,(concat "\\\\mathchardef\\\\\\(" token "+\\)[^a-zA-Z@]")
1 TeX-auto-symbol)))
- [elpa] externals/auctex 71a288a2fe 08/77: Add styles for iftex bundle, (continued)
- [elpa] externals/auctex 71a288a2fe 08/77: Add styles for iftex bundle, Tassilo Horn, 2022/08/26
- [elpa] externals/auctex 9ede1fa203 03/77: Improve insertion of & in matrix-like environments, Tassilo Horn, 2022/08/26
- [elpa] externals/auctex 7846cb9f94 04/77: Mention 'M-RET' alias which runs `LaTeX-insert-item', Tassilo Horn, 2022/08/26
- [elpa] externals/auctex ba6e5ef69c 07/77: ; Fix warnings reported by 'make dynvars-check', Tassilo Horn, 2022/08/26
- [elpa] externals/auctex 619f329595 10/77: * tex-ispell.el (TeX-ispell-skip-cmds-list): Support shortvrb.sty., Tassilo Horn, 2022/08/26
- [elpa] externals/auctex fabe675915 12/77: Adapt regression test for the previous commit, Tassilo Horn, 2022/08/26
- [elpa] externals/auctex ecf8b28cda 14/77: Add new style/multibib.el, Tassilo Horn, 2022/08/26
- [elpa] externals/auctex e9af1e68fb 15/77: Fix preview-latex to work with desktop.el again, Tassilo Horn, 2022/08/26
- [elpa] externals/auctex 37e5a450a3 20/77: Complete LaTeX lengths and counters, Tassilo Horn, 2022/08/26
- [elpa] externals/auctex 3f0d5a7411 23/77: Add support for \linespread macro, Tassilo Horn, 2022/08/26
- [elpa] externals/auctex d47a6e8716 29/77: Support complex \input path (bug#55511),
Tassilo Horn <=
- [elpa] externals/auctex 9378b66daa 61/77: Add TODO, Tassilo Horn, 2022/08/26
- [elpa] externals/auctex 9a3078e510 68/77: Fix comments and doc strings, 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 3447aa75c3 32/77: ; Further fixes about single quotes in docstrings, 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 545129e1c3 55/77: * style/shortvrb.el: Add missing macros incl. fontification., Tassilo Horn, 2022/08/26
- [elpa] externals/auctex 010a1e24be 01/77: Follow up the previous commit, Tassilo Horn, 2022/08/26
- [elpa] externals/auctex fa547aa71e 02/77: Don't increase indentation after \iff, Tassilo Horn, 2022/08/26
- [elpa] externals/auctex f33df119ce 06/77: Ensure "make maintainer-clean" deletes dynvars files, Tassilo Horn, 2022/08/26
- [elpa] externals/auctex 58bc18eaf7 11/77: Be more robust against false positive, Tassilo Horn, 2022/08/26