auctex-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/auctex 338c5d0a4b 30/37: * latex.el (LaTeX-auto-index-r


From: Tassilo Horn
Subject: [elpa] externals/auctex 338c5d0a4b 30/37: * latex.el (LaTeX-auto-index-regexp-list): Save regexp groups.
Date: Wed, 11 Oct 2023 03:41:57 -0400 (EDT)

branch: externals/auctex
commit 338c5d0a4bd4ebad92549a8425e51fd346e4df5c
Author: Arash Esbati <arash@gnu.org>
Commit: Arash Esbati <arash@gnu.org>

    * latex.el (LaTeX-auto-index-regexp-list): Save regexp groups.
---
 latex.el | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/latex.el b/latex.el
index f374e558c4..e36455c66c 100644
--- a/latex.el
+++ b/latex.el
@@ -1747,9 +1747,15 @@ right number."
   "List of regular expression matching LaTeX labels only.")
 
 (defvar LaTeX-auto-index-regexp-list
-   
'(("\\\\\\(index\\|glossary\\){\\([^}{]*\\({[^}{]*\\({[^}{]*\\({[^}{]*}[^}{]*\\)*}[^}{]*\\)*}[^}{]*\\)*\\)}"
-        2 LaTeX-auto-index-entry))
-   "List of regular expression matching LaTeX index/glossary entries only.
+  `((,(concat "\\\\\\(?:index\\|glossary\\)"
+              "{\\([^}{]*"
+              "\\(?:{[^}{]*"
+              "\\(?:{[^}{]*"
+              "\\(?:{[^}{]*}[^}{]*\\)*}"
+              "[^}{]*\\)*}"
+              "[^}{]*\\)*\\)}")
+     1 LaTeX-auto-index-entry))
+  "List of regular expression matching LaTeX index/glossary entries only.
 Regexp allows for up to 3 levels of parenthesis inside the index argument.
 This is necessary since index entries may contain commands and stuff.")
 




reply via email to

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