>>>> "Jan" == Jan Vroonhof
<vroonhof(a)math.ethz.ch> writes:
Jan> ;; If the buffer is about to be reverted, it won't be fontified
afterward.
Jan> (defun font-lock-revert-setup ()
Jan> (setq font-lock-fontified nil))
Jan> ;; If the buffer has just been reverted, normally that turns off
Jan> ;; Font Lock mode. So turn the mode back on if necessary.
Jan> ;; sb 1999-03-03 -- The above comment no longer appears to be operative as
Jan> ;; the first call to normal-mode *will* restore the font-lock state and
Jan> ;; this call forces a second font-locking to occur when reverting a buffer,
Jan> ;; which is wasteful at best.
Jan> ;(defalias 'font-lock-revert-cleanup 'turn-on-font-lock)
Jan> (defun font-lock-revert-cleanup ())
Jan> a. Does undoing Steve's change help for your guys?
Jan> b. Why _does_ the font-lock-ing work for me? I am using lazy-shot.el,
Jan> are you?
I'll give this a try soon. The problem is that sometimes font-lock
goes away and sometimes it doesn't, and when it does goes away, I'm
busy doing something else (real code!) so I don't bother to find out
why. There does seem to be some correlation between the buffer size,
though. Large buffers don't seem to get font-lock'ed again, but this
is pure speculation.
Jan> P.S. I am using lazy-shot.el that sim
What? You mean Simon's version?
I'm also using lazy-shot that comes in the sumo packages.
Ray