changeset 90366:63ef337729c5

(read_char): Check if C is a character or not before looking up Vkeyboard_translate_table.
author Kenichi Handa <handa@m17n.org>
date Tue, 14 Mar 2006 07:52:38 +0000
parents a802c5505156
children 190ec6fe5153
files src/keyboard.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/keyboard.c	Mon Mar 13 12:19:58 2006 +0000
+++ b/src/keyboard.c	Tue Mar 14 07:52:38 2006 +0000
@@ -2974,7 +2974,8 @@
 	   && SCHARS (Vkeyboard_translate_table) > (unsigned) XFASTINT (c))
 	  || (VECTORP (Vkeyboard_translate_table)
 	      && XVECTOR (Vkeyboard_translate_table)->size > (unsigned) XFASTINT (c))
-	  || CHAR_TABLE_P (Vkeyboard_translate_table))
+	  || (CHAR_TABLE_P (Vkeyboard_translate_table)
+	      && CHARACTERP (c)))
 	{
 	  Lisp_Object d;
 	  d = Faref (Vkeyboard_translate_table, c);