]> git.eshelyaron.com Git - emacs.git/commitdiff
(XTread_socket): Only consider keysym>=32 for ASCII.
authorDave Love <fx@gnu.org>
Mon, 28 Oct 2002 22:57:17 +0000 (22:57 +0000)
committerDave Love <fx@gnu.org>
Mon, 28 Oct 2002 22:57:17 +0000 (22:57 +0000)
src/xterm.c

index 71731deed2b8a77394664f6f048f123da538d1b0..7c57c91b843a6c99b54fd63fa1236dda88d4fc9c 100644 (file)
@@ -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 @@ XTread_socket (sd, bufp, numchars, expected)
                          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 @@ XTread_socket (sd, bufp, numchars, expected)
                          else if (! EQ ((c = Fgethash (make_number (keysym),
                                                        Vx_keysym_table,
                                                        Qnil)),
-                                   Qnil))
+                                        Qnil))
                            {
                              bufp->kind = (ASCII_CHAR_P (c)
                                            ? ascii_keystroke