> 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


_______________________________________________
Emacs-pretest-bug mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug

Reply via email to