Raymond Toy <toy(a)rtp.ericsson.se> writes:
> No, it's not Window NT native. I've seen exactly the same things
> (except with vc-cc) on Solaris. This happened right after some
> changes that were made in revert-buffer or something like that. I
> vaguely remember someone complaining that font-lock appeared to get
> run twice on revert-buffer. Now it does't even get run once. :-(
Can one of you guess step through that code and see where the
font-locking gets lost?
> (This might not be quite right. My mail archives do go back far
> enough.)
I see what you mean now. I think you mean this stuff from font-lock.el
;; If the buffer is about to be reverted, it won't be fontified afterward.
(defun font-lock-revert-setup ()
(setq font-lock-fontified nil))
;; If the buffer has just been reverted, normally that turns off
;; Font Lock mode. So turn the mode back on if necessary.
;; sb 1999-03-03 -- The above comment no longer appears to be operative as
;; the first call to normal-mode *will* restore the font-lock state and
;; this call forces a second font-locking to occur when reverting a buffer,
;; which is wasteful at best.
;(defalias 'font-lock-revert-cleanup 'turn-on-font-lock)
(defun font-lock-revert-cleanup ())
a. Does undoing Steve's change help for your guys?
b. Why _does_ the font-lock-ing work for me? I am using lazy-shot.el,
are you?
Jan
P.S. I am using lazy-shot.el that sim