From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: deccard Newsgroups: gmane.emacs.help Subject: Re: C and C++ highlighting is not working properly (font-lock) Date: Sun, 01 Jul 2007 14:51:37 -0000 Organization: http://groups.google.com Message-ID: <1183301497.894258.50370@k29g2000hsd.googlegroups.com> References: <1183167950.112690.110970@k29g2000hsd.googlegroups.com> <1183192449.781552.293700@k79g2000hse.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1183304474 22310 80.91.229.12 (1 Jul 2007 15:41:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 1 Jul 2007 15:41:14 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jul 01 17:41:13 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1I51Y0-0005jY-Op for geh-help-gnu-emacs@m.gmane.org; Sun, 01 Jul 2007 17:41:13 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I51Y0-00015q-6Y for geh-help-gnu-emacs@m.gmane.org; Sun, 01 Jul 2007 11:41:12 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!k29g2000hsd.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 34 Original-NNTP-Posting-Host: 88.115.3.99 Original-X-Trace: posting.google.com 1183301498 22848 127.0.0.1 (1 Jul 2007 14:51:38 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sun, 1 Jul 2007 14:51:38 +0000 (UTC) In-Reply-To: <1183192449.781552.293700@k79g2000hse.googlegroups.com> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.8.1.3) Gecko/20070321 Firefox/2.0.0.3 (Swiftfox),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: k29g2000hsd.googlegroups.com; posting-host=88.115.3.99; posting-account=1wuMqwsAAAA4vZEtafXLJn-tDZWnJy3_ Original-Xref: shelby.stanford.edu gnu.emacs.help:149822 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:45407 Archived-At: On 30 kes=E4, 11:34, Enselic wrote: > On 30 Juni, 03:45, deccard wrote: > > First of all, font-lock probably assumes proper syntax and sane > indentation, so fix that first. The problem occurs also with proper syntax and sane indentation. I had to use improper syntax and unconventional indentation to point out the problem better. > > Second of all, it might look more wrong than it is if you have the > same color for two different fonts. > No, as you can see from the screen shot I use different colors for font-lock-type-face font-lock-type-face, but for some reason function highlighting does not appear correctly everywhere. > When I setup these colors and want full control, I bring up M-x > customize-group font-lock-faces RET and M-x list-colors-display RET. > Then I change a font, save the settings, switch to a C++ buffer, look > at the results, go back to the customization group, change a color, > save changes, look at result in C++ buffer, etc. > > This way I find that one gets much control over syntax. Well I don't want to customize my syntax highlighting right now, but I want the highlighting to work properly. > > Hope this helps in some way, > - Martin Nordholts