summaryrefslogtreecommitdiff
path: root/lisp/window.el
diff options
context:
space:
mode:
authorJuri Linkov <juri@linkov.net>2020-04-03 00:50:19 +0300
committerJuri Linkov <juri@linkov.net>2020-04-03 00:50:19 +0300
commitbb729496f9b699896fed8d65bf499a193a7c4886 (patch)
tree5528fa9ee9942682e29c75a863c6be95536de66e /lisp/window.el
parent7e243a87904a036473c6ac87229d4ed652d1e49b (diff)
downloademacs-bb729496f9b699896fed8d65bf499a193a7c4886.tar.gz
* lisp/window.el (display-buffer): Extend doc with body-function (bug#39822)
Diffstat (limited to 'lisp/window.el')
-rw-r--r--lisp/window.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/lisp/window.el b/lisp/window.el
index 0121a78191a..8512a0e2f97 100644
--- a/lisp/window.el
+++ b/lisp/window.el
@@ -7405,6 +7405,12 @@ Action alist entries are:
parameters to give the chosen window.
`allow-no-window' -- A non-nil value means that `display-buffer'
may not display the buffer and return nil immediately.
+ `body-function' -- A function called with one argument - the
+ displayed window. It is called after the buffer is
+ displayed, and before `window-height', `window-width'
+ and `preserve-size' are applied. The function is supposed
+ to fill the window body with some contents that might depend
+ on dimensions of the displayed window.
The entries `window-height', `window-width' and `preserve-size'
are applied only when the window used for displaying the buffer