Commit 5f245371 authored by Kim F. Storm's avatar Kim F. Storm
Browse files

(Flookup_key): Fixed problem in 2001-12-28 patch:

The validation of the event type was too strict as it didn't
allow string events; buffer names are used in bindings for
menu-bar-select-buffer (see `menu-bar-update-buffers').
parent a8959ac2
2002-02-24 Kim F. Storm <storm@cua.dk>
* keymap.c (Flookup_key): Fixed problem in 2001-12-28 patch:
The validation of the event type was too strict as it didn't
allow string events; buffer names are used in bindings for
menu-bar-select-buffer (see `menu-bar-update-buffers').
2002-02-23 Kim F. Storm <storm@cua.dk>
 
The following changes rework my patch of 2002-02-06 which
......
......@@ -1142,7 +1142,9 @@ recognize the default bindings, just as `read-key-sequence' does. */)
if (XINT (c) & 0x80 && STRINGP (key))
XSETINT (c, (XINT (c) | meta_modifier) & ~0x80);
if (!INTEGERP (c) && !SYMBOLP (c) && !CONSP (c))
/* Allow string since binding for `menu-bar-select-buffer'
includes the buffer name in the key sequence. */
if (!INTEGERP (c) && !SYMBOLP (c) && !CONSP (c) && !STRINGP (c))
error ("Key sequence contains invalid event");
cmd = access_keymap (keymap, c, t_ok, 0, 1);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment