From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: deccard Newsgroups: gmane.emacs.help Subject: C and C++ highlighting is not working properly (font-lock) Date: Fri, 29 Jun 2007 18:45:50 -0700 Organization: http://groups.google.com Message-ID: <1183167950.112690.110970@k29g2000hsd.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1183188069 12808 80.91.229.12 (30 Jun 2007 07:21:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 30 Jun 2007 07:21:09 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jun 30 09:20:59 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 1I4XGL-0002KP-UL for geh-help-gnu-emacs@m.gmane.org; Sat, 30 Jun 2007 09:20:58 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I4XGL-0004h1-CM for geh-help-gnu-emacs@m.gmane.org; Sat, 30 Jun 2007 03:20:57 -0400 Original-Path: shelby.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!postnews.google.com!k29g2000hsd.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 7 Original-NNTP-Posting-Host: 88.115.9.83 Original-X-Trace: posting.google.com 1183167950 5515 127.0.0.1 (30 Jun 2007 01:45:50 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sat, 30 Jun 2007 01:45:50 +0000 (UTC) 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.9.83; posting-account=1wuMqwsAAAA4vZEtafXLJn-tDZWnJy3_ Original-Xref: shelby.stanford.edu gnu.emacs.help:149769 X-Mailman-Approved-At: Sat, 30 Jun 2007 03:20:09 -0400 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:45359 Archived-At: I'm using font-lock, but I'm getting quite weird behavior out of it. I get right colors only for the first word. Even using tab messes it up! What could be going on? I have not added anything to my .emacs. Here is a screen shot of my pseudo c++ program: http://www.helsinki.fi/~ipohjala/Problem.png