monnier pushed a commit to branch externals/auctex
in repository elpa.

commit c806f76f1ce218e2e2ee7b78e66bbac8548270ef
Author: Tassilo Horn <t...@gnu.org>
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  <t...@gnu.org>
+
+       * latex.el (LaTeX-close-environment): Remove non-interactive
+       `next-line' usage compile warning.
+
 2014-03-10  Tassilo Horn  <t...@gnu.org>
 
        * 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

Reply via email to