summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2021-01-07 16:35:48 +0100
committerLars Ingebrigtsen <larsi@gnus.org>2021-01-07 16:35:48 +0100
commit40a0f8a3a2ac790bb398c321e7eb6928da330511 (patch)
treef3afec5a6136ff483ca3c6e7e1427b2c2757eb6d /doc
parent0e6b74d2047452bb1fc3285921465132aeda0cb7 (diff)
downloademacs-40a0f8a3a2ac790bb398c321e7eb6928da330511.tar.gz
Add a display-buffer window selection function that's more like XEmacs
* doc/lispref/windows.texi (Buffer Display Action Functions): Document it. * lisp/window.el (display-buffer--action-function-custom-type): Add. (display-buffer): Mention it. (display-buffer-use-least-recent-window): New function (bug#45688). * src/window.c (Fwindow_bump_use_time): New function.
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/windows.texi6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/lispref/windows.texi b/doc/lispref/windows.texi
index b0906acbad5..f305d1a8ee8 100644
--- a/doc/lispref/windows.texi
+++ b/doc/lispref/windows.texi
@@ -2634,6 +2634,12 @@ window and displaying the buffer in that window. It can fail if all
windows are dedicated to other buffers (@pxref{Dedicated Windows}).
@end defun
+@defun display-buffer-use-least-recent-window buffer alist
+This function is like @code{display-buffer-use-some-window}, but will
+not reuse the current window, and will use the least recently
+switched-to window.
+@end defun
+
@defun display-buffer-in-direction buffer alist
This function tries to display @var{buffer} at a location specified by
@var{alist}. For this purpose, @var{alist} should contain a