changeset 35005:2b83125ab28b

(handle_single_display_prop): Return if frame is w32_console. (init_iterator) [WINDOWSNT]: Initialize frame face cache if necessary, even if running interactively.
author Andrew Innes <andrewi@gnu.org>
date Tue, 02 Jan 2001 22:54:34 +0000
parents 2298014242a6
children 670f8ab148ea
files src/xdisp.c
diffstat 1 files changed, 14 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/xdisp.c	Tue Jan 02 22:51:58 2001 +0000
+++ b/src/xdisp.c	Tue Jan 02 22:54:34 2001 +0000
@@ -1450,7 +1450,11 @@
      attribute changes of named faces, recompute them.  When running
      in batch mode, the face cache of Vterminal_frame is null.  If
      we happen to get called, make a dummy face cache.  */
-  if (noninteractive && FRAME_FACE_CACHE (it->f) == NULL)
+  if (
+#ifndef WINDOWSNT
+      noninteractive &&
+#endif
+      FRAME_FACE_CACHE (it->f) == NULL)
     init_frame_faces (it->f);
   if (FRAME_FACE_CACHE (it->f)->used == 0)
     recompute_basic_faces (it->f);
@@ -2682,7 +2686,9 @@
       && EQ (XCAR (prop), Qheight)
       && CONSP (XCDR (prop)))
     {
-      if (FRAME_TERMCAP_P (it->f) || FRAME_MSDOS_P (it->f))
+      if (FRAME_TERMCAP_P (it->f)
+	  || FRAME_MSDOS_P (it->f)
+	  || FRAME_W32_CONSOLE_P (it->f))
 	return 0;
       
       /* `(height HEIGHT)'.  */
@@ -2747,8 +2753,9 @@
 	   && CONSP (XCDR (prop)))
     {
       /* `(space_width WIDTH)'.  */
-      if (FRAME_TERMCAP_P (it->f) || FRAME_MSDOS_P (it->f))
-	return 0;
+      if (FRAME_TERMCAP_P (it->f)
+	  || FRAME_MSDOS_P (it->f)
+	  || FRAME_W32_CONSOLE_P (it->f))
       
       value = XCAR (XCDR (prop));
       if (NUMBERP (value) && XFLOATINT (value) > 0)
@@ -2759,8 +2766,9 @@
 	   && CONSP (XCDR (prop)))
     {
       /* `(raise FACTOR)'.  */
-      if (FRAME_TERMCAP_P (it->f) || FRAME_MSDOS_P (it->f))
-	return 0;
+      if (FRAME_TERMCAP_P (it->f)
+	  || FRAME_MSDOS_P (it->f)
+	  || FRAME_W32_CONSOLE_P (it->f))
       
 #ifdef HAVE_WINDOW_SYSTEM
       value = XCAR (XCDR (prop));