]> git.eshelyaron.com Git - emacs.git/commit
(display-buffer): New `pop-up-frames` action alist entry
authorStefan Monnier <monnier@iro.umontreal.ca>
Sat, 9 Dec 2023 23:38:35 +0000 (18:38 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sat, 16 Dec 2023 18:13:15 +0000 (13:13 -0500)
commit3eb421bda38981dbb08c3342833b1c7156156469
tree648d1b6b56d99aa0e3bb1628634a14ae30a3e934
parent127de202b83f841b9f73ed6142c9e369addb18f3
(display-buffer): New `pop-up-frames` action alist entry

Allow overriding the `pop-up-frames` variable from `display-buffer-alist`
so as to provide a worthy replacement for the old `same-frame`
parameter of `special-display-*` (bug#67249).

* lisp/window.el (special-display-popup-frame): Declare obsolete;
that was apparently forgotten back when `special-display-*` variables
were declared obsolete.
Use the new `pop-up-frames` action alist entry instead of the variable.
(display-buffer): Document new alist entry.
(window--pop-up-frames): New function.
(display-buffer--maybe-pop-up-frame, display-buffer-in-previous-window)
(display-buffer-reuse-window, display-buffer-reuse-mode-window): Use it.

* doc/lispref/windows.texi (Choosing Window Options): Mention that
`pop-up-frames` is also an action alist entry.
(Buffer Display Action Alists): Add `pop-up-frames` entry.
doc/lispref/windows.texi
etc/NEWS
lisp/window.el