diff options
| author | Jim Blandy | 1992-06-24 05:09:26 +0000 |
|---|---|---|
| committer | Jim Blandy | 1992-06-24 05:09:26 +0000 |
| commit | daa3760289bd389e8c174c8d24b375cd875cd911 (patch) | |
| tree | 0abe3e6108e0e5a7c98f4c4aa68a495b0ecef09a /src/keyboard.c | |
| parent | a4275ad1c8f60239b0bad43cef97ca86d35a51a3 (diff) | |
| download | emacs-daa3760289bd389e8c174c8d24b375cd875cd911.tar.gz emacs-daa3760289bd389e8c174c8d24b375cd875cd911.zip | |
*** empty log message ***
Diffstat (limited to 'src/keyboard.c')
| -rw-r--r-- | src/keyboard.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/keyboard.c b/src/keyboard.c index 12d936ad0d8..97b98c98b98 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -1491,7 +1491,7 @@ kbd_buffer_store_event (event) | |||
| 1491 | get returned to Emacs as an event, the next event read | 1491 | get returned to Emacs as an event, the next event read |
| 1492 | will set Vlast_event_screen again, so this is safe to do. */ | 1492 | will set Vlast_event_screen again, so this is safe to do. */ |
| 1493 | extern SIGTYPE interrupt_signal (); | 1493 | extern SIGTYPE interrupt_signal (); |
| 1494 | XSET (Vlast_event_screen, Lisp_Screen, event->screen); | 1494 | Vlast_event_screen = SCREEN_FOCUS_SCREEN (event->screen); |
| 1495 | last_event_timestamp = event->timestamp; | 1495 | last_event_timestamp = event->timestamp; |
| 1496 | interrupt_signal (); | 1496 | interrupt_signal (); |
| 1497 | return; | 1497 | return; |
| @@ -1610,6 +1610,10 @@ kbd_buffer_get_event () | |||
| 1610 | { | 1610 | { |
| 1611 | if (kbd_fetch_ptr == kbd_buffer + KBD_BUFFER_SIZE) | 1611 | if (kbd_fetch_ptr == kbd_buffer + KBD_BUFFER_SIZE) |
| 1612 | kbd_fetch_ptr = kbd_buffer; | 1612 | kbd_fetch_ptr = kbd_buffer; |
| 1613 | /* Do the redirection specified by the focus_screen | ||
| 1614 | member now, before we return this event. */ | ||
| 1615 | kbd_fetch_ptr->screen = | ||
| 1616 | XSCREEN (SCREEN_FOCUS_SCREEN (kbd_fetch_ptr->screen)); | ||
| 1613 | XSET (Vlast_event_screen, Lisp_Screen, kbd_fetch_ptr->screen); | 1617 | XSET (Vlast_event_screen, Lisp_Screen, kbd_fetch_ptr->screen); |
| 1614 | last_event_timestamp = kbd_fetch_ptr->timestamp; | 1618 | last_event_timestamp = kbd_fetch_ptr->timestamp; |
| 1615 | obj = make_lispy_event (kbd_fetch_ptr); | 1619 | obj = make_lispy_event (kbd_fetch_ptr); |
| @@ -2765,7 +2769,7 @@ typed while in this function is treated like any other character, and\n\ | |||
| 2765 | GCPRO1 (keybuf[0]); | 2769 | GCPRO1 (keybuf[0]); |
| 2766 | gcpro1.nvars = (sizeof keybuf/sizeof (keybuf[0])); | 2770 | gcpro1.nvars = (sizeof keybuf/sizeof (keybuf[0])); |
| 2767 | 2771 | ||
| 2768 | if (! NILP (continue_echo)) | 2772 | if (NILP (continue_echo)) |
| 2769 | this_command_key_count = 0; | 2773 | this_command_key_count = 0; |
| 2770 | 2774 | ||
| 2771 | i = read_key_sequence (keybuf, (sizeof keybuf/sizeof (keybuf[0])), | 2775 | i = read_key_sequence (keybuf, (sizeof keybuf/sizeof (keybuf[0])), |
| @@ -3050,7 +3054,7 @@ Actually, the value is nil only if we can be sure that no input is available.") | |||
| 3050 | } | 3054 | } |
| 3051 | 3055 | ||
| 3052 | DEFUN ("recent-keys", Frecent_keys, Srecent_keys, 0, 0, 0, | 3056 | DEFUN ("recent-keys", Frecent_keys, Srecent_keys, 0, 0, 0, |
| 3053 | "Return a vector of last 100 events read from terminal.") | 3057 | "Return vector of last 100 chars read from terminal.") |
| 3054 | () | 3058 | () |
| 3055 | { | 3059 | { |
| 3056 | Lisp_Object val; | 3060 | Lisp_Object val; |