changeset 48146:b35ced393e6c

(read_char): Always translate iff Vkeyboard_translate_table is a char table and c is valid.
author Dave Love <fx@gnu.org>
date Mon, 04 Nov 2002 14:57:54 +0000
parents afa06e8da62c
children 892bafbb15f3
files src/keyboard.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/keyboard.c	Mon Nov 04 14:29:04 2002 +0000
+++ b/src/keyboard.c	Mon Nov 04 14:57:54 2002 +0000
@@ -2780,7 +2780,7 @@
 	  || (VECTORP (Vkeyboard_translate_table)
 	      && XVECTOR (Vkeyboard_translate_table)->size > (unsigned) XFASTINT (c))
 	  || (CHAR_TABLE_P (Vkeyboard_translate_table)
-	      && CHAR_TABLE_ORDINARY_SLOTS > (unsigned) XFASTINT (c)))
+	      && CHAR_VALID_P (XINT (c), 0)))
 	{
 	  Lisp_Object d;
 	  d = Faref (Vkeyboard_translate_table, c);