(read_char): Don't clear a message for a switch-frame
authorGerd Moellmann <gerd@gnu.org>
Tue, 25 Sep 2001 10:18:44 +0000 (10:18 +0000)
committerGerd Moellmann <gerd@gnu.org>
Tue, 25 Sep 2001 10:18:44 +0000 (10:18 +0000)
event.   From Stefan Monnier  <monnier@cs.yale.edu>.

src/keyboard.c

index f3d008e..76a6c15 100644 (file)
@@ -2734,7 +2734,9 @@ read_char (commandflag, nmaps, maps, prev_event, used_mouse_menu)
 
   /* Now wipe the echo area, except for help events which do their
      own stuff with the echo area.  */
-  if (!CONSP (c) || !(EQ (Qhelp_echo, XCAR (c))))
+  if (!CONSP (c)
+      || (!(EQ (Qhelp_echo, XCAR (c)))
+         && !(EQ (Qswitch_frame, XCAR (c)))))
     {
       if (!NILP (echo_area_buffer[0]))
        safe_run_hooks (Qecho_area_clear_hook);