summaryrefslogtreecommitdiff
path: root/lisp/textmodes/flyspell.el
diff options
context:
space:
mode:
authorChong Yidong <cyd@stupidchicken.com>2006-10-18 04:13:46 +0000
committerChong Yidong <cyd@stupidchicken.com>2006-10-18 04:13:46 +0000
commit15d8dc8b2bc4146d0fa667e26d2d848955428817 (patch)
treee6c5309f70bb236226379068a81befad13b97bc6 /lisp/textmodes/flyspell.el
parentaccd662d609388cac0f07c0cc4b350667676c2e6 (diff)
downloademacs-15d8dc8b2bc4146d0fa667e26d2d848955428817.tar.gz
* textmodes/flyspell.el (flyspell-word-search-backward): Set
inhibit-point-motion-hooks to avoid looping due to intangibile text.
Diffstat (limited to 'lisp/textmodes/flyspell.el')
-rw-r--r--lisp/textmodes/flyspell.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/textmodes/flyspell.el b/lisp/textmodes/flyspell.el
index ebee4691e8c..e7b95c9619d 100644
--- a/lisp/textmodes/flyspell.el
+++ b/lisp/textmodes/flyspell.el
@@ -959,6 +959,7 @@ Mostly we check word delimiters."
(defun flyspell-word-search-backward (word bound)
(save-excursion
(let ((r '())
+ (inhibit-point-motion-hooks t)
p)
(while (and (not r) (setq p (search-backward word bound t)))
(let ((lw (flyspell-get-word '())))
@@ -973,6 +974,7 @@ Mostly we check word delimiters."
(defun flyspell-word-search-forward (word bound)
(save-excursion
(let ((r '())
+ (inhibit-point-motion-hooks t)
p)
(while (and (not r) (setq p (search-forward word bound t)))
(let ((lw (flyspell-get-word '())))