[Bug: 21.4.12] C sourse file lost color and highlights if file size is too big
Malcolm Purvis
malcolmp at xemacs.org
Thu Aug 11 09:33:18 EDT 2005
>>>>> "zhangj" == zhangj <zhangj at tycoelectronics.com> writes:
zhangj> If I open a C source file that is big enough, all the colors and
zhangj> highlights are lost - everything becomes black&white. However, if I
zhangj> edit a line in it, the color of this line will come back.
This is a design feature. Applying the colours and highlights, AKA Font
Locking, can take a considerable about of time so to keep XEmacs responsive
these features are not applied globally to files over a certain size. As
edits are made to these files, font locking is applied locally.
Please read to documentation for the variable font-lock-maximum-size to see
how to change the default size.
BTW, there have been a considerable number of bug fixes between 21.4.12 and
the current release, 21.4.17. While it won't change things with this problem,
I'd recommend upgrading if at all possible.
Malcolm
--
Malcolm Purvis <malcolmp at xemacs.org>
More information about the XEmacs-Beta
mailing list