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

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

Re: cwarn/font-lock problem under HP-UX 10.20


From: Eli Zaretskii
Subject: Re: cwarn/font-lock problem under HP-UX 10.20
Date: Tue, 4 Dec 2001 10:36:53 +0200 (IST)

On Mon, 3 Dec 2001, Klaus Zeitler wrote:

> 1. start emacs with -q
> 2. M-x: global-font-lock-mode
> 3. in scratch buffer execute (add-hook 'c-mode-hook 'turn-on-cwarn-mode)
> 4. load e.g. the following buggy C file:
> 
> 1  main ()
> 2  {
> 3    int x=5;
> 4    if (x=1);
> 5    {
> 6    }
> 7  }
> 
> 5. in line 4 the "=" and the ";" should be highlighted with
>    font-lock-warning face, but they aren't
> 
> 6. turn off cwarn-mode and turn it on again with twice
>    M-x cwarn-mode
>    now line 4 is correctly highlighted
> 
> 
> When I execute the first 4 steps on my GNU/Linux PC line 4 is
> correctly highlighted, but not under HP-UX. I'm puzzled, this
> is the first time that syntax highlighting acts differently on
> two OS.

It's not system-dependent, I can reproduce it on MS-Windows at least.
I'm gueqsing that you have something on GNU/Linux that happens even in
"emacs -q" (have you tried "emacs -q --no-site-file"?).

There's probably some subtle problem with regexps used by cwarn.
Could you please look?



reply via email to

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