diff options
| author | Dave Love | 2002-11-04 14:58:44 +0000 |
|---|---|---|
| committer | Dave Love | 2002-11-04 14:58:44 +0000 |
| commit | 5e3cb80dac8af47d279f2c940c31355421747f08 (patch) | |
| tree | 3611df72eae41b868f340e6f1568d135ef63b366 /src | |
| parent | f7706646eb22dbf8819b0071e94fdeb2ce53dbea (diff) | |
| download | emacs-5e3cb80dac8af47d279f2c940c31355421747f08.tar.gz emacs-5e3cb80dac8af47d279f2c940c31355421747f08.zip | |
(read_char): Always translate iff
Vkeyboard_translate_table is a char table and c is valid.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 8 | ||||
| -rw-r--r-- | src/keyboard.c | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index f3e2f01f6d1..30af0289369 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2002-11-04 Dave Love <fx@gnu.org> | ||
| 2 | |||
| 3 | * keyboard.c (read_char): Always translate iff | ||
| 4 | Vkeyboard_translate_table is a char table and c is valid. | ||
| 5 | |||
| 6 | * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table | ||
| 7 | and fix C types. | ||
| 8 | |||
| 1 | 2002-11-03 Stefan Monnier <monnier@cs.yale.edu> | 9 | 2002-11-03 Stefan Monnier <monnier@cs.yale.edu> |
| 2 | 10 | ||
| 3 | * xdisp.c (single_display_prop_intangible_p): Strings are intangible. | 11 | * xdisp.c (single_display_prop_intangible_p): Strings are intangible. |
diff --git a/src/keyboard.c b/src/keyboard.c index 7e3e4372e51..ea1f82f5639 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -2780,7 +2780,7 @@ read_char (commandflag, nmaps, maps, prev_event, used_mouse_menu) | |||
| 2780 | || (VECTORP (Vkeyboard_translate_table) | 2780 | || (VECTORP (Vkeyboard_translate_table) |
| 2781 | && XVECTOR (Vkeyboard_translate_table)->size > (unsigned) XFASTINT (c)) | 2781 | && XVECTOR (Vkeyboard_translate_table)->size > (unsigned) XFASTINT (c)) |
| 2782 | || (CHAR_TABLE_P (Vkeyboard_translate_table) | 2782 | || (CHAR_TABLE_P (Vkeyboard_translate_table) |
| 2783 | && CHAR_TABLE_ORDINARY_SLOTS > (unsigned) XFASTINT (c))) | 2783 | && CHAR_VALID_P (XINT (c), 0))) |
| 2784 | { | 2784 | { |
| 2785 | Lisp_Object d; | 2785 | Lisp_Object d; |
| 2786 | d = Faref (Vkeyboard_translate_table, c); | 2786 | d = Faref (Vkeyboard_translate_table, c); |