[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Getting the click position in a string
From: |
David Kastrup |
Subject: |
Re: Getting the click position in a string |
Date: |
Thu, 27 Apr 2006 20:33:37 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
Stefan Monnier <address@hidden> writes:
>> Factoring the keymap and partial keymaps out into a separate function
>> would probably not be trivial. But even if code reuse might not be
>> practical, I think that something like posn-key-binding should be
>> implemented in keyboard.c so that there is some guarantee it will
>> deliver the same results.
>
> I think it only makes sense to write it in the C code if the resulting code
> can be shared with Fread_key_sequence. Until such a reorg is done, it'd be
> good to provide the function in subr.el along the other posn-* functions.
>
> But in order not to make it appear like an "accessor function", maybe it'd
> be better to name it differently, e.g. "posn-lookup-key-binding".
> Of course, another way to do it is to change `key-binding' so that it
> accepts a `posn' argument (and/or an event argument).
If it accepted an event instead of a keymap, that would be reasonably
convenient. There is a certain danger that this extension would be
obscure: people might not know where to look for it in general.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
- Re: Getting the click position in a string, (continued)
- Re: Getting the click position in a string, David Kastrup, 2006/04/26
- Re: Getting the click position in a string, Kim F. Storm, 2006/04/26
- Re: Getting the click position in a string, David Kastrup, 2006/04/26
- Re: Getting the click position in a string, David Kastrup, 2006/04/26
- Re: Getting the click position in a string, David Kastrup, 2006/04/26
- Re: Getting the click position in a string, Stefan Monnier, 2006/04/26
- Re: Getting the click position in a string, David Kastrup, 2006/04/27
- Re: Getting the click position in a string, Stefan Monnier, 2006/04/27
- Re: Getting the click position in a string,
David Kastrup <=
- Re: Getting the click position in a string, Stefan Monnier, 2006/04/27
- Re: Getting the click position in a string, David Kastrup, 2006/04/27
- Re: Getting the click position in a string, Stefan Monnier, 2006/04/28
- Re: Getting the click position in a string, David Kastrup, 2006/04/29
- Re: Getting the click position in a string, Stefan Monnier, 2006/04/29
- Re: Getting the click position in a string, David Kastrup, 2006/04/30
- Re: Getting the click position in a string, Stefan Monnier, 2006/04/30