Mercurial > emacs
changeset 25403:5a3db5249db9
(resize_mini_window): Don't resize if
Vmax_mini_window_height is nil. Otherwise, use a default if
Vmax_mini_window_height is not ot a number.
(syms_of_xdisp): Extend documentation of Vmax_mini_window_height.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Wed, 25 Aug 1999 21:12:40 +0000 |
parents | 857e8b5b1194 |
children | ed47f0127bc3 |
files | src/xdisp.c |
diffstat | 1 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xdisp.c Wed Aug 25 21:12:38 1999 +0000 +++ b/src/xdisp.c Wed Aug 25 21:12:40 1999 +0000 @@ -5428,6 +5428,10 @@ int window_height_changed_p = 0; xassert (MINI_WINDOW_P (w)); + + /* Nil means don't try to resize. */ + if (NILP (Vmax_mini_window_height)) + return 0; if (!FRAME_MINIBUF_ONLY_P (f)) { @@ -5445,6 +5449,8 @@ max_height = XFLOATINT (Vmax_mini_window_height) * total_height; else if (INTEGERP (Vmax_mini_window_height)) max_height = XINT (Vmax_mini_window_height); + else + max_height = total_height / 4; /* Correct that max. height if it's bogus. */ max_height = max (1, max_height); @@ -12727,7 +12733,8 @@ DEFVAR_LISP ("max-mini-window-height", &Vmax_mini_window_height, "*Maximum height for resizing mini-windows.\n\ If a float, it specifies a fraction of the mini-window frame's height.\n\ -If an integer, it specifies a number of lines."); +If an integer, it specifies a number of lines.\n\ +If nil, don't resize."); Vmax_mini_window_height = make_float (0.25); }