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

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

[nongnu] elpa/visual-fill-column 2048a0ce91 089/137: turn-on-visual-fill


From: ELPA Syncer
Subject: [nongnu] elpa/visual-fill-column 2048a0ce91 089/137: turn-on-visual-fill-column-mode: Do not depend on `visual-line-mode`.
Date: Sun, 2 Jan 2022 22:59:14 -0500 (EST)

branch: elpa/visual-fill-column
commit 2048a0ce91d7baeadaab447c9c2b4a1a4827a83c
Author: Joost Kremers <joostkremers@fastmail.fm>
Commit: Joost Kremers <joostkremers@fastmail.fm>

    turn-on-visual-fill-column-mode: Do not depend on `visual-line-mode`.
    
    Testing for `visual-line-mode` doesn't appear to be reliable, presumably 
because
    the order in which globalised minor modes are activated in a buffer is not
    defined.
    
    This should fix the first part of Github issue #44.
---
 visual-fill-column.el | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/visual-fill-column.el b/visual-fill-column.el
index 12eb67c0fb..1aa27a1fa5 100644
--- a/visual-fill-column.el
+++ b/visual-fill-column.el
@@ -93,8 +93,7 @@ this option is set to a value, it is used instead."
 Note that `visual-fill-column-mode' is only turned on in buffers
 in which Visual Line mode is active as well, and only in buffers
 that actually visit a file."
-  (when (and visual-line-mode
-             buffer-file-name)
+  (when buffer-file-name
     (visual-fill-column-mode 1)))
 
 (defun visual-fill-column-mode--enable ()



reply via email to

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