(Fdefine_key): Check for non-events in keyvector.

This commit is contained in:
Karl Heuer 1994-03-22 23:36:28 +00:00
parent 0abbff134f
commit 5907b8633f

View file

@ -616,6 +616,9 @@ the front of KEYMAP.")
idx++;
}
if (! INTEGERP (c) && ! SYMBOLP (c) && ! CONSP (c))
error ("Key sequence contains illegal events");
if (idx == length)
RETURN_UNGCPRO (store_in_keymap (keymap, c, def));