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. 154fc6ee0fd866a757a39


From: Tassilo Horn
Subject: [AUCTeX-diffs] GNU AUCTeX branch, master, updated. 154fc6ee0fd866a757a39f0a778f51d3451e524d
Date: Tue, 1 Jun 2021 09:27:57 -0400 (EDT)

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  154fc6ee0fd866a757a39f0a778f51d3451e524d (commit)
      from  bb1bb2539b3a48bd9e2b92ee6f21651dad14a042 (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 154fc6ee0fd866a757a39f0a778f51d3451e524d
Author: Tassilo Horn <tsdh@gnu.org>
Date:   Tue Jun 1 15:26:35 2021 +0200

    Only re-fill \item contents if auto-fill-mode is active (bug#48760)
    
    * latex.el (LaTeX-env-item): Only fill the paragraph of the new \item
    if auto-fill-mode is activated (bug#48760).

diff --git a/latex.el b/latex.el
index 3ed35a9..8145158 100644
--- a/latex.el
+++ b/latex.el
@@ -1077,8 +1077,9 @@ If nil, act like the empty string is given, but do not 
prompt."
   (deactivate-mark)
   (LaTeX-insert-item)
   ;; The inserted \item may have outdented the first line to the
-  ;; right.  Fill it, if appropriate.
-  (when (and (not (looking-at "$"))
+  ;; right.  Fill it, if appropriate and `auto-fill-mode' is active.
+  (when (and auto-fill-function
+             (not (looking-at "$"))
              (not (assoc environment LaTeX-indent-environment-list))
              (> (- (line-end-position) (line-beginning-position))
                 (current-fill-column)))

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

Summary of changes:
 latex.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
GNU AUCTeX



reply via email to

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