branch: externals/auctex
commit 4e156561ba1fbb5275661fd1fd6c7e48d0fb2ec4
Author: Ikumi Keita <[email protected]>
Commit: Ikumi Keita <[email protected]>
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 *{"