From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: Another bug in CC Mode's state cache. Date: Sat, 21 Apr 2012 07:22:36 +0000 Message-ID: <20120421072236.GB3476@acm.acm> References: <20120420200450.GA3541@acm.acm> <874nsf6i2u.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1334993071 8119 80.91.229.3 (21 Apr 2012 07:24:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 21 Apr 2012 07:24:31 +0000 (UTC) Cc: emacs-devel@gnu.org To: Leo Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Apr 21 09:24:30 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SLUgI-0001O0-Qu for ged-emacs-devel@m.gmane.org; Sat, 21 Apr 2012 09:24:30 +0200 Original-Received: from localhost ([::1]:46626 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SLUgI-000439-5x for ged-emacs-devel@m.gmane.org; Sat, 21 Apr 2012 03:24:30 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:52004) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SLUgF-00042q-Fm for emacs-devel@gnu.org; Sat, 21 Apr 2012 03:24:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SLUgD-0005BJ-TM for emacs-devel@gnu.org; Sat, 21 Apr 2012 03:24:27 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:21049 helo=mail.muc.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SLUgD-0005BF-Jp for emacs-devel@gnu.org; Sat, 21 Apr 2012 03:24:25 -0400 Original-Received: (qmail 53667 invoked by uid 3782); 21 Apr 2012 07:24:24 -0000 Original-Received: from acm.muc.de (pD951A6E3.dip.t-dialin.net [217.81.166.227]) by colin.muc.de (tmda-ofmipd) with ESMTP; Sat, 21 Apr 2012 09:24:23 +0200 Original-Received: (qmail 3513 invoked by uid 1000); 21 Apr 2012 07:22:36 -0000 Content-Disposition: inline In-Reply-To: <874nsf6i2u.fsf@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 193.149.48.1 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:149892 Archived-At: Hi, Leo. On Fri, Apr 20, 2012 at 02:19:37PM +0800, Leo wrote: > On 2012-04-21 04:04 +0800, Alan Mackenzie wrote: > > The solution is to use the cache's memory of c rather than the paren in > > the buffer to bound the search. This works. I have tested it on 100,000 > > random points in xdisp.c and 20,000 points in lisp.h. The results with > > the new bugfix are identical to those without. > I'd love to see this fixed and this seems to indicate it is reasonably > safe. I doubt you'd see much difference. Like I said to Stefan, its symptoms only appear very rarely. But it'll go into the trunk. > Leo -- Alan Mackenzie (Nuremberg, Germany).