Mercurial > hg > xemacs-beta
diff src/gutter.c @ 440:8de8e3f6228a r21-2-28
Import from CVS: tag r21-2-28
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:33:38 +0200 |
parents | 84b14dcb0985 |
children | abe6d1db359e |
line wrap: on
line diff
--- a/src/gutter.c Mon Aug 13 11:32:27 2007 +0200 +++ b/src/gutter.c Mon Aug 13 11:33:38 2007 +0200 @@ -222,13 +222,18 @@ struct device *d = XDEVICE (f->device); struct window* w = XWINDOW (window); int x, y, width, height, ypos; - int line; - int border_width = FRAME_GUTTER_BORDER_WIDTH (f, pos); - face_index findex = get_builtin_face_cache_index (w, Vgui_element_face); + int line, border_width; + face_index findex; display_line_dynarr* ddla, *cdla; struct display_line *dl; int cdla_len; + if (!WINDOW_LIVE_P (w)) + return; + + border_width = FRAME_GUTTER_BORDER_WIDTH (f, pos); + findex = get_builtin_face_cache_index (w, Vgui_element_face); + if (!f->current_display_lines) f->current_display_lines = Dynarr_new (display_line); if (!f->desired_display_lines) @@ -984,6 +989,7 @@ fb = Fcons (Fcons (list1 (Qx), Qautodetect), fb); #endif #ifdef HAVE_MS_WINDOWS + fb = Fcons (Fcons (list1 (Qmsprinter), Qautodetect), fb); fb = Fcons (Fcons (list1 (Qmswindows), Qautodetect), fb); #endif if (!NILP (fb)) @@ -997,6 +1003,7 @@ fb = Fcons (Fcons (list1 (Qx), make_int (DEFAULT_GUTTER_WIDTH)), fb); #endif #ifdef HAVE_MS_WINDOWS + fb = Fcons (Fcons (list1 (Qmsprinter), Qzero), fb); fb = Fcons (Fcons (list1 (Qmswindows), make_int (DEFAULT_GUTTER_WIDTH)), fb); #endif @@ -1093,6 +1100,7 @@ fb = Fcons (Fcons (list1 (Qx), make_int (DEFAULT_GUTTER_BORDER_WIDTH)), fb); #endif #ifdef HAVE_MS_WINDOWS + fb = Fcons (Fcons (list1 (Qmsprinter), Qzero), fb); fb = Fcons (Fcons (list1 (Qmswindows), make_int (DEFAULT_GUTTER_BORDER_WIDTH)), fb); #endif if (!NILP (fb)) @@ -1191,5 +1199,4 @@ set_specifier_fallback (Vgutter_visible_p[BOTTOM_GUTTER], fb); set_specifier_fallback (Vgutter_visible_p[LEFT_GUTTER], fb); set_specifier_fallback (Vgutter_visible_p[RIGHT_GUTTER], fb); - }