From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Carsten Dominik Newsgroups: gmane.emacs.devel Subject: Re: [bug]org-mode with flyspell-mode freezes emacs Date: Tue, 17 Oct 2006 23:11:56 +0200 Message-ID: References: <17716.23811.425109.929050@kahikatea.snap.net.nz> <4d08b83ef805bfb7828085d8e1f67daf@science.uva.nl> <9dc86f9fd2c6b2ad03093cb1e92e6aa6@science.uva.nl> <4535178C.8050003@gmx.at> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v624) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1161119613 21154 80.91.229.2 (17 Oct 2006 21:13:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 17 Oct 2006 21:13:33 +0000 (UTC) Cc: Nick Roberts , Michael Olson , "Richard M.Stallman" , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 17 23:13:29 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GZwFT-0004t1-50 for ged-emacs-devel@m.gmane.org; Tue, 17 Oct 2006 23:13:19 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GZwFS-0003vE-LN for ged-emacs-devel@m.gmane.org; Tue, 17 Oct 2006 17:13:18 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GZwED-0002d7-AG for emacs-devel@gnu.org; Tue, 17 Oct 2006 17:12:01 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GZwEC-0002bq-K0 for emacs-devel@gnu.org; Tue, 17 Oct 2006 17:12:00 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GZwEC-0002bc-Es for emacs-devel@gnu.org; Tue, 17 Oct 2006 17:12:00 -0400 Original-Received: from [193.252.22.242] (helo=smtp-2.orange.nl) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GZwE9-0007CI-F9; Tue, 17 Oct 2006 17:11:57 -0400 Original-Received: from [192.168.2.2] (dc5146d3e6.adsl.wanadoo.nl [81.70.211.230]) by mwinf6104.orange.nl (SMTP Server) with ESMTP id 767CA1C0008B; Tue, 17 Oct 2006 23:11:56 +0200 (CEST) X-ME-UUID: 20061017211156485.767CA1C0008B@mwinf6104.orange.nl In-Reply-To: <4535178C.8050003@gmx.at> Original-To: martin rudalics X-Mailer: Apple Mail (2.624) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:60832 Archived-At: 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