Jan Vroonhof <vroonhof(a)math.ethz.ch> writes in xemacs-beta(a)xemacs.org:
SL Baur <steve(a)xemacs.org> writes:
> +;; 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.
Are you sure it will restore the font-lock state or is just that
the normal find-file hooks us the normal mechanism to turn it on?
The latter.
i.e. what happens when I am editing in a major mode that is normally
_not_ font-lock-ed an I do
M-x turn-on-font-lock RET
I presume you mean M-: (turn-on-font-lock)
M-x revert-buffer RET
Is the result a font-locked buffer?
No. Which is as it should be[1].
I guess my wording is confusing. I mean that the normal mode hooks
will turn on font-lock if it should be turned on.
Footnotes:
[1] I just checked and the latest test version (I don't have access
to any other version) FSF Emacs 20.3 works the same way.