Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Highlighting problem

0 views
Skip to first unread message

Nilesh N. Dalvi

unread,
Nov 12, 2000, 3:00:00 AM11/12/00
to
Hi,

Whenever I am writing a C code, and I comment multiple lines using
/* ... */, only the first and the last line gets highlighted, all
the lines in the middle are not refreshed...
Is there some setting which can solve this problem...

Nilesh.

--
Nilesh N. Dalvi
email : nil...@cse.iitb.ernet.in, nil...@nileshdalvi.com
homepage : http://www.cse.iitb.ernet.in/~nilesh

Stefan Monnier <foo@acm.com>

unread,
Nov 12, 2000, 3:00:00 AM11/12/00
to
>>>>> "Nilesh" == Nilesh N Dalvi <nil...@cse.iitb.ernet.in> writes:
> Whenever I am writing a C code, and I comment multiple lines using
> /* ... */, only the first and the last line gets highlighted, all
> the lines in the middle are not refreshed...
> Is there some setting which can solve this problem...

Try
(setq font-lock-support-mode 'lazy-lock-mode)

this will refresh the lines in-between in the background (i.e. not
instantaneously, but within a few seconds).
It does a good bit more than that, tho.
Checkout C-h f lazy-lock-mode RET.


Stefan

Gurucharan

unread,
Nov 12, 2000, 3:00:00 AM11/12/00
to
Hello Nileh,


> Whenever I am writing a C code, and I comment multiple lines using
> /* ... */, only the first and the last line gets highlighted, all
> the lines in the middle are not refreshed...
> Is there some setting which can solve this problem...

Is this in emacs ??
Are you using a windows machine ?
I have also done some C programming using the emacs editor, but there
were no
problems.

I just now tried it and there seems to be no problem at all.

Can you send your .emacs file to me please.


luv,
gurucharan


Nilesh N. Dalvi

unread,
Nov 12, 2000, 3:00:00 AM11/12/00
to
Hi Gurucharan,

>
> > Whenever I am writing a C code, and I comment multiple lines using
> > /* ... */, only the first and the last line gets highlighted, all
> > the lines in the middle are not refreshed...
> > Is there some setting which can solve this problem...
>
>
> Is this in emacs ??
> Are you using a windows machine ?
> I have also done some C programming using the emacs editor, but there
> were no
> problems.
>

I use emacs on linux platform.. What emacs seems to be doing is that
it doesn't apply syntax highlighting to all the lines commented. It
changes the color of a line only when I change something in that line.
Note that problem occurs when I have already written a code and then
comment it.

Thanks,

Pirot, Thierry

unread,
Nov 13, 2000, 2:27:33 AM11/13/00
to

My two cents: What happens if you try a

M-x font-lock-fontify-buffer


Hi Gurucharan,

Thanks,
Nilesh.

_______________________________________________
Help-gnu-emacs mailing list
Help-gn...@gnu.org
http://mail.gnu.org/mailman/listinfo/help-gnu-emacs

0 new messages