+2012-08-07 Chong Yidong <cyd@gnu.org>
+
+ * window.c (Fwindow_edges, Fwindow_pixel_edges)
+ (Fwindow_absolute_pixel_edges, Fdelete_other_windows_internal)
+ (Fdelete_window_internal): Signal an error if the window is not on
+ a live frame (Bug#12025).
+
2012-08-07 Dmitry Antipov <dmantipov@yandex.ru>
Drop FGET and revert read access to Lisp_Objects slots of struct frame.
CHECK_WINDOW (window);
w = XWINDOW (window);
- /* The following test throws up every time a tooltip frame is displayed. */
- /* CHECK_LIVE_FRAME (w->frame); */
return w;
}
(Lisp_Object window)
{
register struct window *w = decode_any_window (window);
+ CHECK_LIVE_FRAME (WGET (w, frame));
return Fcons (make_number (WINDOW_LEFT_EDGE_COL (w)),
Fcons (make_number (WINDOW_TOP_EDGE_LINE (w)),
(Lisp_Object window)
{
register struct window *w = decode_any_window (window);
+ CHECK_LIVE_FRAME (WGET (w, frame));
return Fcons (make_number (WINDOW_LEFT_EDGE_X (w)),
Fcons (make_number (WINDOW_TOP_EDGE_Y (w)),
{
register struct window *w = decode_any_window (window);
int add_x, add_y;
+
+ CHECK_LIVE_FRAME (WGET (w, frame));
calc_absolute_offset (w, &add_x, &add_y);
return Fcons (make_number (WINDOW_LEFT_EDGE_X (w) + add_x),
int top IF_LINT (= 0), new_top, resize_failed;
w = decode_any_window (window);
+ CHECK_LIVE_FRAME (WGET (w, frame));
XSETWINDOW (window, w);
f = XFRAME (WGET (w, frame));
/* ROOT must be an ancestor of WINDOW. */
{
r = decode_any_window (root);
+ CHECK_LIVE_FRAME (WGET (r, frame));
pwindow = WGET (XWINDOW (window), parent);
while (!NILP (pwindow))
if (EQ (pwindow, root))
int before_sibling = 0;
w = decode_any_window (window);
+ CHECK_LIVE_FRAME (WGET (w, frame));
+
XSETWINDOW (window, w);
if (NILP (WGET (w, buffer))
&& NILP (WGET (w, hchild)) && NILP (WGET (w, vchild)))