[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex 715a88a5f2 22/39: Treat backslash in verbatim ma
From: |
Tassilo Horn |
Subject: |
[elpa] externals/auctex 715a88a5f2 22/39: Treat backslash in verbatim macro arguments correctly |
Date: |
Thu, 20 Jul 2023 04:21:50 -0400 (EDT) |
branch: externals/auctex
commit 715a88a5f265135a13e860119a252c3fbf8b4e41
Author: Arash Esbati <arash@gnu.org>
Commit: Arash Esbati <arash@gnu.org>
Treat backslash in verbatim macro arguments correctly
* tex.el (TeX-brace-count-line): Check if the ?\\ char is inside a
verbatim construct where the backslash doesn't escape the next
character. (bug#63441)
(TeX-search-syntax-table): Remove unneeded escaping in docstring.
---
tex.el | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/tex.el b/tex.el
index b862d3c2fe..0a5e6cbd4d 100644
--- a/tex.el
+++ b/tex.el
@@ -5485,7 +5485,10 @@ additional characters."
(setq count (- count TeX-brace-indent-level)))
((eq char ?\\)
(when (< (point) limit)
- (forward-char)
+ ;; ?\\ in verbatim constructs doesn't escape
+ ;; the next char
+ (unless (TeX-verbatim-p)
+ (forward-char))
t))))))
count)))
@@ -5508,7 +5511,7 @@ It should be accessed through the function
`TeX-search-syntax-table'.")
"Return a syntax table for searching purposes.
ARGS may be a list of characters. For each of them the
respective predefined syntax is set. Currently the parenthetical
-characters ?{, ?}, ?[, ?], ?\(, ?\), ?<, and ?> are supported.
+characters ?{, ?}, ?[, ?], ?(, ?), ?<, and ?> are supported.
The syntax of each of these characters not specified will be
reset to \" \"."
(let ((char-syntax-alist '((?\{ . "(}") (?\} . "){")
- [elpa] externals/auctex 3b38bd625b 04/39: Fontify \sloppy and \fussy, (continued)
- [elpa] externals/auctex 3b38bd625b 04/39: Fontify \sloppy and \fussy, Tassilo Horn, 2023/07/20
- [elpa] externals/auctex 2017d97b0e 09/39: Rewrite *-unload-hook to *-unload-function, Tassilo Horn, 2023/07/20
- [elpa] externals/auctex 6439edca63 12/39: Clean up Texinfo mode, Tassilo Horn, 2023/07/20
- [elpa] externals/auctex c9ab5d58f3 19/39: Update style/babel.el to package version 3.88, Tassilo Horn, 2023/07/20
- [elpa] externals/auctex cdd0cbf33a 03/39: Add new style/soul.el, Tassilo Horn, 2023/07/20
- [elpa] externals/auctex 22ba857c53 06/39: Improve fontification within shortvrb delimiters, Tassilo Horn, 2023/07/20
- [elpa] externals/auctex 87e8cb0369 05/39: Simplify implementation of style/pythontex.el, Tassilo Horn, 2023/07/20
- [elpa] externals/auctex befc4a49bb 07/39: Fix style/changelog.el, Tassilo Horn, 2023/07/20
- [elpa] externals/auctex 7e420cff9b 08/39: ; * style/soul.el ("soul"): Use `LaTeX-soul-auto-cleanup'., Tassilo Horn, 2023/07/20
- [elpa] externals/auctex 0cb158fd96 21/39: Improve fontification of verbatim macros with braces, Tassilo Horn, 2023/07/20
- [elpa] externals/auctex 715a88a5f2 22/39: Treat backslash in verbatim macro arguments correctly,
Tassilo Horn <=
- [elpa] externals/auctex e1290af3e7 25/39: Remove definition of `LaTeX-label-list' in bib-cite.el, Tassilo Horn, 2023/07/20
- [elpa] externals/auctex fe42de7cf6 26/39: Obey buffer-local value of TeX-error-overview-open-after-TeX-run, Tassilo Horn, 2023/07/20
- [elpa] externals/auctex 11e9dbfdf3 30/39: Track last change for \newtheorem macro in styles, Tassilo Horn, 2023/07/20
- [elpa] externals/auctex 658340b188 32/39: Remove requiring a match during `completing-read', Tassilo Horn, 2023/07/20
- [elpa] externals/auctex 6d34e1f1ae 34/39: Simplify implementation of style/paralist.el, Tassilo Horn, 2023/07/20
- [elpa] externals/auctex d6fb3c58ce 01/39: Be more resilient when parsing arguments, Tassilo Horn, 2023/07/20
- [elpa] externals/auctex 5bfc2cb68a 11/39: Clean up ConTeXt mode, Tassilo Horn, 2023/07/20
- [elpa] externals/auctex c67f5d75b2 14/39: ; * Makefile.in (STYLESRC): Fix last change., Tassilo Horn, 2023/07/20
- [elpa] externals/auctex 93fa8bde57 17/39: Introduce new fontification keywords class "function-noarg", Tassilo Horn, 2023/07/20
- [elpa] externals/auctex 2969b24b52 16/39: ; * style/wasysym.el: Silence warnings from 'make dynvars-check'., Tassilo Horn, 2023/07/20