[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: font-lock-add-keywords in hi-lock.el
From: |
Stefan Monnier |
Subject: |
Re: font-lock-add-keywords in hi-lock.el |
Date: |
Fri, 30 Dec 2005 18:21:40 -0500 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
> signal(error ("Font-lock trying to use keywords before setting them up"))
> error("Font-lock trying to use keywords before setting them up")
> font-lock-compile-keywords(nil t)
> font-lock-fontify-keywords-region(1 81 nil)
> font-lock-default-fontify-region(1 80 nil)
> font-lock-fontify-region(1 80)
> mh-add-sequence-notation(1 t)
So it looks like the problem is that you call font-lock-fontify-region
without first setting up font-lock variables (e.g. by calling
font-lock-mode or font-lock-set-defaults).
> OK, that's better, thanks! I still need to check the other calls on the
> stack, but mh-visit-folder contains this:
> (make-local-variable 'font-lock-defaults)
> (setq font-lock-defaults '(mh-folder-font-lock-keywords t))
> Is this the usual way of injecting one's keywords?
Yes.
Stefan
- Re: font-lock-add-keywords in hi-lock.el, (continued)
- Re: font-lock-add-keywords in hi-lock.el, Bill Wohler, 2005/12/30
- Re: font-lock-add-keywords in hi-lock.el, Luc Teirlinck, 2005/12/30
- Re: font-lock-add-keywords in hi-lock.el, Luc Teirlinck, 2005/12/30
- Re: font-lock-add-keywords in hi-lock.el, Bill Wohler, 2005/12/30
- Re: font-lock-add-keywords in hi-lock.el, Stefan Monnier, 2005/12/30
- Re: font-lock-add-keywords in hi-lock.el, Bill Wohler, 2005/12/30
- Re: font-lock-add-keywords in hi-lock.el,
Stefan Monnier <=
- Re: font-lock-add-keywords in hi-lock.el, Bill Wohler, 2005/12/30
- Re: font-lock-add-keywords in hi-lock.el, Bill Wohler, 2005/12/30