2000-12-18 Gerd Moellmann <gerd@gnu.org>
+ * xdisp.c (init_iterator): If noninteractive, and the frame's
+ face cache is null, make one.
+
* xfns.c (show_busy_cursor): Check for live frames more
thoroughly.
}
/* 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);