# HG changeset patch # User Stefan Monnier # Date 1189194310 0 # Node ID 584ae8393da85c57c90c978e7f24e5e70b6d912f # Parent 3dfbf778e93784b9b82eb7b037eeacebbfe0bd10 (freeze_window_start): Don't presume selected_window holds a window object. diff -r 3dfbf778e937 -r 584ae8393da8 src/window.c --- a/src/window.c Fri Sep 07 19:45:04 2007 +0000 +++ b/src/window.c Fri Sep 07 19:45:10 2007 +0000 @@ -7111,11 +7111,12 @@ struct window *w; void *freeze_p; { - if (w == XWINDOW (selected_window) - || MINI_WINDOW_P (w) - || (MINI_WINDOW_P (XWINDOW (selected_window)) - && ! NILP (Vminibuf_scroll_window) - && w == XWINDOW (Vminibuf_scroll_window))) + if (MINI_WINDOW_P (w) + || (WINDOWP (selected_window) /* Can be nil in corner cases. */ + && (w == XWINDOW (selected_window) + || (MINI_WINDOW_P (XWINDOW (selected_window)) + && ! NILP (Vminibuf_scroll_window) + && w == XWINDOW (Vminibuf_scroll_window))))) freeze_p = NULL; w->frozen_window_start_p = freeze_p != NULL;