help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: C and C++ highlighting is not working properly (font-lock)


From: deccard
Subject: Re: C and C++ highlighting is not working properly (font-lock)
Date: Sun, 01 Jul 2007 15:07:29 -0000
User-agent: G2/1.0

On 30 kesä, 13:13, Alan Mackenzie <a...@muc.de> wrote:
> Hi!
>
> 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?

I'm using emacs through ssh connection on my university's server. The
problem may lay on their end of the line. So maybe I should direct my
university's Unix administrator here. I just was wondering if I'm
doing something wrong.

I get the problem very simple way. I start emacs (gemacs myproc.cc)
and enable the "Syntax Highlighting (Global Font Lock mode)" (F10 s o)

> Does it happen as you're
> typing the C++ program, or when you load an existing C++ file?

The problem occurs in both cases.

>It's
> always best with problems like this to say explicitly what version of
> Emacs you're using (M-x emacs-version).

As you can see from the screen shot the version is GNU emacs 21.3.4
(x86_64-redhat-linux-gnu, X toolkit, Xaw3d scroll bars).

>Often, it's good to dump CC
> Mode's configuration (C-c C-b); this can be _very_ helpful in diagnosing
> bugs.

huh? dump Mode's configuration? Sorry, but I'm pretty new to emacs

>
> > 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"?
>

I meant that I don't have .emacs file at all. I deleted it when I
noticed the problem, because I wanted to be sure that I had not caused
the problem by goofing around with it.

And No, the problem still comes about with "gemacs -q" as well as
"gemacs -q --no-site-file".

> --
> Alan Mackenzie (Ittersbach, Germany)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]