changeset 25657:2e9b26a83bfa

(command_loop_1): Resize mini-window to the exact size of a message displayed, if any.
author Gerd Moellmann <gerd@gnu.org>
date Sun, 12 Sep 1999 20:21:53 +0000
parents b278da3accef
children a9f38bb7f815
files src/keyboard.c
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/keyboard.c	Sun Sep 12 20:21:51 1999 +0000
+++ b/src/keyboard.c	Sun Sep 12 20:21:53 1999 +0000
@@ -1213,6 +1213,11 @@
   if (!NILP (Vpost_command_hook) && !NILP (Vrun_hooks))
     safe_run_hooks (Qpost_command_hook);
 
+  /* If displaying a message, resize the echo area window to fit
+     that message's size exactly.  */
+  if (!NILP (echo_area_buffer[0]))
+    resize_echo_area_axactly ();
+
   if (!NILP (Vdeferred_action_list))
     call0 (Vdeferred_action_function);
 
@@ -1517,6 +1522,11 @@
       if (!NILP (Vpost_command_hook) && !NILP (Vrun_hooks))
 	safe_run_hooks (Qpost_command_hook);
 
+      /* If displaying a message, resize the echo area window to fit
+	 that message's size exactly.  */
+      if (!NILP (echo_area_buffer[0]))
+	resize_echo_area_axactly ();
+
       if (!NILP (Vdeferred_action_list))
 	safe_run_hooks (Qdeferred_action_function);