diff options
| author | Gerd Moellmann | 1999-09-13 11:13:50 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 1999-09-13 11:13:50 +0000 |
| commit | 2d0641146fb8cfd1cf5cf2e0004b7777775c9821 (patch) | |
| tree | a5b52b0f5937cc93663d11a75229a5b26967526e /src | |
| parent | a4aafc540436ff8da27547f6704e307fc23500f9 (diff) | |
| download | emacs-2d0641146fb8cfd1cf5cf2e0004b7777775c9821.tar.gz emacs-2d0641146fb8cfd1cf5cf2e0004b7777775c9821.zip | |
(reset_sys_modes): Change for Lisp_Object selected_frame.
(kbd_input_ast, read_input_waiting): Ditto.
Diffstat (limited to 'src')
| -rw-r--r-- | src/sysdep.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/sysdep.c b/src/sysdep.c index 92f12df5da0..90a0ebdb484 100644 --- a/src/sysdep.c +++ b/src/sysdep.c | |||
| @@ -1777,6 +1777,8 @@ set_window_size (fd, height, width) | |||
| 1777 | void | 1777 | void |
| 1778 | reset_sys_modes () | 1778 | reset_sys_modes () |
| 1779 | { | 1779 | { |
| 1780 | struct frame *sf; | ||
| 1781 | |||
| 1780 | if (noninteractive) | 1782 | if (noninteractive) |
| 1781 | { | 1783 | { |
| 1782 | fflush (stdout); | 1784 | fflush (stdout); |
| @@ -1796,10 +1798,11 @@ reset_sys_modes () | |||
| 1796 | ) | 1798 | ) |
| 1797 | return; | 1799 | return; |
| 1798 | #endif | 1800 | #endif |
| 1799 | cursor_to (FRAME_HEIGHT (selected_frame) - 1, 0); | 1801 | sf = SELECTED_FRAME (); |
| 1800 | clear_end_of_line (FRAME_WIDTH (selected_frame)); | 1802 | cursor_to (FRAME_HEIGHT (sf) - 1, 0); |
| 1803 | clear_end_of_line (FRAME_WIDTH (sf)); | ||
| 1801 | /* clear_end_of_line may move the cursor */ | 1804 | /* clear_end_of_line may move the cursor */ |
| 1802 | cursor_to (FRAME_HEIGHT (selected_frame) - 1, 0); | 1805 | cursor_to (FRAME_HEIGHT (sf) - 1, 0); |
| 1803 | #if defined (IBMR2AIX) && defined (AIXHFT) | 1806 | #if defined (IBMR2AIX) && defined (AIXHFT) |
| 1804 | { | 1807 | { |
| 1805 | /* HFT devices normally use ^J as a LF/CR. We forced it to | 1808 | /* HFT devices normally use ^J as a LF/CR. We forced it to |
| @@ -2001,7 +2004,7 @@ kbd_input_ast () | |||
| 2001 | struct input_event e; | 2004 | struct input_event e; |
| 2002 | e.kind = ascii_keystroke; | 2005 | e.kind = ascii_keystroke; |
| 2003 | XSETINT (e.code, c); | 2006 | XSETINT (e.code, c); |
| 2004 | XSETFRAME (e.frame_or_window, selected_frame); | 2007 | e.frame_or_window = selected_frame; |
| 2005 | kbd_buffer_store_event (&e); | 2008 | kbd_buffer_store_event (&e); |
| 2006 | } | 2009 | } |
| 2007 | if (input_available_clear_time) | 2010 | if (input_available_clear_time) |
| @@ -2677,7 +2680,7 @@ read_input_waiting () | |||
| 2677 | 2680 | ||
| 2678 | /* Scan the chars for C-g and store them in kbd_buffer. */ | 2681 | /* Scan the chars for C-g and store them in kbd_buffer. */ |
| 2679 | e.kind = ascii_keystroke; | 2682 | e.kind = ascii_keystroke; |
| 2680 | XSETFRAME (e.frame_or_window, selected_frame); | 2683 | e.frame_or_window = selected_frame; |
| 2681 | e.modifiers = 0; | 2684 | e.modifiers = 0; |
| 2682 | for (i = 0; i < nread; i++) | 2685 | for (i = 0; i < nread; i++) |
| 2683 | { | 2686 | { |