On 18 Feb 2002, chris(a)void.printf.net wrote:
>>>>> "jpw" == John Paul Wallington
<jpw(a)shootybangbang.com> writes:
jpw> How does an XEmacs user get font-lock automatically for modes
jpw> that don't visit files (eg: M-x ielm) ?
The same method as for other modes; enable it globally. The incantation
you're looking for is probably "(setq global-font-lock-mode t)".
I think john might be asking a different question. Or if he isn't
asking a different question I will:
I've noticed that several functions (pcl-cvs log, pcl-cvs diff) have
done everything necessary for font locking, except enable it. I think
font locking should just come on in all buffers. So, I was going to
send in some patches. But first.
What is the proper way to check if font-lock is enabled, and if
enabled globally to make sure that font locking is enabled for that mode.
p
For example, is this the right patch for cvs-log.el
-jeff
===================================================================
--- lisp/pcl-cvs/cvs-log.el 2000/04/21 09:58:16 1.1.1.1
+++ lisp/pcl-cvs/cvs-log.el 2002/02/01 02:36:55
@@ -87,7 +87,8 @@
(autoload 'cvs-log-mode "cvs-log" "Major mode for browsing CVS log
output." t)
(cvs-define-major-mode "CVS-Log"
"Major mode for browsing CVS log output."
- (set (make-local-variable 'cvs-minor-wrap-function) 'cvs-log-minor-wrap))
+ (set (make-local-variable 'cvs-minor-wrap-function) 'cvs-log-minor-wrap)
+ (font-lock-mode t))
================