changeset 26103:90a7cc56474f

(echo_area_display) [HAVE_X_WINDOWS]: Do nothing if selected_frame is equal to Vterminal_frame.
author Gerd Moellmann <gerd@gnu.org>
date Tue, 19 Oct 1999 16:44:37 +0000
parents 67f9292f4d3e
children 759404c98c08
files src/xdisp.c
diffstat 1 files changed, 3 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/src/xdisp.c	Tue Oct 19 13:48:30 1999 +0000
+++ b/src/xdisp.c	Tue Oct 19 16:44:37 1999 +0000
@@ -5857,18 +5857,13 @@
   if (!FRAME_VISIBLE_P (f) || !f->glyphs_initialized_p)
     return 0;
 
-#if 0 /* inhibit_window_system is not a valid way of testing
-	 whether a window system is in use.
-	 This code prevents all echo area display
-	 when you run plain `emacs' on a tty.  */
+#ifdef HAVE_X_WINDOWS
   /* When Emacs starts, selected_frame may be a visible terminal
      frame, even if we run under a window system.  If we let this
      through, a message would be displayed on the terminal.  */
-#ifdef HAVE_WINDOW_SYSTEM
-  if (!inhibit_window_system && !FRAME_WINDOW_P (sf))
+  if (EQ (selected_frame, Vterminal_frame))
     return 0;
-#endif /* HAVE_WINDOW_SYSTEM */
-#endif
+#endif /* HAVE_X_WINDOWS */
 
   /* Redraw garbaged frames.  */
   if (frame_garbaged)