[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Need help with search based font-locking
From: |
Tassilo Horn |
Subject: |
Re: Need help with search based font-locking |
Date: |
Mon, 28 Dec 2009 19:18:01 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1.90 (gnu/linux) |
Lennart Borgman <address@hidden> writes:
Hi Lennart,
>> What's the reason for disabling `font-lock-mode-hook' while
>> deactivating `font-lock-mode', but not while enabling it again?
>
> Oh, thanks. I should have commented on that in the code.
>
> It is just because hi-lock is turned off otherwise. But there is a
> variable
>
> hi-lock--inhibit-font-lock-hook
>
> I could have used too. However I thought there might be other things
> behaving similar to hi-lock in this respect.
Hm, I think, in that case let-binding `hi-lock--inhibit-font-lock-hook'
would be more appropriate, because it's a special case to circumvent the
asymmetry of the function `hi-lock-font-lock-hook', which switches off
`hi-lock-mode' when `font-lock-mode' is disabled, but doesn't switch it
on in the other case.
If nobody objects, I'll commit version modified this way.
Bye,
Tassilo
- Need help with search based font-locking, Tassilo Horn, 2009/12/22
- Re: Need help with search based font-locking, Lennart Borgman, 2009/12/22
- Re: Need help with search based font-locking, Tassilo Horn, 2009/12/23
- Re: Need help with search based font-locking, Tassilo Horn, 2009/12/23
- Re: Need help with search based font-locking, Stefan Monnier, 2009/12/23
- Re: Need help with search based font-locking, Lennart Borgman, 2009/12/23
- Re: Need help with search based font-locking, Stefan Monnier, 2009/12/23
- Re: Need help with search based font-locking, Lennart Borgman, 2009/12/24
- Re: Need help with search based font-locking, Tassilo Horn, 2009/12/28
- Re: Need help with search based font-locking, Lennart Borgman, 2009/12/28
- Re: Need help with search based font-locking,
Tassilo Horn <=
- Re: Need help with search based font-locking, Tassilo Horn, 2009/12/30
- Re: Need help with search based font-locking, Stefan Monnier, 2009/12/30