# HG changeset patch # User Andreas Schwab # Date 1127060933 0 # Node ID 25b770eb7993b610a0ffe4d3976d549d209e73e6 # Parent 8792c0d44ace326f60aa00b508476e17f6481f1b (make_window): Don't initialize height_fixed_p. (window_fixed_size_p): Don't use it. diff -r 8792c0d44ace -r 25b770eb7993 src/window.c --- a/src/window.c Sun Sep 18 16:23:12 2005 +0000 +++ b/src/window.c Sun Sep 18 16:28:53 2005 +0000 @@ -273,7 +273,6 @@ XSETWINDOW (val, p); XSETFASTINT (p->last_point, 0); p->frozen_window_start_p = 0; - p->height_fixed_p = 0; p->last_cursor_off_p = p->cursor_off_p = 0; p->left_margin_cols = Qnil; p->right_margin_cols = Qnil; @@ -2438,27 +2437,22 @@ } else if (BUFFERP (w->buffer)) { - if (w->height_fixed_p && !width_p) - fixed_p = 1; - else + struct buffer *old = current_buffer; + Lisp_Object val; + + current_buffer = XBUFFER (w->buffer); + val = find_symbol_value (Qwindow_size_fixed); + current_buffer = old; + + fixed_p = 0; + if (!EQ (val, Qunbound)) { - struct buffer *old = current_buffer; - Lisp_Object val; - - current_buffer = XBUFFER (w->buffer); - val = find_symbol_value (Qwindow_size_fixed); - current_buffer = old; - - fixed_p = 0; - if (!EQ (val, Qunbound)) - { - fixed_p = !NILP (val); - - if (fixed_p - && ((EQ (val, Qheight) && width_p) - || (EQ (val, Qwidth) && !width_p))) - fixed_p = 0; - } + fixed_p = !NILP (val); + + if (fixed_p + && ((EQ (val, Qheight) && width_p) + || (EQ (val, Qwidth) && !width_p))) + fixed_p = 0; } /* Can't tell if this one is resizable without looking at