>>>> "Andy" == Andy Piper <andyp(a)bea.com>
writes:
Andy> I think we should do what Ben says and try commenting out
Andy> the call to update_window_scrollbars. The alternative would
Something like this?
Index: window.c
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/src/window.c,v
retrieving revision 1.52.2.1.2.3
diff -u -u -r1.52.2.1.2.3 window.c
--- window.c 2001/12/01 05:54:21 1.52.2.1.2.3
+++ window.c 2002/01/20 15:52:49
@@ -386,9 +386,6 @@
mir->current_display_lines = Dynarr_new (display_line);
mir->desired_display_lines = Dynarr_new (display_line);
-#ifdef HAVE_SCROLLBARS
- update_window_scrollbars (XWINDOW (win), mir, 0, 0);
-#endif
mir->buffer = NULL;
}
Andy> be to do this before we go into GC. We could do this by
Andy> having a run_pre_gc_actions which does the same as
Andy> run_post_gc_actions and then does the update there. I don't
I wonder why the implementer of run_post_gc_actions has not
implemented run_pre_gc_actions as well. Could you think of a reason
why this would not be a good idea?
What would we set up for register_pre_gc_action?
Just a function doing
#ifdef HAVE_SCROLLBARS
update_window_scrollbars (XWINDOW (win), mir, 0, 0);
#endif
perhaps?
Adrian
Andy> see anyway of surviving update_window_scrollbars actually
Andy> inside GC.
Andy> andy
<lines deleted by Adrian>
--
Adrian Aichner
mailto:adrian@xemacs.org
http://www.xemacs.org/