+2010-10-30 Andreas Schwab <schwab@linux-m68k.org>
+
+ * window.c (Fresize_window_apply): Use EQ to compare Lisp_Object
+ values.
+ (Fdelete_window_internal): Likewise.
+ (shrink_mini_window): Declare size as EMACS_INT.
+
2010-10-29 Eli Zaretskii <eliz@gnu.org>
* emacs.c (main): Call syms_of_filelock unconditionally.
r = XWINDOW (FRAME_ROOT_WINDOW (f));
if (!resize_window_check (r, horflag)
- || (r->new_total != (horflag ? r->total_cols : r->total_lines)))
+ || ! EQ (r->new_total, horflag ? r->total_cols : r->total_lines))
return Qnil;
BLOCK_INPUT;
}
if (resize_window_check (r, horflag)
- && r->new_total == (horflag ? r->total_cols : r->total_lines))
+ && EQ (r->new_total, horflag ? r->total_cols : r->total_lines))
/* We can delete WINDOW now. */
{
/* Block input. */
/* Now look whether `get-mru-window' gets us something. */
mru_window = call1 (Qget_mru_window, frame);
if (WINDOW_LIVE_P (mru_window)
- && XWINDOW (mru_window)->frame == frame)
+ && EQ (XWINDOW (mru_window)->frame, frame))
new_selected_window = mru_window;
/* If all ended up well, we now promote the mru window. */
{
struct frame *f = XFRAME (w->frame);
struct window *r;
- Lisp_Object root, value, size;
+ Lisp_Object root, value;
+ EMACS_INT size;
xassert (MINI_WINDOW_P (w));