From 3c8404e66f25b531885c0b5f443f884c30b9bc4e Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Thu, 3 Nov 2005 21:33:22 +0000 Subject: [PATCH] (flyspell-post-command-hook): Bind deactivate-mark to prevent deactivation. --- lisp/textmodes/flyspell.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/textmodes/flyspell.el b/lisp/textmodes/flyspell.el index f65ffd0ba5c..0f0394ad4ea 100644 --- a/lisp/textmodes/flyspell.el +++ b/lisp/textmodes/flyspell.el @@ -895,7 +895,9 @@ Mostly we check word delimiters." (defun flyspell-post-command-hook () "The `post-command-hook' used by flyspell to check a word in-the-fly." (interactive) - (let ((command this-command)) + (let ((command this-command) + ;; Prevent anything we do from affecting the mark. + deactivate-mark) (if (flyspell-check-pre-word-p) (save-excursion '(flyspell-debug-signal-pre-word-checked) -- 2.39.5