changeset 6473:76bb655df959

(Fdefine_key): Check for non-events in keyvector.
author Karl Heuer <kwzh@gnu.org>
date Tue, 22 Mar 1994 23:36:28 +0000
parents 7491cbb3d1a3
children 79765ff7bfa1
files src/keymap.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/keymap.c	Tue Mar 22 22:59:01 1994 +0000
+++ b/src/keymap.c	Tue Mar 22 23:36:28 1994 +0000
@@ -616,6 +616,9 @@
 	  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));