* window.c (decode_any_window): Signal an error if the window is
on a dead frame.
Fixes: debbugs:11984
+2012-07-21 Chong Yidong <cyd@gnu.org>
+
+ * window.c (decode_any_window): Signal an error if the window is
+ on a dead frame (Bug#11984).
+
2012-07-20 Dmitry Antipov <dmantipov@yandex.ru>
Add indirection counting to speed up Fkill_buffer.
static struct window *
decode_any_window (register Lisp_Object window)
{
+ struct window *w;
+
if (NILP (window))
return XWINDOW (selected_window);
CHECK_WINDOW (window);
- return XWINDOW (window);
+ w = XWINDOW (window);
+ CHECK_LIVE_FRAME (w->frame);
+ return w;
}
DEFUN ("windowp", Fwindowp, Swindowp, 1, 1, 0,