]> git.eshelyaron.com Git - emacs.git/commit
Add toggle-window-dedicated command and mode-line-window-dedicated
authorSpencer Baugh <sbaugh@catern.com>
Sat, 19 Aug 2023 20:01:54 +0000 (16:01 -0400)
committerEli Zaretskii <eliz@gnu.org>
Wed, 25 Oct 2023 13:43:51 +0000 (16:43 +0300)
commit1d60139a8073c1293b75e41390f2b58bc2eb7943
tree4c3e524a454c8c7cb4028bc7d1cd41da616c3ae4
parent74330c0b96970b7a056f54e9d9199c0bc5ad4b04
Add toggle-window-dedicated command and mode-line-window-dedicated

It's sometimes useful to interactively make certain windows dedicated.
This allows a level of interactive control over which window
display-buffer uses.

Additionally, when a window is dedicated (even without this new
command) it can affect display-buffer behavior in ways which may be
unexpected for users.  Let's display the window dedicated status in
the mode-line to help indicate what's going on.

* doc/emacs/windows.texi (Displaying Buffers): Add information about
dedicated windows and toggle-window-dedicated.
* doc/emacs/screen.texi (Mode Line): Add information about the window
dedicated indicator.
* etc/NEWS: Announce mode-line-window-dedicated and
toggle-window-dedicated.
* lisp/window.el (toggle-window-dedicated): Add.  (bug#64619)
(window-prefix-map): Add C-x w d binding.
* lisp/bindings.el (mode-line-window-control): Add.
(mode-line-window-dedicated): Add.
(standard-mode-line-format): Insert mode-line-window-dedicated.
doc/emacs/screen.texi
doc/emacs/windows.texi
etc/NEWS
lisp/bindings.el
lisp/window.el