From: Gerd Moellmann Date: Sun, 12 Sep 1999 20:21:53 +0000 (+0000) Subject: (command_loop_1): Resize mini-window to the X-Git-Tag: emacs-pretest-21.0.90~6785 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8f12e41de71c95542ac8167919e92cd6da244a06;p=emacs.git (command_loop_1): Resize mini-window to the exact size of a message displayed, if any. --- diff --git a/src/keyboard.c b/src/keyboard.c index 8d5144836a8..c9ae346c47e 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -1213,6 +1213,11 @@ command_loop_1 () 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 @@ command_loop_1 () 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);