diff options
| author | Karl Heuer | 1994-09-20 04:39:43 +0000 |
|---|---|---|
| committer | Karl Heuer | 1994-09-20 04:39:43 +0000 |
| commit | 9343ab076bf8c4f3cec6418b5eaccfa140684483 (patch) | |
| tree | 5e00aa7efeb8416e7961cc1b2b4546c0bb9df67d /src | |
| parent | 6782610c408e3220fe2447a144ca4ac42f36fa19 (diff) | |
| download | emacs-9343ab076bf8c4f3cec6418b5eaccfa140684483.tar.gz emacs-9343ab076bf8c4f3cec6418b5eaccfa140684483.zip | |
(kbd_store_ptr): Declare storage class before qualifier.
(make_lispy_event): Fix Lisp_Object vs. int problems.
(read_avail_input, menu_bar_items_index, read_key_sequence): Likewise.
Diffstat (limited to 'src')
| -rw-r--r-- | src/keyboard.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/keyboard.c b/src/keyboard.c index 1b9a4e9a960..ee2703c65ca 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -2558,6 +2558,7 @@ make_lispy_event (event) | |||
| 2558 | /* A simple keystroke. */ | 2558 | /* A simple keystroke. */ |
| 2559 | case ascii_keystroke: | 2559 | case ascii_keystroke: |
| 2560 | { | 2560 | { |
| 2561 | Lisp_Object lispy_c; | ||
| 2561 | int c = event->code & 0377; | 2562 | int c = event->code & 0377; |
| 2562 | /* Turn ASCII characters into control characters | 2563 | /* Turn ASCII characters into control characters |
| 2563 | when proper. */ | 2564 | when proper. */ |
| @@ -2571,7 +2572,8 @@ make_lispy_event (event) | |||
| 2571 | & (meta_modifier | alt_modifier | 2572 | & (meta_modifier | alt_modifier |
| 2572 | | hyper_modifier | super_modifier)); | 2573 | | hyper_modifier | super_modifier)); |
| 2573 | button_down_time = 0; | 2574 | button_down_time = 0; |
| 2574 | return c; | 2575 | XFASTINT (lispy_c) = c; |
| 2576 | return lispy_c; | ||
| 2575 | } | 2577 | } |
| 2576 | 2578 | ||
| 2577 | /* A function key. The symbol may need to have modifier prefixes | 2579 | /* A function key. The symbol may need to have modifier prefixes |
| @@ -3617,7 +3619,7 @@ read_avail_input (expected) | |||
| 3617 | /* Don't look at input that follows a C-g too closely. | 3619 | /* Don't look at input that follows a C-g too closely. |
| 3618 | This reduces lossage due to autorepeat on C-g. */ | 3620 | This reduces lossage due to autorepeat on C-g. */ |
| 3619 | if (buf[i].kind == ascii_keystroke | 3621 | if (buf[i].kind == ascii_keystroke |
| 3620 | && XINT(buf[i].code) == quit_char) | 3622 | && buf[i].code == quit_char) |
| 3621 | break; | 3623 | break; |
| 3622 | } | 3624 | } |
| 3623 | 3625 | ||
| @@ -3715,7 +3717,7 @@ static void menu_bar_one_keymap (); | |||
| 3715 | menu_bar_items and its subroutines, and the current index | 3717 | menu_bar_items and its subroutines, and the current index |
| 3716 | for storing into that vector. */ | 3718 | for storing into that vector. */ |
| 3717 | static Lisp_Object menu_bar_items_vector; | 3719 | static Lisp_Object menu_bar_items_vector; |
| 3718 | static Lisp_Object menu_bar_items_index; | 3720 | static int menu_bar_items_index; |
| 3719 | 3721 | ||
| 3720 | /* Return a vector of menu items for a menu bar, appropriate | 3722 | /* Return a vector of menu items for a menu bar, appropriate |
| 3721 | to the current buffer. Each item has three elements in the vector: | 3723 | to the current buffer. Each item has three elements in the vector: |
| @@ -4636,7 +4638,7 @@ read_key_sequence (keybuf, bufsize, prompt) | |||
| 4636 | /* If we have a quit that was typed in another frame, and | 4638 | /* If we have a quit that was typed in another frame, and |
| 4637 | quit_throw_to_read_char switched buffers, | 4639 | quit_throw_to_read_char switched buffers, |
| 4638 | replay to get the right keymap. */ | 4640 | replay to get the right keymap. */ |
| 4639 | if (EQ (key, quit_char) && current_buffer != starting_buffer) | 4641 | if (XINT (key) == quit_char && current_buffer != starting_buffer) |
| 4640 | { | 4642 | { |
| 4641 | keybuf[t++] = key; | 4643 | keybuf[t++] = key; |
| 4642 | mock_input = t; | 4644 | mock_input = t; |