[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 edb15b8f26 43/77: Follow up the previous commit, (continued)
- [elpa] externals/auctex edb15b8f26 43/77: Follow up the previous commit, Tassilo Horn, 2022/08/26
- [elpa] externals/auctex 728db25bf7 69/77: Update documentation, Tassilo Horn, 2022/08/26
- [elpa] externals/auctex 33a01b6928 59/77: Extend test for filling, Tassilo Horn, 2022/08/26
- [elpa] externals/auctex 5c5aa78de0 71/77: Fix doc string, 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 010a1e24be 01/77: Follow up the previous commit, Tassilo Horn, 2022/08/26
- [elpa] externals/auctex c39fe6d1d6 13/77: Delete compatibility code, Tassilo Horn, 2022/08/26
- [elpa] externals/auctex ecf8b28cda 14/77: Add new style/multibib.el, Tassilo Horn, 2022/08/26
- [elpa] externals/auctex 37e5a450a3 20/77: Complete LaTeX lengths and counters, Tassilo Horn, 2022/08/26
- [elpa] externals/auctex 9ca155cdb0 25/77: Improve fontification of kernel macros, Tassilo Horn, 2022/08/26
- [elpa] externals/auctex d47a6e8716 29/77: Support complex \input path (bug#55511),
Tassilo Horn <=
- [elpa] externals/auctex 6fe2f21e96 31/77: ; Fix warnings about single quotes in docstrings, Tassilo Horn, 2022/08/26
- [elpa] externals/auctex 4770d57dba 38/77: Support different number of arguments for \hyperref, Tassilo Horn, 2022/08/26
- [elpa] externals/auctex daaff30b4a 36/77: Follow elisp quoting convention, Tassilo Horn, 2022/08/26
- [elpa] externals/auctex 192f201f96 49/77: Add new style/microtype.el, Tassilo Horn, 2022/08/26
- [elpa] externals/auctex cc70633aa6 51/77: ; * preview.el.in (preview-reference-face): Fix warning., Tassilo Horn, 2022/08/26
- [elpa] externals/auctex 812368af6a 62/77: Update documentation about C-M-a and C-M-e, 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 04b9a6d1f9 56/77: Improve shortvrb.sty support, Tassilo Horn, 2022/08/26