comparison 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
comparison
equal deleted inserted replaced
4209:3651e9c49476 4210:65c3847d432c
1597 The cpp macros DEFAULT_INDEX and MODELINE_INDEX defined in 1597 The cpp macros DEFAULT_INDEX and MODELINE_INDEX defined in
1598 redisplay.h depend on the code below. Please make sure to assert the 1598 redisplay.h depend on the code below. Please make sure to assert the
1599 correct values if you ever add new built-in faces here. 1599 correct values if you ever add new built-in faces here.
1600 -- dvl */ 1600 -- dvl */
1601 fi = get_builtin_face_cache_index (w, Vdefault_face); 1601 fi = get_builtin_face_cache_index (w, Vdefault_face);
1602 assert (fi == DEFAULT_INDEX); 1602 assert (noninteractive || fi == DEFAULT_INDEX);
1603 fi = get_builtin_face_cache_index (w, Vmodeline_face); 1603 fi = get_builtin_face_cache_index (w, Vmodeline_face);
1604 assert (fi == MODELINE_INDEX); 1604 assert (noninteractive || fi == MODELINE_INDEX);
1605 XFRAME (w->frame)->window_face_cache_reset = 1; 1605 XFRAME (w->frame)->window_face_cache_reset = 1;
1606 } 1606 }
1607 } 1607 }
1608 1608
1609 void 1609 void