diff src/faces.c @ 4210:65c3847d432c

[xemacs-hg @ 2007-10-03 21:31:10 by didierv] Check noninteractive mode in reset_face_cachels assertions
author didierv
date Wed, 03 Oct 2007 21:31:12 +0000
parents e820df1cb11a
children 16906fefc8df
line wrap: on
line diff
--- a/src/faces.c	Wed Oct 03 16:53:39 2007 +0000
+++ b/src/faces.c	Wed Oct 03 21:31:12 2007 +0000
@@ -1599,9 +1599,9 @@
 	 correct values if you ever add new built-in faces here.
 	 -- dvl */
       fi = get_builtin_face_cache_index (w, Vdefault_face);
-      assert (fi == DEFAULT_INDEX);
+      assert (noninteractive || fi == DEFAULT_INDEX);
       fi = get_builtin_face_cache_index (w, Vmodeline_face);
-      assert (fi == MODELINE_INDEX);
+      assert (noninteractive || fi == MODELINE_INDEX);
       XFRAME (w->frame)->window_face_cache_reset = 1;
     }
 }