]> git.eshelyaron.com Git - emacs.git/commit
Improve handling of dedicated flag for side windows (Bug#48493)
authorpillule <pillule@riseup.net>
Mon, 14 Jun 2021 07:59:11 +0000 (09:59 +0200)
committerMartin Rudalics <rudalics@gmx.at>
Mon, 14 Jun 2021 07:59:11 +0000 (09:59 +0200)
commitd0c7d8bc22a935f2a79747a96b4043f0b449a212
treedd8f99c868613bb2e8797707278bca571214484e
parent2f7a115a9c876e69296974e8e02ece569df988e9
Improve handling of dedicated flag for side windows (Bug#48493)

* doc/lispref/windows.texi (Buffers and Windows): Mention the
special handling of side windows and add a reference.
(Buffer Display Action Alists): Say explicitly that
`display-buffer-in-side-window' is dedicating to side by default.
(Dedicated Windows): Add case (4) and explain its meaning, add
a reference.
(Displaying Buffers in Side Windows): Move the paragraph about
`switch-to-(prev|next)-buffer' into a new item to emphasize the
special meaning of dedication for side windows.
* lisp/window.el (set-window-buffer-start-and-point): Restore
side dedication.
(switch-to-prev-buffer, switch-to-next-buffer): Correct return
value that should be nil instead of the same buffer in case of
no change.
(delete-windows-on): Restore side dedication.
(replace-buffer-in-windows): Update the docstring, restore side
dedication.
(quit-restore-window): Rearrange the logic so that strongly
dedicated windows are eventually deleted first.  Restore the
side dedication.  In the final case try to
`switch-to-prev-buffer' before deleting a window (Bug#48367).
doc/lispref/windows.texi
lisp/window.el