[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 23:39:31 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
Stefan Monnier <address@hidden> writes:
>>> 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.
>
> XEmacs does it, AFAIK, and I don't find it particularly obscure.
Well, XEmacs has opaque keymaps and/or events, I believe. For Emacs,
both keymaps as well as events can be cons cells, so I am not sure
eventp and keymapp will always be able to tell them apart.
--
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, 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/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