branch: elpa/spell-fu commit d0e67cdb252585a11c2b979629fc17159a90fd9b Author: Campbell Barton <ideasma...@gmail.com> Commit: Campbell Barton <ideasma...@gmail.com>
When using jit-lock-stealth, ensure words out of the view are checked --- changelog.rst | 2 ++ spell-fu.el | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/changelog.rst b/changelog.rst index 7cdcd7e609..0fe619a7c5 100644 --- a/changelog.rst +++ b/changelog.rst @@ -4,6 +4,8 @@ Change Log ########## - In development. + - Stealthy font locking now checks words even when outside the view, + so stealthy font locking ensures words are checked. - Fix #13, failure to properly generate word-list cache on MS-Windows. - Support buffer local word-lists via ``spell-fu-buffer-session-localwords``. - Fix faces of overlays (such as ``hl-line-mode``) no longer mask other faces when selecting words to check. diff --git a/spell-fu.el b/spell-fu.el index ac3a076cf1..b937046ae5 100644 --- a/spell-fu.el +++ b/spell-fu.el @@ -772,7 +772,12 @@ when checking the entire buffer for example." (overlay-put item-ov 'spell-fu-pending t) (overlay-put item-ov 'evaporate 't) - (setq spell-fu--idle-overlay-last item-ov))))) + (setq spell-fu--idle-overlay-last item-ov)))) + + ;; Use `inhibit-quit' as a way to check if `jit-lock-stealth' is in use. + (when inhibit-quit + (spell-fu--idle-handle-pending-ranges-impl pos-beg pos-end))) + ;; --------------------------------------------------------------------------- ;; Internal Timer Management