changeset 89252:5db3cf46e179

(XTread_socket): Only consider keysym>=32 for ASCII.
author Dave Love <fx@gnu.org>
date Mon, 28 Oct 2002 22:57:17 +0000
parents c0f658e432a7
children 5277a40107d8
files src/xterm.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/xterm.c	Mon Oct 28 22:50:00 2002 +0000
+++ b/src/xterm.c	Mon Oct 28 22:57:17 2002 +0000
@@ -1,5 +1,5 @@
 /* X Communication module for terminals which understand the X protocol.
-   Copyright (C) 1989, 93, 94, 95, 96, 1997, 1998, 1999, 2000, 2001
+   Copyright (C) 1989, 93, 94, 95, 96, 1997, 1998, 1999, 2000, 01, 02
    Free Software Foundation, Inc.
 
 This file is part of GNU Emacs.
@@ -10650,7 +10650,7 @@
 			  temp_buffer[temp_index++] = keysym;
 			  /* First deal with keysyms which have
 			     defined translations to characters.  */
-			  if (keysym > 0 && keysym < 128)
+			  if (keysym >= 32 && keysym < 128)
 			    /* Fixme: Is this always right?  It avoids
 			       explicitly decoding each ASCII character.  */
 			    {
@@ -10660,7 +10660,7 @@
 			  else if (! EQ ((c = Fgethash (make_number (keysym),
 							Vx_keysym_table,
 							Qnil)),
-				    Qnil))
+					 Qnil))
 			    {
 			      bufp->kind = (ASCII_CHAR_P (c)
 					    ? ascii_keystroke