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

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

[elpa] externals/auctex c2f6e9c 08/11: [Fix #20227] Fix indentation of \


From: Tassilo Horn
Subject: [elpa] externals/auctex c2f6e9c 08/11: [Fix #20227] Fix indentation of \[...\] math mode.
Date: Sat, 11 Apr 2015 12:02:42 +0000

branch: externals/auctex
commit c2f6e9c4ad208ebddadd42a0314a59503399d00f
Author: Mosè Giordano <address@hidden>
Commit: Mosè Giordano <address@hidden>

    [Fix #20227] Fix indentation of \[...\] math mode.
    
    * latex.el (LaTeX-begin-regexp): Add "\[".
    (LaTeX-indent-calculate): Remove indentation of "\[...\]" from
    here, it is automatically done in `LaTeX-indent-level-count' now
    that `LaTeX-begin-regexp' has "\[".  (Bug#20227)
---
 ChangeLog |    7 +++++++
 latex.el  |    6 +-----
 2 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 71f2f99..6d4d5e0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2015-03-30  Mos� Giordano  <address@hidden>
+
+       * latex.el (LaTeX-begin-regexp): Add "\[".
+       (LaTeX-indent-calculate): Remove indentation of "\[...\]" from
+       here, it is automatically done in `LaTeX-indent-level-count' now
+       that `LaTeX-begin-regexp' has "\[".  (Bug#20227)
+
 2015-03-28  Mos� Giordano  <address@hidden>
 
        * style/acro.el:
diff --git a/latex.el b/latex.el
index 6ebcfb6..187f1b6 100644
--- a/latex.el
+++ b/latex.el
@@ -2943,7 +2943,7 @@ indentation level in columns."
 (make-obsolete-variable 'LaTeX-verbatim-regexp 
'LaTeX-verbatim-environments-local
                        "2014-12-19")
 
-(defcustom LaTeX-begin-regexp "begin\\b"
+(defcustom LaTeX-begin-regexp "begin\\b\\|\\["
   "*Regexp matching macros considered begins."
   :group 'LaTeX-indentation
   :type 'regexp)
@@ -3141,10 +3141,6 @@ outer indentation in case of a commented line.  The 
symbols
             ;; End brace in the start of the line.
             (- (LaTeX-indent-calculate-last force-type)
                TeX-brace-indent-level))
-           ((and (texmathp)
-                 ;; Display math \[...\], treat as a generic environment.
-                 (equal "\\[" (car texmathp-why)))
-            LaTeX-indent-level)
            (t (LaTeX-indent-calculate-last force-type))))))
 
 (defun LaTeX-indent-level-count ()



reply via email to

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