try using lazy font lock -- much faster.
-- from sample.emacs --
;;; ********************
;;; lazy-lock is a package which speeds up the highlighting of files
;;; by doing it "on-the-fly" -- only the visible portion of the
;;; buffer is fontified. The results may not always be quite as
;;; accurate as using full font-lock or fast-lock, but it's *much*
;;; faster. No more annoying pauses when you load files.
(add-hook 'font-lock-mode-hook 'turn-on-lazy-lock)
;; I personally don't like "stealth mode" (where lazy-lock starts
;; fontifying in the background if you're idle for 30 seconds)
;; because it takes too long to wake up again on my piddly Sparc 1+.
(setq lazy-lock-stealth-time nil)
> -----Original Message-----
> From: Dave Zelnis [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 30, 2000 7:38 AM
> To: [EMAIL PROTECTED]
> Subject: font-locking and javadoc
>
>
> I'm using a fairly vanilla font-lock mode along with the JDE. I can
> insert a Javadoc comment (C-c C-v j) the *first* time no problem.
> However, the second time (and beyond) that I insert a Javadoc comment
> in that same source file, font-lock decides to re-fontify the entire
> buffer. This can be a pain on larger buffers on slower machines. It
> doesn't matter what I'm documenting (class/variable/method).
>
> If I run a macro (instead of jde-javadoc-generate-javadoc-template)
> that inserts some Javadoc text into the buffer at that point I don't
> see this behavior.
>
> Does anyone else see this? Is this a "bug" or a "feature"?
> Can I stop
> it from happening?
>
> I do NOT see this behavior running "emacs -q" so I don't
> think it's in my
> setup.
>
> Dave
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Talk to your friends online with Yahoo! Messenger.
> http://im.yahoo.com
>
