Commit 6e5d1c12 authored by Chong Yidong's avatar Chong Yidong

Disallow windows on dead frames in decode_any_window.

* window.c (decode_any_window): Signal an error if the window is
on a dead frame.

Fixes: debbugs:11984
parent 25721031
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.
......
......@@ -144,11 +144,15 @@ decode_window (register Lisp_Object window)
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,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment