diff src/window.c @ 5587:3fde0e346ad7

Prevent assert at frame.c, l. 6311 by initializing glyph cachels. * frame.c (Fmake_frame): Ensure that reset_glyph_cachels gets called. (setup_minibuffer_frame): Improve header comment. * redisplay.c (redisplay_window): Update comment. Remove code checking for uninitialized face_cachels and glyph_cachels. Can't happen in theory, and guarded by asserts in practice. * window.c (allocate_window): Update comment on reset_*_cachels.
author Stephen J. Turnbull <stephen@xemacs.org>
date Sat, 29 Oct 2011 00:35:33 +0900
parents 56144c8593a8
children a1808d52a34a
line wrap: on
line diff
--- a/src/window.c	Fri Oct 28 23:52:26 2011 +0900
+++ b/src/window.c	Sat Oct 29 00:35:33 2011 +0900
@@ -383,7 +383,10 @@
    All callers of allocate_window should therefore call
    reset_face_cachels on the created window.  We can't do it
    here because the window must have its frame pointer set or
-   reset_face_cachels will fail. */
+   reset_face_cachels will fail.
+   A similar requirement holds for reset_glyph_cachels.  We *could* do
+   that here (there's no reference to the frame pointer in that function),
+   but we may as well have the same discipline. */
 Lisp_Object
 allocate_window (void)
 {