[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 228/299: Squash a byte-compiler warning.
From: |
Stefan Monnier |
Subject: |
[elpa] 228/299: Squash a byte-compiler warning. |
Date: |
Sun, 02 Nov 2014 03:11:37 +0000 |
monnier pushed a commit to branch externals/auctex
in repository elpa.
commit c806f76f1ce218e2e2ee7b78e66bbac8548270ef
Author: Tassilo Horn <address@hidden>
Date: Tue Mar 11 10:05:47 2014 +0100
Squash a byte-compiler warning.
* latex.el (LaTeX-close-environment): Remove non-interactive
`next-line' usage compile warning.
---
ChangeLog | 5 +++++
latex.el | 5 ++---
2 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 9809535..8ed8232 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-03-11 Tassilo Horn <address@hidden>
+
+ * latex.el (LaTeX-close-environment): Remove non-interactive
+ `next-line' usage compile warning.
+
2014-03-10 Tassilo Horn <address@hidden>
* latex.el (LaTeX-fill-break-at-separators): Default to opening
diff --git a/latex.el b/latex.el
index 38fb677..0c0a298 100644
--- a/latex.el
+++ b/latex.el
@@ -605,9 +605,8 @@ With prefix-argument, reopen environment afterwards."
(save-excursion (beginning-of-line 2)
(not (TeX-in-commented-line)))))
(LaTeX-newline)
- (let ((next-line-add-newlines t))
- (next-line 1)
- (beginning-of-line)))
+ (unless (= (forward-line 1) 0)
+ (insert "\n")))
(indent-according-to-mode)
(when reopen
(save-excursion
- [elpa] 217/299: Use default parameter of completing-read., (continued)
- [elpa] 217/299: Use default parameter of completing-read., Stefan Monnier, 2014/11/01
- [elpa] 218/299: Use default parameter of `completing-read'., Stefan Monnier, 2014/11/01
- [elpa] 213/299: *** empty log message ***, Stefan Monnier, 2014/11/01
- [elpa] 219/299: Add WHEN arg to make-obsolete calls, Stefan Monnier, 2014/11/01
- [elpa] 221/299: Add an english style., Stefan Monnier, 2014/11/01
- [elpa] 220/299: Convert TeX-auto-add-type to a macro., Stefan Monnier, 2014/11/01
- [elpa] 222/299: New variable to pass options to the TeX processor., Stefan Monnier, 2014/11/01
- [elpa] 224/299: Fix selection of default environment in LaTeX-environment., Stefan Monnier, 2014/11/01
- [elpa] 225/299: Fix minor documentation bug., Stefan Monnier, 2014/11/01
- [elpa] 229/299: Advice instead of fset + redefine., Stefan Monnier, 2014/11/01
- [elpa] 228/299: Squash a byte-compiler warning.,
Stefan Monnier <=
- [elpa] 226/299: Improve defaults for filling., Stefan Monnier, 2014/11/01
- [elpa] 230/299: Fix bug causing endless package queries., Stefan Monnier, 2014/11/01
- [elpa] 232/299: Fix some FIXMEs., Stefan Monnier, 2014/11/01
- [elpa] 223/299: Prompt for packages inside LaTeX-env-document., Stefan Monnier, 2014/11/01
- [elpa] 233/299: Prevent an infinite loop in TeX-command-expand., Stefan Monnier, 2014/11/01
- [elpa] 227/299: Fix missing quote., Stefan Monnier, 2014/11/01
- [elpa] 235/299: Enable TeX-PDF-mode by default., Stefan Monnier, 2014/11/01
- [elpa] 236/299: Add new style/exercise.el., Stefan Monnier, 2014/11/01
- [elpa] 231/299: Make TeX-completing-read-multiple return nil on empty input., Stefan Monnier, 2014/11/01
- [elpa] 239/299: Silence assignment to free variable warnings., Stefan Monnier, 2014/11/01