-- "Stephen J. Turnbull" <stephen(a)xemacs.org> spake thusly:
>>>>> "Matt" == Matt Tucker
<tuck(a)whistlingfish.net> writes:
Matt> This is a GNU Emacs thing. The XEmacs equivalent seems to be
Matt> font-lock-auto-fontify, which by default is t.
XEmacs doesn't have an equivalent. Presumably that's an oversight.
I'm not sure I agree with that. It seems like XEmacs is trying to
enable font-lock for all buffers if font-lock-auto-fontify is set, but
is only getting buffers that are associated with files because there's
no appropiate hook for buffers which aren't. GNU Emacs hacks around
this in a weird way to get it to work for all buffers.
The variable that controls whether this happens in GNU Emacs is
global-font-lock-mode. The functionality for font-lock-auto-fontify is
somewhat different, but the core concept is the same. The differences
are primarily a matter of implementation plus the fact that we can only
handle file-associated buffers.
Without adding another global variable, would it be reasonable to try
to use the GNU Emacs hack to enable font-lock for non-file buffers?