diff options
| author | Dave Love | 2003-02-04 19:24:26 +0000 |
|---|---|---|
| committer | Dave Love | 2003-02-04 19:24:26 +0000 |
| commit | 2f2c059ddce0628c3b8a8fe861024ccf0eeb7dc9 (patch) | |
| tree | 842f02e02779fc52cfda9fc3dc3416ce199e2346 /src/xterm.c | |
| parent | a82f9242032a9e0e2371b738a1ebf37f6b523a9b (diff) | |
| download | emacs-2f2c059ddce0628c3b8a8fe861024ccf0eeb7dc9.tar.gz emacs-2f2c059ddce0628c3b8a8fe861024ccf0eeb7dc9.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 d878d6cce86..b6c63aacfa1 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -10571,14 +10571,15 @@ XTread_socket (sd, bufp, numchars, expected) | |||
| 10571 | numchars--; | 10571 | numchars--; |
| 10572 | } | 10572 | } |
| 10573 | /* Now non-ASCII. */ | 10573 | /* Now non-ASCII. */ |
| 10574 | else if (! EQ ((c = Fgethash (make_number (keysym), | 10574 | else if (HASH_TABLE_P (Vx_keysym_table) |
| 10575 | Vx_keysym_table, Qnil)), | 10575 | && (CHARACTERP (c = Fgethash (make_number (keysym), |
| 10576 | Qnil)) | 10576 | Vx_keysym_table, |
| 10577 | Qnil)))) | ||
| 10577 | { | 10578 | { |
| 10578 | bufp->kind = (ASCII_CHAR_P (c) | 10579 | bufp->kind = (ASCII_CHAR_P (XFASTINT (c)) |
| 10579 | ? ascii_keystroke | 10580 | ? ascii_keystroke |
| 10580 | : multibyte_char_keystroke); | 10581 | : multibyte_char_keystroke); |
| 10581 | bufp->code = c; | 10582 | bufp->code = XFASTINT (c); |
| 10582 | XSETFRAME (bufp->frame_or_window, f); | 10583 | XSETFRAME (bufp->frame_or_window, f); |
| 10583 | bufp->arg = Qnil; | 10584 | bufp->arg = Qnil; |
| 10584 | bufp->modifiers | 10585 | bufp->modifiers |