emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug]org-mode with flyspell-mode freezes emacs


From: martin rudalics
Subject: Re: [bug]org-mode with flyspell-mode freezes emacs
Date: Tue, 17 Oct 2006 19:49:00 +0200
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

> 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 '())))

reply via email to

[Prev in Thread] Current Thread [Next in Thread]