From 62be99799b992f49e0fb9b952843dbc0e076d8e7 Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Mon, 18 Dec 2000 12:02:37 +0000 Subject: [PATCH] (init_iterator): If noninteractive, and the frame's face cache is null, make one. --- src/ChangeLog | 3 +++ src/xdisp.c | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 882f3046815..8855068d4a2 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,8 @@ 2000-12-18 Gerd Moellmann + * 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. diff --git a/src/xdisp.c b/src/xdisp.c index 1a4493583c7..7fc606fed81 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -1446,7 +1446,11 @@ init_iterator (it, w, charpos, bytepos, row, base_face_id) } /* 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); -- 2.39.2