changeset 13290:4caecb87e4ec

(ok_to_echo_at_next_pause): Make it a char *. (read_char): Copy and compare with echo_area_glyphs.
author Richard M. Stallman <rms@gnu.org>
date Tue, 24 Oct 1995 22:20:58 +0000
parents c4f93bb943b7
children 49de0d4ca42e
files src/keyboard.c
diffstat 1 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/src/keyboard.c	Tue Oct 24 22:14:39 1995 +0000
+++ b/src/keyboard.c	Tue Oct 24 22:20:58 1995 +0000
@@ -153,7 +153,7 @@
 
 /* True means we can start echoing at the next input pause
    even though there is something in the echo area.  */
-static int ok_to_echo_at_next_pause;
+static char *ok_to_echo_at_next_pause;
 
 /* Nonzero means disregard local maps for the menu bar.  */
 static int inhibit_local_menu_bar_menus;
@@ -873,8 +873,8 @@
   /* Avoid unquittable loop if data contains a circular list.  */
   old_level = Vprint_level;
   old_length = Vprint_length;
-  XSETFASTINT(Vprint_level, 10);
-  XSETFASTINT(Vprint_length, 10);
+  XSETFASTINT (Vprint_level, 10);
+  XSETFASTINT (Vprint_length, 10);
   cmd_error_internal (data, NULL);
   Vprint_level = old_level;
   Vprint_length = old_length;
@@ -1764,7 +1764,7 @@
   /* Message turns off echoing unless more keystrokes turn it on again. */
   if (echo_area_glyphs && *echo_area_glyphs
       && echo_area_glyphs != current_kboard->echobuf
-      && ! ok_to_echo_at_next_pause)
+      && ok_to_echo_at_next_pause != echo_area_glyphs)
     cancel_echoing ();
   else
     /* If already echoing, continue.  */
@@ -1840,7 +1840,7 @@
       && ! noninteractive
       && echo_keystrokes > 0
       && (echo_area_glyphs == 0 || *echo_area_glyphs == 0
-	  || ok_to_echo_at_next_pause))
+	  || ok_to_echo_at_next_pause == echo_area_glyphs))
     {
       Lisp_Object tem0;
 
@@ -2139,7 +2139,7 @@
 	echo_char (also_record);
       /* Once we reread a character, echoing can happen
 	 the next time we pause to read a new one.  */
-      ok_to_echo_at_next_pause = 1;
+      ok_to_echo_at_next_pause = echo_area_glyphs;
     }
 
   /* Record this character as part of the current key.  */
@@ -4276,7 +4276,7 @@
       if (n_to_read > sizeof cbuf)
 	n_to_read = sizeof cbuf;
 #else /* no FIONREAD */
-#if defined(USG) || defined(DGUX)
+#if defined (USG) || defined (DGUX)
       /* Read some input if available, but don't wait.  */
       n_to_read = sizeof cbuf;
       fcntl (input_fd, F_SETFL, O_NDELAY);
@@ -4292,7 +4292,7 @@
       do
 	{
 #ifdef MSDOS
-	  cbuf[0] = dos_keyread();
+	  cbuf[0] = dos_keyread ();
 	  nread = 1;
 #else
 	  nread = read (input_fd, cbuf, n_to_read);