aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKarl Heuer1994-03-22 23:36:28 +0000
committerKarl Heuer1994-03-22 23:36:28 +0000
commit5907b8633f59de9a3ba1b1ba9f081ca49ed0646f (patch)
tree43f6464ce8e0a814aded7013991e890dd3edd19b /src
parent0abbff134f60720b4b4eb0a352b00fb6761eebd0 (diff)
downloademacs-5907b8633f59de9a3ba1b1ba9f081ca49ed0646f.tar.gz
emacs-5907b8633f59de9a3ba1b1ba9f081ca49ed0646f.zip
(Fdefine_key): Check for non-events in keyvector.
Diffstat (limited to 'src')
-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.")
616 idx++; 616 idx++;
617 } 617 }
618 618
619 if (! INTEGERP (c) && ! SYMBOLP (c) && ! CONSP (c))
620 error ("Key sequence contains illegal events");
621
619 if (idx == length) 622 if (idx == length)
620 RETURN_UNGCPRO (store_in_keymap (keymap, c, def)); 623 RETURN_UNGCPRO (store_in_keymap (keymap, c, def));
621 624