> I just found out that the emacs-wiki and muse people have been
> struggling with the same problem. Their fix was to use
> inhibit-point-motion-hooks. This points into the direction that a
> search function gets thrown off into a loop by the
point-motion-hooks.
Indeed binding `inhibit-point-motion-hooks' is more decent than my
earlier proposal. Try the attached patch.
*** flyspell.el.~1.106.~ Sat Sep 23 11:08:58 2006
--- flyspell.el Tue Oct 17 19:31:34 2006
***************
*** 959,964 ****
--- 959,965 ----
(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,978 ****
--- 974,980 ----
(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 '())))