From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Leo Newsgroups: gmane.emacs.devel Subject: Re: Another bug in CC Mode's state cache. Date: Fri, 20 Apr 2012 14:19:37 +0800 Message-ID: <874nsf6i2u.fsf@gmail.com> References: <20120420200450.GA3541@acm.acm> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1334973130 1579 80.91.229.3 (21 Apr 2012 01:52:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 21 Apr 2012 01:52:10 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Apr 21 03:52:08 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 1SLPUe-00063f-1a for ged-emacs-devel@m.gmane.org; Sat, 21 Apr 2012 03:52:08 +0200 Original-Received: from localhost ([::1]:39794 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SLPUd-0000qs-Gu for ged-emacs-devel@m.gmane.org; Fri, 20 Apr 2012 21:52:07 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:47722) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SLPUa-0000qn-Q3 for emacs-devel@gnu.org; Fri, 20 Apr 2012 21:52:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SLPUZ-0007pi-7N for emacs-devel@gnu.org; Fri, 20 Apr 2012 21:52:04 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:60340) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SLPUZ-0007pZ-0W for emacs-devel@gnu.org; Fri, 20 Apr 2012 21:52:03 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SLPUT-0005yX-I7 for emacs-devel@gnu.org; Sat, 21 Apr 2012 03:51:57 +0200 Original-Received: from 119.255.41.67 ([119.255.41.67]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 21 Apr 2012 03:51:57 +0200 Original-Received: from sdl.web by 119.255.41.67 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 21 Apr 2012 03:51:57 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 10 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 119.255.41.67 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux) Cancel-Lock: sha1:89clbTkAJ1LUI2USxDUjEZf4El8= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:149882 Archived-At: 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. Leo