[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/spell-fu f6c849f860 30/86: Fix disabling spell-fu when use
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/spell-fu f6c849f860 30/86: Fix disabling spell-fu when used without a timer |
Date: |
Thu, 7 Jul 2022 12:03:40 -0400 (EDT) |
branch: elpa/spell-fu
commit f6c849f8604b32e752ec0ea7d5aa90fdbc912a17
Author: Campbell Barton <ideasman42@gmail.com>
Commit: Campbell Barton <ideasman42@gmail.com>
Fix disabling spell-fu when used without a timer
Also fix for timers not being removed when disabled with a timer.
---
spell-fu.el | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/spell-fu.el b/spell-fu.el
index 73e2925438..ae8553444e 100644
--- a/spell-fu.el
+++ b/spell-fu.el
@@ -557,8 +557,8 @@ Argument FACES-EXCLUDE faces to check POS excludes or
ignored when nil."
(defun spell-fu--immediate-disable ()
"Disable immediate spell checking."
- (spell-fu--remove-overlays)
- (jit-lock-unregister #'spell-fu--font-lock-fontify-region))
+ (jit-lock-unregister #'spell-fu--font-lock-fontify-region)
+ (spell-fu--remove-overlays))
;; ---------------------------------------------------------------------------
@@ -655,6 +655,7 @@ range POINT-START to POINT-END. Otherwise remove all
overlays."
(defun spell-fu--idle-disable ()
"Disable the idle style of updating."
(jit-lock-unregister #'spell-fu--idle-font-lock-region-pending)
+ (spell-fu--remove-overlays)
(spell-fu--idle-timer-disable)
(spell-fu--idle-remove-overlays))
@@ -689,7 +690,7 @@ range POINT-START to POINT-END. Otherwise remove all
overlays."
"Turn off option `spell-fu-mode' for the current buffer."
(cond
((<= spell-fu-idle-delay 0.0)
- (spell-fu--immediate-enable))
+ (spell-fu--immediate-disable))
(t
(spell-fu--idle-disable))))
- [nongnu] elpa/spell-fu ddad489f2c 43/86: Adds affix dict support via aspell expand cmd, (continued)
- [nongnu] elpa/spell-fu ddad489f2c 43/86: Adds affix dict support via aspell expand cmd, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu ce64f4bc4d 51/86: Cleanup: remove arguments that are always fixed, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu 1b765f8029 58/86: Cleanup: replace setq with let binding, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu 1159eeec13 63/86: Fix including trailing single-quote in the word, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu 32fcbd9e8e 68/86: Initial changes for multiple dictionaries, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu 1f3e5b8f05 72/86: readme: Fix typos, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu 2f2fd6de00 83/86: Change URL to codeberg, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu 00b75e5741 25/86: Cleanup: docstring, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu 1bc18879b6 27/86: Add license file, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu d0700095ea 28/86: Add header to cache loading & error checking for cache content, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu f6c849f860 30/86: Fix disabling spell-fu when used without a timer,
ELPA Syncer <=
- [nongnu] elpa/spell-fu 502d523b46 31/86: Fix unintended modification of the standard syntax table, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu e62cfc4f08 34/86: Add support for personal dictionary management, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu 86d46cf63e 37/86: fix: encode word to utf8, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu 9180a77865 48/86: Fix #15: don't enable (when used globally) for application buffers, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu 41a133d119 52/86: Fix #16: Fails to spellcheck when whitespace-mode splits a word, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu 7c2542e109 73/86: Merge branch 'multiple-dictionaries' into 'master', ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu 50be652a6e 77/86: Fix overlay faces masking other faces (when checking faces-at-point), ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu cbe5cd84c3 86/86: Correct URL, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu 41a7ebcbab 23/86: Cleanup: replace cl-letf with advice macro, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu 251e63eacc 29/86: readme: update, clarify TODO, ELPA Syncer, 2022/07/07