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: Carsten Dominik
Subject: Re: [bug]org-mode with flyspell-mode freezes emacs
Date: Tue, 17 Oct 2006 23:11:56 +0200

I can confirm that Martin's patch does fix the problem. This patch should go into Emacs CVS at least for the time being.

Thanks Martin, thank everyone who helped to debug this problem.

- Carsten


On Oct 17, 2006, at 19:49, martin rudalics wrote:

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


--
Carsten Dominik
Sterrenkundig Instituut "Anton Pannekoek"
Universiteit van Amsterdam
Kruislaan 403
NL-1098SJ Amsterdam
phone: +31 20 525 7477





reply via email to

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