emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/auctex 154fc6e 28/34: Only re-fill \item contents if au


From: Tassilo Horn
Subject: [elpa] externals/auctex 154fc6e 28/34: Only re-fill \item contents if auto-fill-mode is active (bug#48760)
Date: Sun, 6 Jun 2021 11:40:05 -0400 (EDT)

branch: externals/auctex
commit 154fc6ee0fd866a757a39f0a778f51d3451e524d
Author: Tassilo Horn <tsdh@gnu.org>
Commit: Tassilo Horn <tsdh@gnu.org>

    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).
---
 latex.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

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)))



reply via email to

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