From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: bojohan+news@dd.chalmers.se (Johan =?utf-8?Q?Bockg=C3=A5rd?=) Newsgroups: gmane.emacs.help Subject: Re: font-lock-add-keywords problem Date: Sun, 05 Mar 2006 19:48:19 +0100 Organization: Chalmers University of Technology, Sweden Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1141686934 10676 80.91.229.2 (6 Mar 2006 23:15:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 6 Mar 2006 23:15:34 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 07 00:15:33 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FGOvK-0007ky-I8 for geh-help-gnu-emacs@m.gmane.org; Tue, 07 Mar 2006 00:15:30 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FGOvJ-0006Ye-SZ for geh-help-gnu-emacs@m.gmane.org; Mon, 06 Mar 2006 18:15:29 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed1.swip.net!swipnet!newsfeed.sunet.se!news01.sunet.se!129.16.222.141.MISMATCH!gide.ita.chalmers.se!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 29 Original-NNTP-Posting-Host: iota202.dd.chalmers.se Original-X-Trace: gide.ita.chalmers.se 1141584499 8111 129.16.117.102 (5 Mar 2006 18:48:19 GMT) Original-X-Complaints-To: usenet@gide.ita.chalmers.se Original-NNTP-Posting-Date: Sun, 5 Mar 2006 18:48:19 +0000 (UTC) Mail-Copies-To: never User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:oyCskewXwzxo0tRW1lJOrN63Wpg= Original-Xref: shelby.stanford.edu gnu.emacs.help:137941 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:33576 Archived-At: Stefan Bienert writes: > I have a problem with the adding of own types to the c-mode in > emacs. I have used: > > (font-lock-add-keywords > 'c-mode > '(("\\<\\(Shortint\\)\\>" 1 font-lock-type-face t))) Remove the `t' ------------------------------------^ > to make emacs highlighting the type "Shortint". But now its also > highlighted in comments /* Shortint */. What can I do to unhighlight > it in comments? ,----[ C-h v font-lock-keywords RET ] | [...] | | MATCH-HIGHLIGHT should be of the form: | | (SUBEXP FACENAME [OVERRIDE [LAXMATCH]]) | | [...] | | If OVERRIDE is t, existing fontification can be overwritten. [...] `---- -- Johan Bockgård