From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Arjan Bos Newsgroups: gmane.emacs.help Subject: Re: font-lock function matcher sample Date: Wed, 04 Aug 2004 22:00:20 +0200 Organization: Planet Internet Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: Reply-To: Arjan.Bos@ISeeYou.nl NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1091649707 6322 80.91.224.253 (4 Aug 2004 20:01:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 4 Aug 2004 20:01:47 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Aug 04 22:01:37 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BsRxA-0003iS-00 for ; Wed, 04 Aug 2004 22:01:36 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BsS0f-0000wY-VV for geh-help-gnu-emacs@m.gmane.org; Wed, 04 Aug 2004 16:05:14 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsmi-us.news.garr.it!newsmi-eu.news.garr.it!NewsITBone-GARR!irazu.switch.ch!switch.ch!tiscali!newsfeed1.ip.tiscali.net!border2.nntp.ams.giganews.com!nntp.giganews.com!newsfeeder.wxs.nl!textnews.wxs.nl!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 54 Original-NNTP-Posting-Host: ip51cd7a2f.adsl-surfen.hetnet.nl Original-X-Trace: reader10.wxs.nl 1091649874 16489 81.205.122.47 (4 Aug 2004 20:04:34 GMT) Original-X-Complaints-To: abuse@planet.nl Original-NNTP-Posting-Date: 4 Aug 2004 20:04:34 GMT User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7) Gecko/20040616 X-Accept-Language: en-us, en In-Reply-To: Original-Xref: shelby.stanford.edu gnu.emacs.help:124654 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:19987 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:19987 Stefan Monnier wrote: >>You're right about the while loop, but still you're setting `found' to >>`t' even when the word doesn't equal score-match. And it is `found' that >>is returned > > > But if it is t and score-match is not equal, than you go around the loop > once more where found will be reset to either nil or t depending on whether > there are more words to find. > So I still don't understand the problem. > and Stefan wrote : > > This will always return nil because if found is non-nil, we don't exit > the loop. Mmm, yes, you're right. But this means that I'm not clever enough to see through those nested statements. I need to unroll them before they make sense to me. So I'll give it another try. Well, thanks a lot! And I'll try to make a working crash recipe for the font-locking lockup problem. Looking at the crash log indicates that the thing that crashes is an Apple component and I did mail it to Apple already: Exception: EXC_BAD_ACCESS (0x0001) Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000014 Thread 0 Crashed: 0 com.apple.HIToolbox 0x927ed93c HIObject::Retain() + 0x14 1 <<00000000>> 0x0039a790 proc_encode_coding_system + 0x904 2 com.apple.HIToolbox 0x927f2340 RetainMenu(MenuData*) + 0x10 3 com.apple.HIToolbox 0x9282b4dc NormalizeMenu + 0x24 4 com.apple.HIToolbox 0x9282b63c HiliteMenuTitle(MenuData*, MenuData*, unsigned char) + 0x38 5 com.apple.HIToolbox 0x9285dad8 MenuSelectCore(Point, double, unsigned long, OpaqueMenuRef**, unsigned short*) + 0x40 6 com.apple.HIToolbox 0x92883ffc MenuSelect + 0x60 7 com.gnu.Emacs 0x00149d4c x_activate_menubar + 0x48 (macmenu.c:957) 8 com.gnu.Emacs 0x00085868 kbd_buffer_get_event + 0x290 (keyboard.c:4022) > > -- -- If you really want to contact me, then replace the "I see you" text by its three letter accronym, ICU. Fabricate Diem PVNC, Motto of the Night Watch -- Terry Pratchett