GNU bug report logs -
#53773
27.2; Flyspell delays region overlay update when the region is overwritten
Previous Next
Reported by: Andrea Greselin <greselin.andrea <at> gmail.com>
Date: Fri, 4 Feb 2022 10:01:01 UTC
Severity: normal
Tags: moreinfo, patch
Found in version 27.2
Fixed in version 29.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Andrea Greselin <greselin.andrea <at> 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)))
This bug report was last modified 2 years and 290 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.