[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 290/299: Fix LaTeX-newline when comment-auto-fill-only-comments i
From: |
Stefan Monnier |
Subject: |
[elpa] 290/299: Fix LaTeX-newline when comment-auto-fill-only-comments is non-nil. |
Date: |
Sun, 02 Nov 2014 03:12:02 +0000 |
monnier pushed a commit to branch externals/auctex
in repository elpa.
commit 435d80fb12ba99b435ff252dca0521e75f178ef2
Author: Mosè Giordano <address@hidden>
Date: Wed Oct 22 15:38:42 2014 +0200
Fix LaTeX-newline when comment-auto-fill-only-comments is non-nil.
* latex.el (LaTeX-newline): Fix for when
`comment-auto-fill-only-comments' is non-nil. Suggested by Piet
van Oostrum.
---
ChangeLog | 6 ++++++
latex.el | 8 +++++++-
2 files changed, 13 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index d91774a..24e2066 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2014-10-22 Mos� Giordano <address@hidden>
+
+ * latex.el (LaTeX-newline): Fix for when
+ `comment-auto-fill-only-comments' is non-nil. Suggested by Piet
+ van Oostrum.
+
2014-10-13 Matthew Leach <address@hidden>
* style/cleveref.el: New file.
diff --git a/latex.el b/latex.el
index 143cb4e..565807b 100644
--- a/latex.el
+++ b/latex.el
@@ -80,8 +80,14 @@ This depends on `LaTeX-insert-into-comments'."
(concat "[ \t]*" TeX-comment-start-regexp "+[ \t]*")))
(delete-region (match-beginning 0) (match-end 0))
(indent-new-comment-line))
+ ;; `indent-new-comment-line' does nothing when
+ ;; `comment-auto-fill-only-comments' is non-il, so we must be sure
+ ;; to be in a comment before calling it. In any other case
+ ;; `newline' is used.
+ ((TeX-in-comment)
+ (indent-new-comment-line))
(t
- (indent-new-comment-line)))
+ (newline)))
(newline)))
- [elpa] 273/299: Change again method to determine whether a label should be inserted., (continued)
- [elpa] 273/299: Change again method to determine whether a label should be inserted., Stefan Monnier, 2014/11/01
- [elpa] 266/299: Auto insertion of ampersands., Stefan Monnier, 2014/11/01
- [elpa] 280/299: Bugfix in file name expansion., Stefan Monnier, 2014/11/01
- [elpa] 283/299: Document TeX-add-style-hook's new 3rd argument., Stefan Monnier, 2014/11/01
- [elpa] 279/299: Add test for the %` expander., Stefan Monnier, 2014/11/01
- [elpa] 281/299: Remove defalias docstring arg., Stefan Monnier, 2014/11/01
- [elpa] 278/299: Fix the expansion of %' in TeX-expand-list., Stefan Monnier, 2014/11/01
- [elpa] 286/299: Rename LaTeX-amstext-package-option to LaTeX-amstext-package-options., Stefan Monnier, 2014/11/01
- [elpa] 285/299: Use `push-mark' instead of `set-mark'., Stefan Monnier, 2014/11/01
- [elpa] 284/299: Fix \end buffer position passed to hooks., Stefan Monnier, 2014/11/01
- [elpa] 290/299: Fix LaTeX-newline when comment-auto-fill-only-comments is non-nil.,
Stefan Monnier <=
- [elpa] 287/299: Docstring fix., Stefan Monnier, 2014/11/01
- [elpa] 276/299: Code cleanup and optimizations., Stefan Monnier, 2014/11/01
- [elpa] 288/299: Avoid duplicate marks in TeX-insert-dollar., Stefan Monnier, 2014/11/01
- [elpa] 289/299: Add style for cleverref., Stefan Monnier, 2014/11/01
- [elpa] 295/299: Fix in LaTeX-largest-level-set for XEmacs compatibility., Stefan Monnier, 2014/11/01
- [elpa] 291/299: Build HTML doc with makeinfo if texi2html is not available., Stefan Monnier, 2014/11/01
- [elpa] 296/299: Fix indentation of tabularx environment closing., Stefan Monnier, 2014/11/01
- [elpa] 292/299: Update for upcoming release., Stefan Monnier, 2014/11/01
- [elpa] 298/299: Release_11.88, Stefan Monnier, 2014/11/01
- [elpa] 297/299: Minor fix to previous change., Stefan Monnier, 2014/11/01