comparison lispref/modes.texi @ 73398:86946679c343

(Precalculated Fontification): Don't say that not setting font-lock-defaults avoids loading font-lock.
author Richard M. Stallman <rms@gnu.org>
date Mon, 16 Oct 2006 18:54:26 +0000
parents 2b79bc909a3d
children a71f63e8ff3f 7eeafaaa9eab
comparison
equal deleted inserted replaced
73397:4aa300075af8 73398:86946679c343
2814 which construct their text programmatically, such as 2814 which construct their text programmatically, such as
2815 @code{list-buffers} and @code{occur}. 2815 @code{list-buffers} and @code{occur}.
2816 2816
2817 If your mode does not use any of the other machinery of Font Lock 2817 If your mode does not use any of the other machinery of Font Lock
2818 (i.e. it only uses the @code{font-lock-face} property), it should not 2818 (i.e. it only uses the @code{font-lock-face} property), it should not
2819 set the variable @code{font-lock-defaults}. That way, it will not 2819 set the variable @code{font-lock-defaults}.
2820 cause loading of the @file{font-lock} library.
2821 2820
2822 @node Faces for Font Lock 2821 @node Faces for Font Lock
2823 @subsection Faces for Font Lock 2822 @subsection Faces for Font Lock
2824 2823
2825 You can make Font Lock mode use any face, but several faces are 2824 You can make Font Lock mode use any face, but several faces are