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

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

Re: perl mode color highlighting working badly


From: Warren L Dodge
Subject: Re: perl mode color highlighting working badly
Date: Tue, 25 Oct 2005 10:59:49 -0700 (PDT)

I did back in Sept. I think it is what started this thread with me being
copied on the emails

I can send you one of the files if you would like.


> I am using 22.0.50 emacs and am having odd behavior with perl-mode
> color highlighting.  I may be doing it wrong now since I notice a lot
> of stuff in this version doesn't behave the same as 21.3.

> Here is what I did, which works fine on 21.3

> emacs-22.0.50 -q --no-site-file ~/regress. ~/.emacs

> I went about 75% of the way down into the "regress." file. I then went
> into the .emacs file and did an eval-region on this line

> (global-font-lock-mode t)

> Then back in the "regress." file the coloring of the code is all as if
> it were the text between ""'s

I've figured it out.  But it seems difficult to fix right now.

The problem is that in perl-mode some syntax-table text-properties are set
in font-lock-syntactic-keywords, while others are set in
font-lock-syntactic-face-function, and that font-lock+jit-lock applies
font-lock-syntactic-keywords to "all" the buffer but only applies
font-lock-syntactic-face-function to the displayed part of the buffer.
So some of those properties can be missing if you start display from
somewhere else than the beginning of the buffer.  Hmm...


        Stefan


>  Cc: address@hidden, address@hidden
>  From: Stefan Monnier <address@hidden>
>  Date: Tue, 25 Oct 2005 13:27:41 -0400
>  MIME-Version: 1.0
>  Content-Type: text/plain; charset=us-ascii
>  
>  > I find the current perl-mode highlighting more detrimental then useful. On
>  > almost every file I edit in perl-mode it gets really confused and I spend
>  > more time trying to make it work right then doing the code changes.
>  
>  I haven't seen any bug reports about it.
>  It's difficult to improve it if you don't report those bugs.
>  
>  
>          Stefan
>  




reply via email to

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