[Bug: 21.5-b28] font-lock-fontify-buffer not working in HTML mode

robert delius royar xemacs at frinabulax.org
Fri Sep 21 09:30:18 EDT 2007


Thu, 20 Sep 2007 (07:03 -0400 UTC) Dr. Robert Delius Royar and wrote:

> ================================================================
> Dear Bug Team!
>
> This began with 21.5-b28 (+CVS-20070918).  When html files are read, the system
> reports they are being fontified, but no regexp calls appear to be made.  Here
> is an excerpt from the *Message-Log* buffer to show the difference between font
> locking messages for a perl file and an html file:
> Fontifying mailregistration.pl...
> Fontifying mailregistration.pl... (syntactically).
> Fontifying mailregistration.pl... (regexps)...
> Fontifying mailregistration.pl... (regexps)...
> [...]
> Fontifying mailregistration.pl... done.
> Fontifying register.html...
> Fontifying register.html... done.
> Fontifying student.html...
> Fontifying student.html... done.
> Fontifying mailcall.pl...
> Fontifying mailcall.pl... (syntactically).
> Fontifying mailcall.pl... (regexps)...
> Fontifying mailcall.pl... (regexps)...

After a bit of testing I discovered that I can "fix" my problem by either
1. removing all custom-set-variables from the startup code,
2. toggling font-lock-mode off then on in a psgml-* buffer that does not
    display correctly, or
3. starting with --vanilla.

I believe this may mean that there is a memory corruption related to the psgml
regexps which causes the regexps test code not to be called for psgml files
(includes xml and html).  I have a number of custom-set-variables and
custom-set-faces defined for HTML mode; however, simply removing those from the
startup has no effect on the outcome.  leaving them in and removing all
custom-set-variables does appear to fix the problem.  I tried reinstalling (and
recompiling) the psgml package, but that did not help.

-- 
Dr. Robert Delius Royar                   Associate Professor of English
Morehead State University                             Morehead, Kentucky



More information about the XEmacs-Beta mailing list