From: Dave Love Date: Mon, 28 Oct 2002 22:57:17 +0000 (+0000) Subject: (XTread_socket): Only consider keysym>=32 for ASCII. X-Git-Tag: emacs-pretest-23.0.90~8295^2~1864^2~205 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9894f7df29b578123b2b0ccae3808f6603c2b6c3;p=emacs.git (XTread_socket): Only consider keysym>=32 for ASCII. --- diff --git a/src/xterm.c b/src/xterm.c index 71731deed2b..7c57c91b843 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -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