bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#53773: 27.2; Flyspell delays region overlay update when the region i


From: Lars Ingebrigtsen
Subject: bug#53773: 27.2; Flyspell delays region overlay update when the region is overwritten
Date: Wed, 03 Aug 2022 13:17:31 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Andrea Greselin <greselin.andrea@gmail.com> writes:

> Issuing a ‘(deactivate-mark)’ right before the line
>
>   (and (not unread-command-events)
>
> solves the problem but I don't know if it has any unwanted side
> effects or if it's a good way to go about it. By the way this bug
> also affects Emacs 28.1.

So the proposed change is the patch below, but I'm not really familiar
with this code.  Anybody have any comments?

diff --git a/lisp/textmodes/flyspell.el b/lisp/textmodes/flyspell.el
index 2c5e30fecd..883137d5bd 100644
--- a/lisp/textmodes/flyspell.el
+++ b/lisp/textmodes/flyspell.el
@@ -856,6 +856,7 @@ flyspell-check-word-p
        ((get this-command 'flyspell-delayed)
        ;; The current command is not delayed, that
        ;; is that we must check the word now.
+        (deactivate-mark)
        (and (not unread-command-events)
             (sit-for flyspell-delay)))
        (t t)))






reply via email to

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