diff options
| author | Dave Love | 2002-11-04 14:29:04 +0000 |
|---|---|---|
| committer | Dave Love | 2002-11-04 14:29:04 +0000 |
| commit | f7706646eb22dbf8819b0071e94fdeb2ce53dbea (patch) | |
| tree | 88bcf53c6b6c1c3c84318475762c74bec2ddb5df /src/xterm.c | |
| parent | e571462046b0bc1a9a00a17b26350bf2789abde9 (diff) | |
| download | emacs-f7706646eb22dbf8819b0071e94fdeb2ce53dbea.tar.gz emacs-f7706646eb22dbf8819b0071e94fdeb2ce53dbea.zip | |
(XTread_socket): Check Lisp types for Vx_keysym_table
and fix C types.
Diffstat (limited to 'src/xterm.c')
| -rw-r--r-- | src/xterm.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/xterm.c b/src/xterm.c index 1b16ba85055..eef2eb15976 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -10758,14 +10758,15 @@ XTread_socket (sd, bufp, numchars, expected) | |||
| 10758 | numchars--; | 10758 | numchars--; |
| 10759 | } | 10759 | } |
| 10760 | /* Now non-ASCII. */ | 10760 | /* Now non-ASCII. */ |
| 10761 | else if (! EQ ((c = Fgethash (make_number (keysym), | 10761 | else if (HASH_TABLE_P (Vx_keysym_table) |
| 10762 | Vx_keysym_table, Qnil)), | 10762 | && (NATNUMP (c = Fgethash (make_number (keysym), |
| 10763 | Qnil)) | 10763 | Vx_keysym_table, |
| 10764 | Qnil)))) | ||
| 10764 | { | 10765 | { |
| 10765 | bufp->kind = (SINGLE_BYTE_CHAR_P (c) | 10766 | bufp->kind = (SINGLE_BYTE_CHAR_P (XFASTINT (c)) |
| 10766 | ? ASCII_KEYSTROKE_EVENT | 10767 | ? ASCII_KEYSTROKE_EVENT |
| 10767 | : MULTIBYTE_CHAR_KEYSTROKE_EVENT); | 10768 | : MULTIBYTE_CHAR_KEYSTROKE_EVENT); |
| 10768 | bufp->code = c; | 10769 | bufp->code = XFASTINT (c); |
| 10769 | XSETFRAME (bufp->frame_or_window, f); | 10770 | XSETFRAME (bufp->frame_or_window, f); |
| 10770 | bufp->arg = Qnil; | 10771 | bufp->arg = Qnil; |
| 10771 | bufp->modifiers | 10772 | bufp->modifiers |