changeset 89626:e2d5f38e23b4

(Fdefine_key): Fix handling of Lucid style event type list.
author Kenichi Handa <handa@m17n.org>
date Mon, 17 Nov 2003 01:06:37 +0000
parents 8dac60a36c4b
children 475ba24a4856
files src/keymap.c
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/keymap.c	Mon Nov 17 00:58:25 2003 +0000
+++ b/src/keymap.c	Mon Nov 17 01:06:37 2003 +0000
@@ -1103,12 +1103,12 @@
 
       if (CONSP (c))
 	{
-	  /* C may be a cons (FROM . TO) specifying a range of
-	     characters.  */
-	  if (CHARACTERP (XCAR (c)))
+	  /* C may be a Lucid style event type list or a cons (FROM .
+	     TO) specifying a range of characters.  */
+	  if (lucid_event_type_list_p (c))
+	    c = Fevent_convert_list (c);
+	  else if (CHARACTERP (XCAR (c)))
 	    CHECK_CHARACTER_CDR (c);
-	  else if (lucid_event_type_list_p (c))
-	    c = Fevent_convert_list (c);
 	}
 
       if (SYMBOLP (c))