auctex-diffs
[Top][All Lists]
Advanced

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

[AUCTeX-diffs] GNU AUCTeX branch, master, updated. c806f76f1ce218e2e2ee7


From: Tassilo Horn
Subject: [AUCTeX-diffs] GNU AUCTeX branch, master, updated. c806f76f1ce218e2e2ee7b78e66bbac8548270ef
Date: Tue, 11 Mar 2014 09:07:03 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU AUCTeX".

The branch, master has been updated
       via  c806f76f1ce218e2e2ee7b78e66bbac8548270ef (commit)
      from  988f6040581d8b149d4e2d559ecd2adcbfc8a599 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
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.

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

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog |    5 +++++
 latex.el  |    5 ++---
 2 files changed, 7 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
GNU AUCTeX



reply via email to

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