comparison src/xterm.c @ 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 960493ec527a
children 25c1826d3baa
comparison
equal deleted inserted replaced
89251:c0f658e432a7 89252:5db3cf46e179
1 /* X Communication module for terminals which understand the X protocol. 1 /* X Communication module for terminals which understand the X protocol.
2 Copyright (C) 1989, 93, 94, 95, 96, 1997, 1998, 1999, 2000, 2001 2 Copyright (C) 1989, 93, 94, 95, 96, 1997, 1998, 1999, 2000, 01, 02
3 Free Software Foundation, Inc. 3 Free Software Foundation, Inc.
4 4
5 This file is part of GNU Emacs. 5 This file is part of GNU Emacs.
6 6
7 GNU Emacs is free software; you can redistribute it and/or modify 7 GNU Emacs is free software; you can redistribute it and/or modify
10648 if (temp_index == sizeof temp_buffer / sizeof (short)) 10648 if (temp_index == sizeof temp_buffer / sizeof (short))
10649 temp_index = 0; 10649 temp_index = 0;
10650 temp_buffer[temp_index++] = keysym; 10650 temp_buffer[temp_index++] = keysym;
10651 /* First deal with keysyms which have 10651 /* First deal with keysyms which have
10652 defined translations to characters. */ 10652 defined translations to characters. */
10653 if (keysym > 0 && keysym < 128) 10653 if (keysym >= 32 && keysym < 128)
10654 /* Fixme: Is this always right? It avoids 10654 /* Fixme: Is this always right? It avoids
10655 explicitly decoding each ASCII character. */ 10655 explicitly decoding each ASCII character. */
10656 { 10656 {
10657 bufp->kind = ascii_keystroke; 10657 bufp->kind = ascii_keystroke;
10658 bufp->code = c; 10658 bufp->code = c;
10659 } 10659 }
10660 else if (! EQ ((c = Fgethash (make_number (keysym), 10660 else if (! EQ ((c = Fgethash (make_number (keysym),
10661 Vx_keysym_table, 10661 Vx_keysym_table,
10662 Qnil)), 10662 Qnil)),
10663 Qnil)) 10663 Qnil))
10664 { 10664 {
10665 bufp->kind = (ASCII_CHAR_P (c) 10665 bufp->kind = (ASCII_CHAR_P (c)
10666 ? ascii_keystroke 10666 ? ascii_keystroke
10667 : multibyte_char_keystroke); 10667 : multibyte_char_keystroke);
10668 bufp->code = c; 10668 bufp->code = c;