From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#7264: 24.0.50; cc-mode: fontification of enums broken Date: Sat, 30 Oct 2010 12:31:47 +0000 Message-ID: <20101030123147.GA7856@muc.de> References: <86lj5rxhtm.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1288442609 20008 80.91.229.12 (30 Oct 2010 12:43:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 30 Oct 2010 12:43:29 +0000 (UTC) Cc: 7264@debbugs.gnu.org To: Christoph Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 30 14:43:26 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PCAmM-0008Jx-2p for geb-bug-gnu-emacs@m.gmane.org; Sat, 30 Oct 2010 14:43:26 +0200 Original-Received: from localhost ([127.0.0.1]:56200 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PCAmL-000539-7w for geb-bug-gnu-emacs@m.gmane.org; Sat, 30 Oct 2010 08:43:25 -0400 Original-Received: from [140.186.70.92] (port=53735 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PCAmB-000520-Th for bug-gnu-emacs@gnu.org; Sat, 30 Oct 2010 08:43:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PCAmA-0000T2-OK for bug-gnu-emacs@gnu.org; Sat, 30 Oct 2010 08:43:15 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46155) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PCAm8-0000N7-3R; Sat, 30 Oct 2010 08:43:12 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PCAKs-00050a-65; Sat, 30 Oct 2010 08:15:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Sat, 30 Oct 2010 12:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7264 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: Original-Received: via spool by 7264-submit@debbugs.gnu.org id=B7264.128844085719228 (code B ref 7264); Sat, 30 Oct 2010 12:15:02 +0000 Original-Received: (at 7264) by debbugs.gnu.org; 30 Oct 2010 12:14:17 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PCAK9-000505-BN for submit@debbugs.gnu.org; Sat, 30 Oct 2010 08:14:17 -0400 Original-Received: from colin.muc.de ([193.149.48.1] helo=mail.muc.de) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PCAK6-000500-Mt for 7264@debbugs.gnu.org; Sat, 30 Oct 2010 08:14:15 -0400 Original-Received: (qmail 69665 invoked by uid 3782); 30 Oct 2010 12:18:27 -0000 Original-Received: from acm.muc.de (pD9E53EFE.dip.t-dialin.net [217.229.62.254]) by colin2.muc.de (tmda-ofmipd) with ESMTP; Sat, 30 Oct 2010 14:18:25 +0200 Original-Received: (qmail 7991 invoked by uid 1000); 30 Oct 2010 12:31:47 -0000 Content-Disposition: inline In-Reply-To: <86lj5rxhtm.fsf@gmail.com> User-Agent: Mutt/1.5.9i X-Delivery-Agent: TMDA/1.1.5 (Fettercairn) X-Primary-Address: acm@muc.de X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 30 Oct 2010 08:15:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:41270 Archived-At: On Thu, Oct 21, 2010 at 05:11:01PM -0600, Christoph wrote: > Fontification of enumeration typedefs seems to be broken in the trunk > (r102035). > Write the following piece of code to file.c and open it. > typedef enum > { > MEMBER = _MEMBER, > MEMBER = _MEMBER, > MEMBER = _MEMBER, > MEMBER = _MEMBER, > MEMBER = _MEMBER, > MEMBER = _MEMBER, [ snip 190 identical lines ] > MEMBER = _MEMBER, > MEMBER = _MEMBER, > MEMBER = _MEMBER, > MEMBER = _MEMBER, > MEMBER = _MEMBER, > MEMBER = _MEMBER > } MyEnum; > After the 22nd member, the fontification disappears, i.e. the > members are not fontified as enumeration members anymore. I've just committed a fix for this. The cause of the partial fontification was jit_lock's habit of fontifying 500 bytes at a time in the background. This reached the 22nd item in the enum block, after which it had no context for the next lot of 500 bytes. -- Alan Mackenzie (Nuremberg, Germany).