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: Slow fontification in C mode buffers Date: Wed, 14 Dec 2011 12:23:49 +0000 Message-ID: <20111214122349.GD4025@acm.acm> References: <83vcpxbxn0.fsf@gnu.org> <20111203151824.GA4566@acm.acm> <87pqfso5d3.fsf@isil.kanru.info> <20111214113025.GC4025@acm.acm> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1323865810 4323 80.91.229.12 (14 Dec 2011 12:30:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 14 Dec 2011 12:30:10 +0000 (UTC) Cc: Eli Zaretskii , emacs-devel@gnu.org To: Kan-Ru Chen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 14 13:30:03 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RanyD-0002dP-4t for ged-emacs-devel@m.gmane.org; Wed, 14 Dec 2011 13:30:01 +0100 Original-Received: from localhost ([::1]:43269 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RanyC-0003Hn-L8 for ged-emacs-devel@m.gmane.org; Wed, 14 Dec 2011 07:30:00 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:55886) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rany7-0003Hi-7y for emacs-devel@gnu.org; Wed, 14 Dec 2011 07:29:59 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rany1-0007zY-JC for emacs-devel@gnu.org; Wed, 14 Dec 2011 07:29:55 -0500 Original-Received: from colin.muc.de ([193.149.48.1]:51106 helo=mail.muc.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rany1-0007zO-8q for emacs-devel@gnu.org; Wed, 14 Dec 2011 07:29:49 -0500 Original-Received: (qmail 79197 invoked by uid 3782); 14 Dec 2011 12:29:47 -0000 Original-Received: from acm.muc.de (pD9557276.dip.t-dialin.net [217.85.114.118]) by colin.muc.de (tmda-ofmipd) with ESMTP; Wed, 14 Dec 2011 13:29:46 +0100 Original-Received: (qmail 4576 invoked by uid 1000); 14 Dec 2011 12:23:49 -0000 Content-Disposition: inline In-Reply-To: <20111214113025.GC4025@acm.acm> 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:146707 Archived-At: On Wed, Dec 14, 2011 at 11:30:25AM +0000, Alan Mackenzie wrote: > Hello again, Kanru! > On Tue, Dec 13, 2011 at 11:31:36PM +0800, Kan-Ru Chen wrote: > > Alan Mackenzie writes: > > > By a happy coincidence, I've just tracked down another sluggishness (in > > > large array initialisations, reported by Peter Milliken on bug-cc-mode) > > > which looks to have exactly the same cause, namely > > > `c-font-lock-enclosing-decls' which fontifies the innards of a > > > struct/union/enum when jit-lock etc. starts in the middle of it. > > Is this the same problem? > NO! > > http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10288 > I've seen what the problem is. You've got lots of declarations not > separated by commas. If DEFINE_DATA_ENTRY is a macro "with its own > semicolon", follow the instructions in chapter "Macros with ;" in the CC > Mode manual. Sorry, please ignore the previous paragraph. It's rubbish! > > -- > > Kanru -- Alan Mackenzie (Nuremberg, Germany).