]> git.eshelyaron.com Git - emacs.git/commitdiff
(show_help_echo): Set help_echo_showing_p.
authorGerd Moellmann <gerd@gnu.org>
Mon, 25 Sep 2000 14:27:02 +0000 (14:27 +0000)
committerGerd Moellmann <gerd@gnu.org>
Mon, 25 Sep 2000 14:27:02 +0000 (14:27 +0000)
(read_char): If help-echo is showing, preserve the echo area
when redisplaying.

src/keyboard.c

index d204e904a179b17a54fac60bb542a3966bbda013..8199667bf07b8e103a78c38f2b4e91fbdce698ea 100644 (file)
@@ -1986,8 +1986,10 @@ show_help_echo (help, window, object, pos, ok_to_overwrite_keystroke_echo)
              unbind_to (count, Qnil);
            }
          else
-           message (0);
+             message (0);
        }
+      
+      help_echo_showing_p = STRINGP (help);
     }
 }
 
@@ -2171,7 +2173,10 @@ read_char (commandflag, nmaps, maps, prev_event, used_mouse_menu)
       /* Redisplay if no pending input.  */
       while (!input_pending)
        {
-         redisplay ();
+         if (help_echo_showing_p && !EQ (selected_window, minibuf_window))
+           redisplay_preserve_echo_area ();
+         else
+           redisplay ();
 
          if (!input_pending)
            /* Normal case: no input arrived during redisplay.  */