From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Javier Oviedo" Newsgroups: gmane.emacs.help Subject: Re: emacs 21.3 and font-lock-faces Date: Wed, 4 Feb 2004 14:17:20 -0500 Organization: Texas Instruments Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1075923105 14033 80.91.224.253 (4 Feb 2004 19:31:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 4 Feb 2004 19:31:45 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Feb 04 20:31:42 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AoSkP-0003Y5-00 for ; Wed, 04 Feb 2004 20:31:41 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AoSjw-0004ng-Jt for geh-help-gnu-emacs@m.gmane.org; Wed, 04 Feb 2004 14:31:12 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.hal-mli.net!feeder1.hal-mli.net!attdl1!ip.att.net!news.ti.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 55 Original-NNTP-Posting-Host: gt64v7121.telogy.design.ti.com Original-X-Trace: home.itg.ti.com 1075922229 29910 158.218.103.164 (4 Feb 2004 19:17:09 GMT) Original-X-Complaints-To: usenet@news.ti.com Original-NNTP-Posting-Date: 4 Feb 2004 19:17:09 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Original-Xref: shelby.stanford.edu gnu.emacs.help:120693 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:16641 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:16641 In doing some investigation it seems that some of the functionality of 21.2 font-lock.el was moved to cc-fonts.el in 21.3. In font-lock.el 21.2 there is a regexp case in c-font-lock-keywords-1 that covers number 2 below. When I do a M-x describe-variable c-font-lock-keywords-1 in 21.3 I get no match. My knowledge of cc-mode is quite limited so the only way I could think of to get around this was to add the number 2 regexp case to font-lock-add-keywords. I tried adding the 21.2 setq of c-font-lock-keywords-1 in my .emacs for 21.3 but that had no affect. I doubt that this is the correct solution for this, so I'd be happy to hear any thoughts on the matter. I hope that this description makes sense. Forgive me if I fumble on the proper terminology. Thanks in advance! -- Javier "Javier Oviedo" wrote in message news:bvr2gm$t3p$1@home.itg.ti.com... > Hello all: > > I've noticed some slight changes to the face attributes when editing in > c-mode. I'm using emacs 21.3 on windows XP and comparing it to emacs 21.2 on > windows XP > > 1. The # in #if/#ifdef, etc used to display in a seperate face than the > if/ifdef/define that followed. Now it displays all in the same face. Is > there a way that I can change this back? I don't really care for how it > looks now. I believe that the # would display in the default face. > > 2. The statement after an #if used to display in > font-lock-variable-name-face. Now it displays in default face I believe. > Example: #if !(defined(NDU_DBG4) || defined(NDU_DBG5)) > NDU_DBG4 and NDU_DBG5 used to display in font-lock-variable-name-face but in > 21.3 they don't. I can't be certain but from the color I see it seems that > they are using the default face. > > > I'd like to go back to the old behavior for these cases. Can someone help me > out? Thanks. > > -- > Javier > > >