summaryrefslogtreecommitdiff
path: root/src/keyboard.c
diff options
context:
space:
mode:
authorJérémy Compostella <jeremy.compostella@gmail.com>2012-05-07 12:09:51 -0400
committerStefan Monnier <monnier@iro.umontreal.ca>2012-05-07 12:09:51 -0400
commitb120cc17aede4b15b4d6737f03e936a621e72962 (patch)
treedbea6eb7617ab67ac84d00272e76cc408a8e8b52 /src/keyboard.c
parent9a4b36f891acd6e620c1d7e6f3fcedc368003ee7 (diff)
downloademacs-b120cc17aede4b15b4d6737f03e936a621e72962.tar.gz
Fix up display of the *Minibuf-0* buffer in the mini window.
* src/keyboard.c (read_char): Don't clear the echo area if there's no message to clear. * src/xdisp.c (redisplay_internal): Redisplay the mini window (with the contents of *Minibuf-0*) if there' no message displayed in its stead.
Diffstat (limited to 'src/keyboard.c')
-rw-r--r--src/keyboard.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index 249e5ee9544..fcd5c0e6837 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -2996,8 +2996,10 @@ read_char (int commandflag, ptrdiff_t nmaps, Lisp_Object *maps,
&& !(EQ (Qselect_window, XCAR (c)))))
{
if (!NILP (echo_area_buffer[0]))
- safe_run_hooks (Qecho_area_clear_hook);
- clear_message (1, 0);
+ {
+ safe_run_hooks (Qecho_area_clear_hook);
+ clear_message (1, 0);
+ }
}
reread_for_input_method: