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#13612: 24.3.50; Incorrect syntax highlighting in cc-mode Date: Tue, 5 Feb 2013 14:54:06 +0000 Message-ID: <20130205145405.GA3674@acm.acm> References: <874nhuguh6.fsf@shorty.local.i-did-not-set--mail-host-address--so-tickle-me> <834nhuawh2.fsf@gnu.org> <20130204125944.77cf078a@fatty> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1360076164 6051 80.91.229.3 (5 Feb 2013 14:56:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 5 Feb 2013 14:56:04 +0000 (UTC) Cc: 13612@debbugs.gnu.org To: Dima Kogan Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Feb 05 15:56:24 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1U2jwe-0001Oo-H2 for geb-bug-gnu-emacs@m.gmane.org; Tue, 05 Feb 2013 15:56:24 +0100 Original-Received: from localhost ([::1]:34472 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U2jwL-0002D5-Ua for geb-bug-gnu-emacs@m.gmane.org; Tue, 05 Feb 2013 09:56:05 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:47244) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U2jwG-0001yg-5k for bug-gnu-emacs@gnu.org; Tue, 05 Feb 2013 09:56:02 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U2jwE-0006gY-ID for bug-gnu-emacs@gnu.org; Tue, 05 Feb 2013 09:55:59 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60758) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U2jwC-0006fQ-1h; Tue, 05 Feb 2013 09:55:56 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1U2jxH-00029D-4z; Tue, 05 Feb 2013 09:57:04 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Tue, 05 Feb 2013 14:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13612 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: Original-Received: via spool by 13612-submit@debbugs.gnu.org id=B13612.13600761658240 (code B ref 13612); Tue, 05 Feb 2013 14:57:02 +0000 Original-Received: (at 13612) by debbugs.gnu.org; 5 Feb 2013 14:56:05 +0000 Original-Received: from localhost ([127.0.0.1]:37988 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U2jwK-00028r-3i for submit@debbugs.gnu.org; Tue, 05 Feb 2013 09:56:04 -0500 Original-Received: from colin.muc.de ([193.149.48.1]:53543 helo=mail.muc.de) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U2jwE-00028V-Sd for 13612@debbugs.gnu.org; Tue, 05 Feb 2013 09:56:00 -0500 Original-Received: (qmail 87530 invoked by uid 3782); 5 Feb 2013 14:54:46 -0000 Original-Received: from acm.muc.de (pD955633E.dip.t-dialin.net [217.85.99.62]) by colin.muc.de (tmda-ofmipd) with ESMTP; Tue, 05 Feb 2013 15:54:44 +0100 Original-Received: (qmail 5847 invoked by uid 1000); 5 Feb 2013 14:54:06 -0000 Content-Disposition: inline In-Reply-To: <20130204125944.77cf078a@fatty> User-Agent: Mutt/1.5.21 (2010-09-15) X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:70718 Archived-At: Hi, Dima! On Mon, Feb 04, 2013 at 12:59:44PM -0800, Dima Kogan wrote: > > On Sun, 03 Feb 2013 05:48:41 +0200 > > Eli Zaretskii wrote: > > > From: Dima Kogan > > > Date: Sat, 02 Feb 2013 15:35:17 -0800 > > > void f(void) > > > { > > > filter_R( dt ); > > > filter_t( dt ); > > > a = b; > > > } > > > I'm observing the filter_R line being colored differently from the > > > filter_t line. Everything on the filter_R line is using the > > > 'default' face. 'filter_t' uses font-lock-type-face. > > The "foo_t" tokens are taken as data types, AFAIK, to support size_t, > > off_t, etc. > Ah, that makes sense now. Ideally emacs should be able to separate the two > cases, ...... Do M-x customize-variable c-font-lock-extra-types, remove the entry "\sw+_t", then reinitialise C Mode like it says. The false fontification should then be gone. > ..... but maybe this is not significant enough to care. Thoughts? > Should I close this bug? Yes please, close it as "not a bug". Thanks! -- Alan Mackenzie (Nuremberg, Germany).