+2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
+
+ * frame.c (x_set_frame_parameters): Check number is positive before
+ using XFASTINT.
+
+ * window.c (freeze_window_start): Don't presume selected_window holds
+ a window object.
+
2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
* term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
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;