[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: A simple implementation of context-sensitive keys
From: |
Tassilo Horn |
Subject: |
Re: A simple implementation of context-sensitive keys |
Date: |
Thu, 11 Sep 2008 10:48:32 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
Miles Bader <address@hidden> writes:
Hi Miles,
>> Hey, nice feature. I didn't know it till now. But how to I [re]set
>> this property in a good fashion? Currently I think hooking into
>> after-change-function would be TRTD.
>
> after-change-functions is a very blunt hammer, and overuse of it is
> not good.
I've thought that.
> I suspect the right thing depends what you're actually trying to do at
> the application level. In that sense, I'm not sure your attempt to
> define a single do-everything function like `define-context-keymap' is
> actually a very good idea;
I agree, so...
> in many cases it would seem simpler and more efficient to simply add
> keymap properties in an application-dependent manner.
... I asked you for a good way to use the font-locking mechanics to add
those properties. Currently I don't see how I can add only a keymap
property with `font-lock-add-keywords'.
Bye,
Tassilo
- Re: A simple implementation of context-sensitive keys, (continued)
Re: A simple implementation of context-sensitive keys, Stefan Monnier, 2008/09/10
Re: A simple implementation of context-sensitive keys, Lennart Borgman (gmail), 2008/09/11
Re: A simple implementation of context-sensitive keys, Lennart Borgman (gmail), 2008/09/11
Re: A simple implementation of context-sensitive keys, Tassilo Horn, 2008/09/11
Re: A simple implementation of context-sensitive keys, Lennart Borgman (gmail), 2008/09/11