aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndreas Schwab2005-09-18 16:28:53 +0000
committerAndreas Schwab2005-09-18 16:28:53 +0000
commit3df0580e89980427bea3ef1f0a81f0a1ea68f0e9 (patch)
treee1f0da0a89efe32598d27e654c77a03a7a698e9f /src
parent8a658a52b8da177a66f59ac638240cdcacebb21d (diff)
downloademacs-3df0580e89980427bea3ef1f0a81f0a1ea68f0e9.tar.gz
emacs-3df0580e89980427bea3ef1f0a81f0a1ea68f0e9.zip
(make_window): Don't initialize height_fixed_p.
(window_fixed_size_p): Don't use it.
Diffstat (limited to 'src')
-rw-r--r--src/window.c32
1 files changed, 13 insertions, 19 deletions
diff --git a/src/window.c b/src/window.c
index 36d0c89bc43..9e75a592733 100644
--- a/src/window.c
+++ b/src/window.c
@@ -273,7 +273,6 @@ make_window ()
273 XSETWINDOW (val, p); 273 XSETWINDOW (val, p);
274 XSETFASTINT (p->last_point, 0); 274 XSETFASTINT (p->last_point, 0);
275 p->frozen_window_start_p = 0; 275 p->frozen_window_start_p = 0;
276 p->height_fixed_p = 0;
277 p->last_cursor_off_p = p->cursor_off_p = 0; 276 p->last_cursor_off_p = p->cursor_off_p = 0;
278 p->left_margin_cols = Qnil; 277 p->left_margin_cols = Qnil;
279 p->right_margin_cols = Qnil; 278 p->right_margin_cols = Qnil;
@@ -2438,27 +2437,22 @@ window_fixed_size_p (w, width_p, check_siblings_p)
2438 } 2437 }
2439 else if (BUFFERP (w->buffer)) 2438 else if (BUFFERP (w->buffer))
2440 { 2439 {
2441 if (w->height_fixed_p && !width_p) 2440 struct buffer *old = current_buffer;
2442 fixed_p = 1; 2441 Lisp_Object val;
2443 else
2444 {
2445 struct buffer *old = current_buffer;
2446 Lisp_Object val;
2447 2442
2448 current_buffer = XBUFFER (w->buffer); 2443 current_buffer = XBUFFER (w->buffer);
2449 val = find_symbol_value (Qwindow_size_fixed); 2444 val = find_symbol_value (Qwindow_size_fixed);
2450 current_buffer = old; 2445 current_buffer = old;
2451 2446
2452 fixed_p = 0; 2447 fixed_p = 0;
2453 if (!EQ (val, Qunbound)) 2448 if (!EQ (val, Qunbound))
2454 { 2449 {
2455 fixed_p = !NILP (val); 2450 fixed_p = !NILP (val);
2456 2451
2457 if (fixed_p 2452 if (fixed_p
2458 && ((EQ (val, Qheight) && width_p) 2453 && ((EQ (val, Qheight) && width_p)
2459 || (EQ (val, Qwidth) && !width_p))) 2454 || (EQ (val, Qwidth) && !width_p)))
2460 fixed_p = 0; 2455 fixed_p = 0;
2461 }
2462 } 2456 }
2463 2457
2464 /* Can't tell if this one is resizable without looking at 2458 /* Can't tell if this one is resizable without looking at