comparison src/window.c @ 81905:bb87fadde067

(Fdisplay_buffer): Use NILP. (Fset_window_scroll_bars): Likewise.
author Andreas Schwab <schwab@suse.de>
date Mon, 16 Jul 2007 13:21:53 +0000
parents f18e4c78670d
children 504dd581ce3c
comparison
equal deleted inserted replaced
81904:a10ef6f97de7 81905:bb87fadde067
3755 /* If the LRU window is selected, and big enough, 3755 /* If the LRU window is selected, and big enough,
3756 and can be split, split it. */ 3756 and can be split, split it. */
3757 if (!NILP (window) 3757 if (!NILP (window)
3758 && ! FRAME_NO_SPLIT_P (XFRAME (XWINDOW (window)->frame)) 3758 && ! FRAME_NO_SPLIT_P (XFRAME (XWINDOW (window)->frame))
3759 && (EQ (window, selected_window) 3759 && (EQ (window, selected_window)
3760 || EQ (XWINDOW (window)->parent, Qnil)) 3760 || NILP (XWINDOW (window)->parent))
3761 && window_height (window) >= split_height_threshold 3761 && window_height (window) >= split_height_threshold
3762 && (window_height (window) 3762 && (window_height (window)
3763 >= (2 * window_min_size_2 (XWINDOW (window), 0)))) 3763 >= (2 * window_min_size_2 (XWINDOW (window), 0))))
3764 window = Fsplit_window (window, Qnil, Qnil); 3764 window = Fsplit_window (window, Qnil, Qnil);
3765 else 3765 else
6907 6907
6908 if (XINT (width) == 0) 6908 if (XINT (width) == 0)
6909 vertical_type = Qnil; 6909 vertical_type = Qnil;
6910 } 6910 }
6911 6911
6912 if (!(EQ (vertical_type, Qnil) 6912 if (!(NILP (vertical_type)
6913 || EQ (vertical_type, Qleft) 6913 || EQ (vertical_type, Qleft)
6914 || EQ (vertical_type, Qright) 6914 || EQ (vertical_type, Qright)
6915 || EQ (vertical_type, Qt))) 6915 || EQ (vertical_type, Qt)))
6916 error ("Invalid type of vertical scroll bar"); 6916 error ("Invalid type of vertical scroll bar");
6917 6917