[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: hi-lock-mode doesn't work with emacs -Q.
From: |
Alan Mackenzie |
Subject: |
Re: hi-lock-mode doesn't work with emacs -Q. |
Date: |
Fri, 8 Jun 2007 12:11:25 +0100 |
User-agent: |
Mutt/1.5.9i |
Hi, Stefan.
On Thu, Jun 07, 2007 at 09:22:40AM -0400, Stefan Monnier wrote:
> > How can font-lock-mode be t, whilst at the same time there is no
> > after-change function?
> Because font-lock-mode-internal is not enabled.
> > Is this some optimisation in Font Lock mode that only sets
> > after-change-functions when font-lock-keywords is non-nil?
> Yes.
> > hi-lock.el doesn't seem to be violating Font Lock's proper calling
> > conventions in any way.
> Indeed. It's that the `font-lock-mode' function has changed meaning from
> Emacs-21 to Emacs-22. I'm not yet sure how best to fix it.
How about always enabling the pertinent after-change function (there are
just two, now, aren't there?), and wrapping it in the test currently in
font-lock-default-function at the comment
;; Only do hard work if the mode has specified stuff in
;; `font-lock-defaults'.
? The loss in performance for un-font-locked buffers will be
negligible, surely?
> Stefan
--
Alan.