[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: fontification-functions called for wrong buffer
From: |
Stefan Monnier |
Subject: |
Re: fontification-functions called for wrong buffer |
Date: |
02 Nov 2003 14:57:19 -0500 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 |
> I have a mode that adds a function to fontification functions. It works
> in 21.3 but not with the current CVS version. The problem is that in
> the CVS version of emacs, when a buffer X has a function Y in its
> fontification-functions variable (which is supposed to be automatically
> buffer-local), Y gets called not just when the current buffer is X but
> also when the current buffer is a minibuffer or an echo window. I can
> easily work around this, but it seems like a bug to me.
It's a recently introduced bug in add-hook compounded with sloppy coding on
your part: please pass the `local' argument to add-hook (and remove-hook
as well, of course).
Stefan
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: fontification-functions called for wrong buffer,
Stefan Monnier <=