auctex-diffs
[Top][All Lists]
Advanced

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

[AUCTeX-diffs] [elpa] externals/auctex afab0e0 17/34: Indent region (bug


From: Tassilo Horn
Subject: [AUCTeX-diffs] [elpa] externals/auctex afab0e0 17/34: Indent region (bug#48518)
Date: Sun, 6 Jun 2021 11:40:03 -0400 (EDT)

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

    Indent region (bug#48518)
    
    * latex.el (LaTeX-insert-environment): Indent active region when
    `auto-fill-mode' is disabled.
---
 latex.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/latex.el b/latex.el
index 2e2d209..abad7ec 100644
--- a/latex.el
+++ b/latex.el
@@ -825,7 +825,9 @@ environment just inserted, the buffer position just before
           (or (assoc environment LaTeX-indent-environment-list)
               (if auto-fill-function
                   ;; Fill the region only when `auto-fill-mode' is active.
-                  (LaTeX-fill-region content-start (line-beginning-position 
2))))
+                  (LaTeX-fill-region content-start (line-beginning-position 2))
+                ;; Else just indent the region. (bug#48518)
+                (indent-region content-start (line-beginning-position 2))))
           (set-mark content-start))
       (indent-according-to-mode))
     ;; Indent \end{foo}.




reply via email to

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