-- Steve Youngs <youngs(a)xemacs.org> spake thusly:
Sorry Matt, but I think there is still something wrong with
font-lock.
When starting XEmacs, the little progress meter that says "Fontifying
World" tells me "Fontifying Aborted...".
And if you eval the following:
-----------
(defun world-mode ()
<snip>
------------
And then:
M-x world-mode
It gives:
Wrong type argument: markerp, nil
Ah. This was a pretty easy one. I stuck the initialization of
`font-lock-cache-position' in the wrong place in
`font-lock-set-defaults-1'. It wasn't being initialized for world-mode
because `font-lock-keywords' was already set. The following patch
fixes, and I'll go ahead and commit it:
Index: font-lock.el
===================================================================
RCS file: /usr/CVSroot/XEmacs/xemacs/lisp/font-lock.el,v
retrieving revision 1.7.2.28
diff -u -r1.7.2.28 font-lock.el
--- font-lock.el 2001/02/09 16:00:27 1.7.2.28
+++ font-lock.el 2001/02/19 06:15:05
@@ -1784,8 +1784,6 @@
(keywords (font-lock-choose-keywords
(nth 0 defaults) font-lock-maximum-decoration)))
- (setq font-lock-cache-position (make-marker))
-
;; Keywords?
(setq font-lock-keywords (if (fboundp keywords)
(funcall keywords)
@@ -1851,6 +1849,7 @@
(setq font-lock-beginning-of-syntax-function
'beginning-of-defun)))))
+ (setq font-lock-cache-position (make-marker))
(setq font-lock-defaults-computed t)))