changeset 34664:acdda5d1ff29

(init_iterator): If noninteractive, and the frame's face cache is null, make one.
author Gerd Moellmann <gerd@gnu.org>
date Mon, 18 Dec 2000 12:02:13 +0000
parents 0d188d8c4567
children 294105bc9742
files src/xdisp.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/xdisp.c	Mon Dec 18 11:36:34 2000 +0000
+++ b/src/xdisp.c	Mon Dec 18 12:02:13 2000 +0000
@@ -1446,7 +1446,11 @@
     }
 
   /* If realized faces have been removed, e.g. because of face
-     attribute changes of named faces, recompute them.  */
+     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)
+    init_frame_faces (it->f);
   if (FRAME_FACE_CACHE (it->f)->used == 0)
     recompute_basic_faces (it->f);