summaryrefslogtreecommitdiff
path: root/doc/lispref/windows.texi
diff options
context:
space:
mode:
authorMartin Rudalics <rudalics@gmx.at>2021-10-25 10:42:17 +0200
committerMartin Rudalics <rudalics@gmx.at>2021-10-25 10:42:17 +0200
commitbeaddd87f79b69fe2723206c9cbb2efacf34620d (patch)
tree24e855b66d266e8c18d09fffa3e7dad1a9b1ea05 /doc/lispref/windows.texi
parent709e1e59f0f4db24580566f5ca661e730afbf9a2 (diff)
downloademacs-beaddd87f79b69fe2723206c9cbb2efacf34620d.tar.gz
Allow 'display-buffer' to set up body size of chosen window (Bug#17065)
* doc/lispref/windows.texi (Buffer Display Action Alists): Describe new possible values for 'window-height', 'window-width' and 'window-size' action alist entries. * lisp/window.el (window--display-buffer): Handle new values for 'window-height', 'window-width' and 'window-size' ALIST entries. (display-buffer): Update doc-string for new values of some action alist entries. * etc/NEWS: Mention new values of some action alist entries.
Diffstat (limited to 'doc/lispref/windows.texi')
-rw-r--r--doc/lispref/windows.texi20
1 files changed, 18 insertions, 2 deletions
diff --git a/doc/lispref/windows.texi b/doc/lispref/windows.texi
index 262516054ab..9ce185a7a6b 100644
--- a/doc/lispref/windows.texi
+++ b/doc/lispref/windows.texi
@@ -3036,6 +3036,11 @@ desired total height with respect to the total height of its frame's
root window.
@item
+A cons cell whose @sc{car} is @code{body-lines} and whose @sc{cdr} is an
+integer that specifies the height of the chosen window's body in frame
+lines.
+
+@item
If the value specifies a function, that function is called with one
argument---the chosen window. The function is supposed to adjust the
height of the window; its return value is ignored. Suitable functions
@@ -3069,6 +3074,11 @@ desired total width with respect to the total width of the frame's
root window.
@item
+A cons cell whose @sc{car} is @code{body-columns} and whose @sc{cdr} is
+an integer that specifies the width of the chosen window's body in frame
+columns.
+
+@item
If the value specifies a function, that function is called with one
argument---the chosen window. The function is supposed to adjust the
width of the window; its return value is ignored.
@@ -3077,8 +3087,8 @@ width of the window; its return value is ignored.
@vindex window-size@r{, a buffer display action alist entry}
@item window-size
This entry is a combination of the two preceding ones and can be used to
-adjust the chosen window's height and width. Since windows can be
-resized in one direction only without affecting other windows,
+adjust the chosen window's height @emph{and} width. Since windows can
+be resized in one direction only without affecting other windows,
@code{window-size} is effective only to set up the size of a window
appearing alone on a frame. The value can be one of the following:
@@ -3092,6 +3102,12 @@ of the chosen window in lines and columns. It's effect is to adjust the
size of the frame accordingly.
@item
+A cons cell whose @sc{car} equals @code{body-chars} and whose @sc{cdr}
+is a cons cell of two integers---the desired body width and height of
+the chosen window in frame columns and lines. It's effect is to adjust
+the size of the frame accordingly.
+
+@item
If the value specifies a function, that function is called with one
argument---the chosen window. The function is supposed to adjust the
size of the window's frame; its return value is ignored.