From: Alan Mackenzie <acm@muc.de>
To: deccard <Anima_Draconis@hotmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: C and C++ highlighting is not working properly (font-lock)
Date: Sat, 30 Jun 2007 11:13:56 +0100 [thread overview]
Message-ID: <20070630101356.GA3660@muc.de> (raw)
In-Reply-To: <1183167950.112690.110970@k29g2000hsd.googlegroups.com>
Hi!
On Fri, Jun 29, 2007 at 06:45:50PM -0700, deccard wrote:
> 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? ....
> Here is a screen shot of my pseudo c++ program:
> http://www.helsinki.fi/~ipohjala/Problem.png
That looks wierd.
OK. To begin with, can you tell me EXACTLY what I have to do to reproduce the
problem, beginning with how you start Emacs? Does it happen as you're
typing the C++ program, or when you load an existing C++ file? It's
always best with problems like this to say explicitly what version of
Emacs you're using (M-x emacs-version). Often, it's good to dump CC
Mode's configuration (C-c C-b); this can be _very_ helpful in diagnosing
bugs.
> I have not added anything to my .emacs.
Hmmm. Since when? What was in it before you didn't add anything to it?
;-) If you start emacs with "emacs -q", does the problem go away?
Do you have a site-start file (M-x locate-library <CR> site-start.el
<CR>)? If so, what happens when you start emacs with "emacs -q
--no-site-file"?
--
Alan Mackenzie (Ittersbach, Germany)
next prev parent reply other threads:[~2007-06-30 10:13 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-30 1:45 C and C++ highlighting is not working properly (font-lock) deccard
2007-06-30 8:34 ` Enselic
2007-07-01 14:51 ` deccard
2007-06-30 10:13 ` Alan Mackenzie [this message]
[not found] ` <mailman.2833.1183193218.32220.help-gnu-emacs@gnu.org>
2007-07-01 15:07 ` deccard
2007-07-01 17:50 ` Alan Mackenzie
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070630101356.GA3660@muc.de \
--to=acm@muc.de \
--cc=Anima_Draconis@hotmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.