aboutsummaryrefslogtreecommitdiffstats
path: root/doc/lispref
diff options
context:
space:
mode:
authorMartin Rudalics2019-01-10 11:02:17 +0100
committerMartin Rudalics2019-01-10 11:02:17 +0100
commitf646675cd1637948b2df2351a9666792ea8251ea (patch)
tree8952c35ffd299c41799c854b135c96b3b2d87218 /doc/lispref
parenta2e78046f6b52e0a433ae6e1b9e6e5015f415412 (diff)
downloademacs-f646675cd1637948b2df2351a9666792ea8251ea.tar.gz
emacs-f646675cd1637948b2df2351a9666792ea8251ea.zip
Handle dedicated status in 'window--display-buffer' (Bug#33870)
* lisp/window.el (display-buffer-record-window): Rewrite doc-string. (window--display-buffer): Remove fifth argument DEDICATED and either directly use a 'dedicated' entry in ALIST or the value of 'display-buffer-mark-dedicated' instead. (display-buffer-in-atom-window, display-buffer-use-some-frame) (display-buffer-pop-up-frame, display-buffer-pop-up-window) (display-buffer-below-selected, display-buffer-at-bottom): Adjust callers of 'window--display-buffer'. (window--make-major-side-window) (display-buffer-in-side-window): Handle dedicated status of the chosen side window via a 'dedicated' alist entry and adjust 'window--display-buffer' call. (display-buffer-in-child-frame): Set up TYPE correctly for and adjust 'window--display-buffer' call. (display-buffer-in-previous-window): Handle dedicated status of a previous window already showing BUFFER. * doc/lispref/windows.texi (Buffer Display Action Alists): New action alist entry 'dedicated'. (Dedicated Windows): Mention new buffer display action alist entry 'dedicated'. * etc/NEWS: Mention new buffer display action alist entry 'dedicated'.
Diffstat (limited to 'doc/lispref')
-rw-r--r--doc/lispref/windows.texi10
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/lispref/windows.texi b/doc/lispref/windows.texi
index 3940dd89246..a0853180fb4 100644
--- a/doc/lispref/windows.texi
+++ b/doc/lispref/windows.texi
@@ -2881,6 +2881,13 @@ Frames}) to avoid changing the width of other, unrelated windows.
2881Also, this entry should be processed under only certain conditions 2881Also, this entry should be processed under only certain conditions
2882which are specified right below this list. 2882which are specified right below this list.
2883 2883
2884@vindex dedicated@r{, a buffer display action alist entry}
2885@item dedicated
2886If non-@code{nil}, such an entry tells @code{display-buffer} to mark
2887any window it creates as dedicated to its buffer (@pxref{Dedicated
2888Windows}). It does that by calling @code{set-window-dedicated-p} with
2889the chosen window as first argument and the entry's value as second.
2890
2884@vindex preserve-size@r{, a buffer display action alist entry} 2891@vindex preserve-size@r{, a buffer display action alist entry}
2885@item preserve-size 2892@item preserve-size
2886If non-@code{nil} such an entry tells Emacs to preserve the size of 2893If non-@code{nil} such an entry tells Emacs to preserve the size of
@@ -3900,6 +3907,9 @@ display. Other functions do not treat @code{t} differently from any
3900non-@code{nil} value. 3907non-@code{nil} value.
3901@end defun 3908@end defun
3902 3909
3910You can also tell @code{display-buffer} to mark a window it creates as
3911dedicated to its buffer by providing a suitable @code{dedicated}
3912action alist entry (@pxref{Buffer Display Action Alists}).
3903 3913
3904@node Quitting Windows 3914@node Quitting Windows
3905@section Quitting Windows 3915@section Quitting Windows