emacs-diffs
[Top][All Lists]
Advanced

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

master 118a911159: Make flyspell-check-word-p work better with delete-se


From: Lars Ingebrigtsen
Subject: master 118a911159: Make flyspell-check-word-p work better with delete-selection-mode
Date: Thu, 4 Aug 2022 02:17:22 -0400 (EDT)

branch: master
commit 118a911159e75f3ad9305cd7f298816bfb59d715
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Make flyspell-check-word-p work better with delete-selection-mode
    
    * lisp/textmodes/flyspell.el (flyspell-check-word-p): Deactivate
    the region immediately (bug#53773).
---
 lisp/textmodes/flyspell.el | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lisp/textmodes/flyspell.el b/lisp/textmodes/flyspell.el
index 2c5e30fecd..2ee20ef1d4 100644
--- a/lisp/textmodes/flyspell.el
+++ b/lisp/textmodes/flyspell.el
@@ -854,6 +854,9 @@ Mostly we check word delimiters."
        ((get this-command 'flyspell-deplacement)
        (not (eq flyspell-previous-command this-command)))
        ((get this-command 'flyspell-delayed)
+        ;; In case we're using `delete-selection-mode', make the
+        ;; region be updated immediately.
+        (deactivate-mark)
        ;; The current command is not delayed, that
        ;; is that we must check the word now.
        (and (not unread-command-events)



reply via email to

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