[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] elpa f23fbd6 14/23: Fill environment content onley when auto-fill
From: |
Tassilo Horn |
Subject: |
[elpa] elpa f23fbd6 14/23: Fill environment content onley when auto-fill-mode is active |
Date: |
Wed, 30 Mar 2016 19:08:03 +0000 |
branch: elpa
commit f23fbd66c507b18c4210561406fa5d2facefa26b
Author: Mosè Giordano <address@hidden>
Commit: Mosè Giordano <address@hidden>
Fill environment content onley when auto-fill-mode is active
* latex.el (LaTeX-insert-environment): Fill only when
`auto-fill-function' is non-nil, that means auto-fill-mode is active.
Reported by Florian Lindner.
---
latex.el | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/latex.el b/latex.el
index c0b0baf..9c2ccb5 100644
--- a/latex.el
+++ b/latex.el
@@ -720,7 +720,9 @@ environment just inserted, the buffer position just before
(if active-mark
(progn
(or (assoc environment LaTeX-indent-environment-list)
- (LaTeX-fill-region content-start (line-beginning-position 2)))
+ (if auto-fill-function
+ ;; Fill the region only when `auto-fill-mode' is active.
+ (LaTeX-fill-region content-start (line-beginning-position
2))))
(set-mark content-start))
(indent-according-to-mode))
(save-excursion (beginning-of-line 2) (indent-according-to-mode))
- [elpa] elpa updated (df2c08f -> 7573813), Tassilo Horn, 2016/03/30
- [elpa] elpa a8a803c 02/23: Call TeX-after-compilation-finished-functions on warnings, Tassilo Horn, 2016/03/30
- [elpa] elpa ae34515 03/23: Better control for presence of errors, Tassilo Horn, 2016/03/30
- [elpa] elpa 0f8baf6 16/23: TikZ: Ignore case when prompting for argument types., Tassilo Horn, 2016/03/30
- [elpa] elpa 4a1728b 15/23: TikZ: Apply suggestions from checkdoc., Tassilo Horn, 2016/03/30
- [elpa] elpa cf4ce35 18/23: TikZ: Add more path connector types., Tassilo Horn, 2016/03/30
- [elpa] elpa f23fbd6 14/23: Fill environment content onley when auto-fill-mode is active,
Tassilo Horn <=
- [elpa] elpa eddf3ff 20/23: Fix previous commit, Tassilo Horn, 2016/03/30
- [elpa] elpa 608e874 01/23: Add the beginnings of TikZ support., Tassilo Horn, 2016/03/30
- [elpa] elpa 201ed15 06/23: Fix a misplaced closing parenthesis, Tassilo Horn, 2016/03/30
- [elpa] elpa 1288609 07/23: Add fontification support, Tassilo Horn, 2016/03/30
- [elpa] elpa 00740ed 08/23: TikZ: split out the prompts to TeX-TikZ-arg-node & TeX-TikZ-macro-arg., Tassilo Horn, 2016/03/30
- [elpa] elpa c49b547 17/23: TikZ: Rename 'text' to 'label' to be consistent with TikZ terminology., Tassilo Horn, 2016/03/30
- [elpa] elpa 1cb2678 04/23: Delete redundant code, Tassilo Horn, 2016/03/30
- [elpa] elpa bb67e18 13/23: TikZ: Add 'Named Point' point type with completion., Tassilo Horn, 2016/03/30
- [elpa] elpa 0423aae 19/23: New function TeX-error-report-has-errors-p, Tassilo Horn, 2016/03/30
- [elpa] elpa df60ed5 05/23: Fix the name of argument in function body, Tassilo Horn, 2016/03/30