This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU AUCTeX".

The branch, master has been updated
       via  c2f6e9c4ad208ebddadd42a0314a59503399d00f (commit)
      from  0c15d1af0de1f989065c3028332d4e33f29b95bb (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit c2f6e9c4ad208ebddadd42a0314a59503399d00f
Author: Mosè Giordano <m...@gnu.org>
Date:   Mon Mar 30 16:19:24 2015 +0200

    [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)

diff --git a/ChangeLog b/ChangeLog
index 71f2f99..6d4d5e0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2015-03-30  Mosè Giordano  <m...@gnu.org>
+
+       * 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  <m...@gnu.org>
 
        * 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 ()

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog |    7 +++++++
 latex.el  |    6 +-----
 2 files changed, 8 insertions(+), 5 deletions(-)


hooks/post-receive
-- 
GNU AUCTeX

_______________________________________________
auctex-diffs mailing list
auctex-di...@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-diffs

Reply via email to