auctex-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/auctex 9ab3f77d53 31/39: * style/ntheorem.el (ntheorem"


From: Tassilo Horn
Subject: [elpa] externals/auctex 9ab3f77d53 31/39: * style/ntheorem.el (ntheorem"): Simplify additions to the parser.
Date: Thu, 20 Jul 2023 04:21:51 -0400 (EDT)

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

    * style/ntheorem.el (ntheorem"): Simplify additions to the parser.
---
 style/ntheorem.el | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/style/ntheorem.el b/style/ntheorem.el
index 282c285e55..7396970d6f 100644
--- a/style/ntheorem.el
+++ b/style/ntheorem.el
@@ -122,13 +122,9 @@ make them available as new environments.  Update
  (lambda ()
 
    (TeX-auto-add-regexp
-    `(,(concat "\\\\newtheorem{\\(" TeX-token-char "+\\)}")
-      1 LaTeX-auto-ntheorem-newtheorem))
-   (TeX-auto-add-regexp
-    `(,(concat "\\\\newframedtheorem{\\(" TeX-token-char "+\\)}")
-      1 LaTeX-auto-ntheorem-newtheorem))
-   (TeX-auto-add-regexp
-    `(,(concat "\\\\newshadedtheorem{\\(" TeX-token-char "+\\)}")
+    `(,(concat "\\\\"
+               (regexp-opt '("newtheorem" "newframedtheorem" 
"newshadedtheorem"))
+               "{\\(" TeX-token-char "+\\)}")
       1 LaTeX-auto-ntheorem-newtheorem))
    (TeX-auto-add-regexp
     `(,(concat "\\\\newtheoremstyle{\\(" TeX-token-char "+\\)}")




reply via email to

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