[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#7348: 23.2.50; Emacs crashes on fast window resize with scrollbars o
From: |
martin rudalics |
Subject: |
bug#7348: 23.2.50; Emacs crashes on fast window resize with scrollbars on under OSX |
Date: |
Mon, 08 Nov 2010 11:07:04 +0100 |
User-agent: |
Thunderbird 2.0.0.21 (Windows/20090302) |
> The call to do_pending_window_change at line 11397 in xdisp.c
> (emacs-23 branch) seems to change selected_window because of the
> following call chain, but the variable `w' in redisplay_internal still
> points to the old selected window.
>
> redisplay_internal
> -> do_pending_window_change
> -> change_frame_size
> -> change_frame_size_1
> -> set_window_height
> -> size_window
> -> delete_window (/* Delete WINDOW if it's too small. */)
That's bad. So basing redisplay_internal entirely on
struct window *w = XWINDOW (selected_window);
is inherently broken. But simply reassigning
w = XWINDOW (selected_window);
after every do_pending_window_change call is hairy since it changes the
selected window under our feet, so any things done for the window that
was selected before the call would probably have to be redone for the
now selected window. OTOH going back to retry after every call that
might have changed the selected window could get us into an infinite
loop. (BTW, do we really need up all three do_pending_window_change
calls in redisplay_internal?)
martin
- bug#7348: 23.2.50; Emacs crashes on fast window resize with scrollbars on under OSX, Jakub Turski, 2010/11/06
- bug#7348: 23.2.50; Emacs crashes on fast window resize with scrollbars on under OSX, YAMAMOTO Mitsuharu, 2010/11/06
- bug#7348: 23.2.50; Emacs crashes on fast window resize with scrollbars on under OSX, martin rudalics, 2010/11/07
- bug#7348: 23.2.50; Emacs crashes on fast window resize with scrollbars on under OSX, YAMAMOTO Mitsuharu, 2010/11/07
- bug#7348: 23.2.50; Emacs crashes on fast window resize with scrollbars on under OSX,
martin rudalics <=
- bug#7348: 23.2.50; Emacs crashes on fast window resize with scrollbars on under OSX, Eli Zaretskii, 2010/11/08
- bug#7348: 23.2.50; Emacs crashes on fast window resize with scrollbars on under OSX, martin rudalics, 2010/11/09
- bug#7348: 23.2.50; Emacs crashes on fast window resize with scrollbars on under OSX, Eli Zaretskii, 2010/11/09
- bug#7348: 23.2.50; Emacs crashes on fast window resize with scrollbars on under OSX, martin rudalics, 2010/11/09
- bug#7348: 23.2.50; Emacs crashes on fast window resize with scrollbars on under OSX, Eli Zaretskii, 2010/11/09
- bug#7348: 23.2.50; Emacs crashes on fast window resize with scrollbars on under OSX, martin rudalics, 2010/11/10
bug#7348: 23.2.50; Emacs crashes on fast window resize with scrollbars on under OSX, Jan Djärv, 2010/11/07