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

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

[elpa] externals/auctex 4e15656 19/71: Cleanup indentation of verbatim e


From: Tassilo Horn
Subject: [elpa] externals/auctex 4e15656 19/71: Cleanup indentation of verbatim environments
Date: Fri, 17 Dec 2021 15:00:28 -0500 (EST)

branch: externals/auctex
commit 4e156561ba1fbb5275661fd1fd6c7e48d0fb2ec4
Author: Ikumi Keita <ikumi@ikumi.que.jp>
Commit: Ikumi Keita <ikumi@ikumi.que.jp>

    Cleanup indentation of verbatim environments
    
    * latex.el (LaTeX-begin-regexp): Delete because this variable isn't
    used anywhere.
    (LaTeX-indent-calculate-last): Remove redundant regexp grouping.
---
 latex.el | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)

diff --git a/latex.el b/latex.el
index d833b0f..9630556 100644
--- a/latex.el
+++ b/latex.el
@@ -3564,13 +3564,6 @@ functions, see `LaTeX-fill-region-as-paragraph'."
   :group 'LaTeX-indentation
   :type 'regexp)
 
-(defcustom LaTeX-verbatim-regexp "verbatim\\*?"
-  "Regexp matching environments with indentation at col 0 for begin/end."
-  :group 'LaTeX-indentation
-  :type 'regexp)
-(make-obsolete-variable 'LaTeX-verbatim-regexp 
'LaTeX-verbatim-environments-local
-                        "2014-12-19")
-
 (defcustom LaTeX-begin-regexp "begin\\b\\|\\["
   "Regexp matching macros considered begins."
   :group 'LaTeX-indentation
@@ -3850,12 +3843,12 @@ outer indentation in case of a commented line.  The 
symbols
            ;; environment.
            0)
           ((looking-at (concat (regexp-quote TeX-esc)
-                               "begin *{\\("
+                               "begin *{"
                                ;; Don't give optional argument here
                                ;; because indent would be disabled
                                ;; inside comment env otherwise.
                                (LaTeX-verbatim-regexp)
-                               "\\)}"))
+                               "}"))
            0)
           ((looking-at (concat (regexp-quote TeX-esc)
                                "end *{"



reply via email to

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