1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-20 18:17:20 +00:00

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).
This commit is contained in:
Lars Ingebrigtsen 2022-08-04 08:16:45 +02:00
parent c17f1a2e89
commit 118a911159

View File

@ -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)