Commit 3c8404e6 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(flyspell-post-command-hook): Bind deactivate-mark to prevent deactivation.

parent 33a992c2
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment