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: Stefan Monnier
Subject: Re: perl mode color highlighting working badly
Date: Tue, 04 Oct 2005 16:34:20 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

> 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




reply via email to

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