emacs-elpa-diffs
[Top][All Lists]
Advanced

[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 '((?\{ . "(}") (?\} . "){")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]