summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGerd Moellmann <gerd@gnu.org>2000-12-18 12:02:13 +0000
committerGerd Moellmann <gerd@gnu.org>2000-12-18 12:02:13 +0000
commit22acc21801ee1633aeeec1dc39d9435a66459161 (patch)
tree3c38ef6cbeb9d97803bff6c180c018be1dd75988 /src
parenteca9e67c8327aab46ed4d56e20bb044263c49878 (diff)
downloademacs-22acc21801ee1633aeeec1dc39d9435a66459161.tar.gz
(init_iterator): If noninteractive, and the frame's
face cache is null, make one.
Diffstat (limited to 'src')
-rw-r--r--src/xdisp.c6
1 files changed, 5 insertions, 1 deletions
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);