[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Lockup with font-lock under cc-mode
From: |
Stefan Monnier |
Subject: |
Re: Lockup with font-lock under cc-mode |
Date: |
28 Mar 2004 22:35:01 -0500 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 |
>>>>> "Ben" == Ben Rogers <address@hidden> writes:
> I am running the binary found at
> http://www.porkrind.org/emacs/
> It reports its (emacs-version) as
> GNU Emacs 21.3.50.1 (powerpc-apple-darwin7.0.0) of 2003-10-25 on
> darkstar.local
> I am running it on Mac OS 10.3.2. The bug (as I report it) will happen
> on a machine with no .emacs
I can reproduce the problem with a recent Emacs-CVS checkout.
> 1. Start emacs
> 2. Switch (C-x b) to "foo.c"
> 3. Type the following characters 'a', '\', '<return>', 'b', '#', 'c', "#',
> '('
> 4. M-x 'c-mode'
> 5. M-x 'font-lock-mode'
It seems the problem is that Emac gets stuck in
c-syntactic-re-search-forward looking for an open-paren and finding that
the open-paren in in a macro. Why does it think it's in a macro?
c-beginning-of-macro jumps to the first hash of the second line.
The `b' just before is tagged with a text-property `c-is-sws' which
sounds wrong if `sws' means "syntactic-white-space". But this is getting
too cc-mode specific for me.
Martin can you take a look at it?
Stefan
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Lockup with font-lock under cc-mode,
Stefan Monnier <=