# HG changeset patch # User Gerd Moellmann # Date 977140933 0 # Node ID acdda5d1ff2998a4de9e78bb58fd3cdd5c335b2d # Parent 0d188d8c456751e08f21ae923d4515639c2391ea (init_iterator): If noninteractive, and the frame's face cache is null, make one. diff -r 0d188d8c4567 -r acdda5d1ff29 src/xdisp.c --- 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);