aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGerd Moellmann2000-12-06 13:44:34 +0000
committerGerd Moellmann2000-12-06 13:44:34 +0000
commit6529ed87069aceaa8f838b0c174714b43db7d385 (patch)
treea1baca12c5b663bb369beb9c07d59daa86d89ce9 /src
parent4e8b894ce4009edcd5e4f5fcedbaa17a73fb7a51 (diff)
downloademacs-6529ed87069aceaa8f838b0c174714b43db7d385.tar.gz
emacs-6529ed87069aceaa8f838b0c174714b43db7d385.zip
(Veven_window_heights): New variable.
(syms_of_window): DEFVAR_LISP it. (Fdisplay_buffer): Check Veven_window_heights before evening the window heights.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/window.c19
2 files changed, 22 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 1278056121e..875ccc28f8d 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -10,6 +10,11 @@
10 descent are greater than the font's ascent or descent, this means 10 descent are greater than the font's ascent or descent, this means
11 glyphs overlap, which should be handled now by redisplay. 11 glyphs overlap, which should be handled now by redisplay.
12 12
13 * window.c (Veven_window_heights): New variable.
14 (syms_of_window): DEFVAR_LISP it.
15 (Fdisplay_buffer): Check Veven_window_heights before evening the
16 window heights.
17
132000-12-06 Miles Bader <miles@gnu.org> 182000-12-06 Miles Bader <miles@gnu.org>
14 19
15 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is `t', 20 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is `t',
diff --git a/src/window.c b/src/window.c
index 2460e00bf5c..903688e2caa 100644
--- a/src/window.c
+++ b/src/window.c
@@ -1,6 +1,7 @@
1/* Window creation, deletion and examination for GNU Emacs. 1/* Window creation, deletion and examination for GNU Emacs.
2 Does not include redisplay. 2 Does not include redisplay.
3 Copyright (C) 1985,86,87,93,94,95,96,97,1998,2000 Free Software Foundation, Inc. 3 Copyright (C) 1985,86,87,93,94,95,96,97,1998,2000
4 Free Software Foundation, Inc.
4 5
5This file is part of GNU Emacs. 6This file is part of GNU Emacs.
6 7
@@ -142,6 +143,10 @@ Lisp_Object Vpop_up_frame_function;
142 143
143Lisp_Object Vdisplay_buffer_function; 144Lisp_Object Vdisplay_buffer_function;
144 145
146/* Non-nil means that Fdisplay_buffer should even the heights of windows. */
147
148Lisp_Object Veven_window_heights;
149
145/* List of buffer *names* for buffers that should have their own frames. */ 150/* List of buffer *names* for buffers that should have their own frames. */
146 151
147Lisp_Object Vspecial_display_buffer_names; 152Lisp_Object Vspecial_display_buffer_names;
@@ -2843,7 +2848,11 @@ If FRAME is a frame, search only that frame.\n\
2843If FRAME is nil, search only the selected frame\n\ 2848If FRAME is nil, search only the selected frame\n\
2844 (actually the last nonminibuffer frame),\n\ 2849 (actually the last nonminibuffer frame),\n\
2845 unless `pop-up-frames' or `display-buffer-reuse-frames' is non-nil,\n\ 2850 unless `pop-up-frames' or `display-buffer-reuse-frames' is non-nil,\n\
2846 which means search visible and iconified frames.") 2851 which means search visible and iconified frames.\n\
2852\n\
2853If `even-window-heights' is non-nil, window heights will be evened out\n\
2854if displaying the buffer causes two vertically\ adjacent windows to be\n\
2855displayed.")
2847 (buffer, not_this_window, frame) 2856 (buffer, not_this_window, frame)
2848 register Lisp_Object buffer, not_this_window, frame; 2857 register Lisp_Object buffer, not_this_window, frame;
2849{ 2858{
@@ -2992,6 +3001,7 @@ If FRAME is nil, search only the selected frame\n\
2992 if (!NILP (XWINDOW (window)->next)) 3001 if (!NILP (XWINDOW (window)->next))
2993 other = lower = XWINDOW (window)->next, upper = window; 3002 other = lower = XWINDOW (window)->next, upper = window;
2994 if (!NILP (other) 3003 if (!NILP (other)
3004 && !NILP (Veven_window_heights)
2995 /* Check that OTHER and WINDOW are vertically arrayed. */ 3005 /* Check that OTHER and WINDOW are vertically arrayed. */
2996 && !EQ (XWINDOW (other)->top, XWINDOW (window)->top) 3006 && !EQ (XWINDOW (other)->top, XWINDOW (window)->top)
2997 && (XFASTINT (XWINDOW (other)->height) 3007 && (XFASTINT (XWINDOW (other)->height)
@@ -5491,6 +5501,11 @@ Commands such as `switch-to-buffer-other-window' and `find-file-other-window'\n\
5491work using this function."); 5501work using this function.");
5492 Vdisplay_buffer_function = Qnil; 5502 Vdisplay_buffer_function = Qnil;
5493 5503
5504 DEFVAR_LISP ("even-window-heights", &Veven_window_heights,
5505 "*If non-nil, `display-buffer' should even the window heights.\n\
5506If nil, `display-buffer' will leave the window configuation alone.");
5507 Veven_window_heights = Qt;
5508
5494 DEFVAR_LISP ("minibuffer-scroll-window", &Vminibuf_scroll_window, 5509 DEFVAR_LISP ("minibuffer-scroll-window", &Vminibuf_scroll_window,
5495 "Non-nil means it is the window that C-M-v in minibuffer should scroll."); 5510 "Non-nil means it is the window that C-M-v in minibuffer should scroll.");
5496 Vminibuf_scroll_window = Qnil; 5511 Vminibuf_scroll_window = Qnil;