summaryrefslogtreecommitdiff
path: root/src/keymap.c
diff options
context:
space:
mode:
authorKarl Heuer <kwzh@gnu.org>1994-03-22 23:36:28 +0000
committerKarl Heuer <kwzh@gnu.org>1994-03-22 23:36:28 +0000
commit5907b8633f59de9a3ba1b1ba9f081ca49ed0646f (patch)
tree43f6464ce8e0a814aded7013991e890dd3edd19b /src/keymap.c
parent0abbff134f60720b4b4eb0a352b00fb6761eebd0 (diff)
downloademacs-5907b8633f59de9a3ba1b1ba9f081ca49ed0646f.tar.gz
(Fdefine_key): Check for non-events in keyvector.
Diffstat (limited to 'src/keymap.c')
-rw-r--r--src/keymap.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/keymap.c b/src/keymap.c
index ed84063bcd3..1b2336562f2 100644
--- a/src/keymap.c
+++ b/src/keymap.c
@@ -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));