diff options
| author | Richard M. Stallman | 1995-10-24 22:20:58 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-10-24 22:20:58 +0000 |
| commit | 0c04a67e981249137042912ac11ad178af6d0e21 (patch) | |
| tree | e337716d130a4ad1cf479e0cbb2fa6f0e35b0fb5 /src | |
| parent | 8ccdc29ebc27112908a04969ac59ac41536be3e2 (diff) | |
| download | emacs-0c04a67e981249137042912ac11ad178af6d0e21.tar.gz emacs-0c04a67e981249137042912ac11ad178af6d0e21.zip | |
(ok_to_echo_at_next_pause): Make it a char *.
(read_char): Copy and compare with echo_area_glyphs.
Diffstat (limited to 'src')
| -rw-r--r-- | src/keyboard.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/keyboard.c b/src/keyboard.c index 2263e699f47..93258ff4f7a 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -153,7 +153,7 @@ static int echoing; | |||
| 153 | 153 | ||
| 154 | /* True means we can start echoing at the next input pause | 154 | /* True means we can start echoing at the next input pause |
| 155 | even though there is something in the echo area. */ | 155 | even though there is something in the echo area. */ |
| 156 | static int ok_to_echo_at_next_pause; | 156 | static char *ok_to_echo_at_next_pause; |
| 157 | 157 | ||
| 158 | /* Nonzero means disregard local maps for the menu bar. */ | 158 | /* Nonzero means disregard local maps for the menu bar. */ |
| 159 | static int inhibit_local_menu_bar_menus; | 159 | static int inhibit_local_menu_bar_menus; |
| @@ -873,8 +873,8 @@ cmd_error (data) | |||
| 873 | /* Avoid unquittable loop if data contains a circular list. */ | 873 | /* Avoid unquittable loop if data contains a circular list. */ |
| 874 | old_level = Vprint_level; | 874 | old_level = Vprint_level; |
| 875 | old_length = Vprint_length; | 875 | old_length = Vprint_length; |
| 876 | XSETFASTINT(Vprint_level, 10); | 876 | XSETFASTINT (Vprint_level, 10); |
| 877 | XSETFASTINT(Vprint_length, 10); | 877 | XSETFASTINT (Vprint_length, 10); |
| 878 | cmd_error_internal (data, NULL); | 878 | cmd_error_internal (data, NULL); |
| 879 | Vprint_level = old_level; | 879 | Vprint_level = old_level; |
| 880 | Vprint_length = old_length; | 880 | Vprint_length = old_length; |
| @@ -1764,7 +1764,7 @@ read_char (commandflag, nmaps, maps, prev_event, used_mouse_menu) | |||
| 1764 | /* Message turns off echoing unless more keystrokes turn it on again. */ | 1764 | /* Message turns off echoing unless more keystrokes turn it on again. */ |
| 1765 | if (echo_area_glyphs && *echo_area_glyphs | 1765 | if (echo_area_glyphs && *echo_area_glyphs |
| 1766 | && echo_area_glyphs != current_kboard->echobuf | 1766 | && echo_area_glyphs != current_kboard->echobuf |
| 1767 | && ! ok_to_echo_at_next_pause) | 1767 | && ok_to_echo_at_next_pause != echo_area_glyphs) |
| 1768 | cancel_echoing (); | 1768 | cancel_echoing (); |
| 1769 | else | 1769 | else |
| 1770 | /* If already echoing, continue. */ | 1770 | /* If already echoing, continue. */ |
| @@ -1840,7 +1840,7 @@ read_char (commandflag, nmaps, maps, prev_event, used_mouse_menu) | |||
| 1840 | && ! noninteractive | 1840 | && ! noninteractive |
| 1841 | && echo_keystrokes > 0 | 1841 | && echo_keystrokes > 0 |
| 1842 | && (echo_area_glyphs == 0 || *echo_area_glyphs == 0 | 1842 | && (echo_area_glyphs == 0 || *echo_area_glyphs == 0 |
| 1843 | || ok_to_echo_at_next_pause)) | 1843 | || ok_to_echo_at_next_pause == echo_area_glyphs)) |
| 1844 | { | 1844 | { |
| 1845 | Lisp_Object tem0; | 1845 | Lisp_Object tem0; |
| 1846 | 1846 | ||
| @@ -2139,7 +2139,7 @@ read_char (commandflag, nmaps, maps, prev_event, used_mouse_menu) | |||
| 2139 | echo_char (also_record); | 2139 | echo_char (also_record); |
| 2140 | /* Once we reread a character, echoing can happen | 2140 | /* Once we reread a character, echoing can happen |
| 2141 | the next time we pause to read a new one. */ | 2141 | the next time we pause to read a new one. */ |
| 2142 | ok_to_echo_at_next_pause = 1; | 2142 | ok_to_echo_at_next_pause = echo_area_glyphs; |
| 2143 | } | 2143 | } |
| 2144 | 2144 | ||
| 2145 | /* Record this character as part of the current key. */ | 2145 | /* Record this character as part of the current key. */ |
| @@ -4276,7 +4276,7 @@ read_avail_input (expected) | |||
| 4276 | if (n_to_read > sizeof cbuf) | 4276 | if (n_to_read > sizeof cbuf) |
| 4277 | n_to_read = sizeof cbuf; | 4277 | n_to_read = sizeof cbuf; |
| 4278 | #else /* no FIONREAD */ | 4278 | #else /* no FIONREAD */ |
| 4279 | #if defined(USG) || defined(DGUX) | 4279 | #if defined (USG) || defined (DGUX) |
| 4280 | /* Read some input if available, but don't wait. */ | 4280 | /* Read some input if available, but don't wait. */ |
| 4281 | n_to_read = sizeof cbuf; | 4281 | n_to_read = sizeof cbuf; |
| 4282 | fcntl (input_fd, F_SETFL, O_NDELAY); | 4282 | fcntl (input_fd, F_SETFL, O_NDELAY); |
| @@ -4292,7 +4292,7 @@ read_avail_input (expected) | |||
| 4292 | do | 4292 | do |
| 4293 | { | 4293 | { |
| 4294 | #ifdef MSDOS | 4294 | #ifdef MSDOS |
| 4295 | cbuf[0] = dos_keyread(); | 4295 | cbuf[0] = dos_keyread (); |
| 4296 | nread = 1; | 4296 | nread = 1; |
| 4297 | #else | 4297 | #else |
| 4298 | nread = read (input_fd, cbuf, n_to_read); | 4298 | nread = read (input_fd, cbuf, n_to_read); |