mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-02 08:22:22 +00:00
* keymap.c (Fkey_binding): Use string position for string objects.
This commit is contained in:
parent
e027c6e48d
commit
91197db4cb
@ -1,3 +1,7 @@
|
||||
2006-09-11 Chong Yidong <cyd@stupidchicken.com>
|
||||
|
||||
* keymap.c (Fkey_binding): Use string position for string objects.
|
||||
|
||||
2006-09-11 Kim F. Storm <storm@cua.dk>
|
||||
|
||||
* keymap.c (Fkey_binding): Fix last change.
|
||||
|
17
src/keymap.c
17
src/keymap.c
@ -1587,13 +1587,16 @@ is non-nil, `key-binding' returns the unmapped command. */)
|
||||
&& XINT (Flength (pos)) == 10
|
||||
&& INTEGERP (XCAR (XCDR (pos))))
|
||||
{
|
||||
Lisp_Object map, obj;
|
||||
obj = Fnth (make_number(4), pos);
|
||||
map = Fget_char_property (XCAR (XCDR (pos)),
|
||||
Qkeymap,
|
||||
NILP (obj) ?
|
||||
Fwindow_buffer (XCAR (pos))
|
||||
: XCAR (obj));
|
||||
Lisp_Object map, object;
|
||||
|
||||
object = Fnth (make_number(4), pos);
|
||||
|
||||
if (CONSP (object))
|
||||
map = Fget_char_property (XCDR (object), Qkeymap, XCAR (object));
|
||||
else
|
||||
map = Fget_char_property (XCAR (XCDR (pos)), Qkeymap,
|
||||
Fwindow_buffer (XCAR (pos)));
|
||||
|
||||
if (!NILP (Fkeymapp (map)))
|
||||
{
|
||||
value = Flookup_key (map, key, accept_default);
|
||||
|
Loading…
Reference in New Issue
Block a user