diff options
| author | Kenichi Handa | 2002-03-01 01:43:03 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2002-03-01 01:43:03 +0000 |
| commit | 8b461910920ea23c15d6cbcc70bc25b727d556cf (patch) | |
| tree | 5effda155f534f5202106783764eecae8171719e /src | |
| parent | 811f73706a0a9a7b09330cc0183f2e526f072067 (diff) | |
| download | emacs-8b461910920ea23c15d6cbcc70bc25b727d556cf.tar.gz emacs-8b461910920ea23c15d6cbcc70bc25b727d556cf.zip | |
Include "character.h" instead of "charset.h".
(command_loop_1): Never call direct_output_forward_char before
a non-ASCII character.
(read_char): If Vkeyboard_translate_table is a char table, always
translated a character.
Diffstat (limited to 'src')
| -rw-r--r-- | src/keyboard.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/keyboard.c b/src/keyboard.c index 61f27adb3d5..6dfe76b47e8 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -32,7 +32,7 @@ Boston, MA 02111-1307, USA. */ | |||
| 32 | #include "window.h" | 32 | #include "window.h" |
| 33 | #include "commands.h" | 33 | #include "commands.h" |
| 34 | #include "buffer.h" | 34 | #include "buffer.h" |
| 35 | #include "charset.h" | 35 | #include "character.h" |
| 36 | #include "disptab.h" | 36 | #include "disptab.h" |
| 37 | #include "dispextern.h" | 37 | #include "dispextern.h" |
| 38 | #include "syntax.h" | 38 | #include "syntax.h" |
| @@ -1553,7 +1553,7 @@ command_loop_1 () | |||
| 1553 | : (lose >= 0x20 && lose < 0x7f)) | 1553 | : (lose >= 0x20 && lose < 0x7f)) |
| 1554 | /* To extract the case of continuation on | 1554 | /* To extract the case of continuation on |
| 1555 | wide-column characters. */ | 1555 | wide-column characters. */ |
| 1556 | && (WIDTH_BY_CHAR_HEAD (FETCH_BYTE (PT_BYTE)) == 1) | 1556 | && ASCII_BYTE_P (lose) |
| 1557 | && (XFASTINT (XWINDOW (selected_window)->last_modified) | 1557 | && (XFASTINT (XWINDOW (selected_window)->last_modified) |
| 1558 | >= MODIFF) | 1558 | >= MODIFF) |
| 1559 | && (XFASTINT (XWINDOW (selected_window)->last_overlay_modified) | 1559 | && (XFASTINT (XWINDOW (selected_window)->last_overlay_modified) |
| @@ -2699,8 +2699,7 @@ read_char (commandflag, nmaps, maps, prev_event, used_mouse_menu) | |||
| 2699 | && XSTRING (Vkeyboard_translate_table)->size > (unsigned) XFASTINT (c)) | 2699 | && XSTRING (Vkeyboard_translate_table)->size > (unsigned) XFASTINT (c)) |
| 2700 | || (VECTORP (Vkeyboard_translate_table) | 2700 | || (VECTORP (Vkeyboard_translate_table) |
| 2701 | && XVECTOR (Vkeyboard_translate_table)->size > (unsigned) XFASTINT (c)) | 2701 | && XVECTOR (Vkeyboard_translate_table)->size > (unsigned) XFASTINT (c)) |
| 2702 | || (CHAR_TABLE_P (Vkeyboard_translate_table) | 2702 | || CHAR_TABLE_P (Vkeyboard_translate_table)) |
| 2703 | && CHAR_TABLE_ORDINARY_SLOTS > (unsigned) XFASTINT (c))) | ||
| 2704 | { | 2703 | { |
| 2705 | Lisp_Object d; | 2704 | Lisp_Object d; |
| 2706 | d = Faref (Vkeyboard_translate_table, c); | 2705 | d = Faref (Vkeyboard_translate_table, c); |