[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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]