1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-15 17:00:26 +00:00

* lisp/window.el (window-toggle-side-windows): Doc fix. (Bug#31858)

This commit is contained in:
Eli Zaretskii 2018-06-17 08:42:11 +03:00
parent e1284341fd
commit cf4dc95f16

View File

@ -1144,15 +1144,16 @@ explicitly provided via a `window-parameters' entry in ALIST."
buffer best-window 'reuse alist dedicated))))))))) buffer best-window 'reuse alist dedicated)))))))))
(defun window-toggle-side-windows (&optional frame) (defun window-toggle-side-windows (&optional frame)
"Toggle side windows on specified FRAME. "Toggle display of side windows on specified FRAME.
FRAME must be a live frame and defaults to the selected one. FRAME must be a live frame and defaults to the selected one.
If FRAME has at least one side window, save FRAME's state in the If FRAME has at least one side window, delete all side
FRAME's `window-state' frame parameter and delete all side windows on FRAME after saving FRAME's state in the
windows on FRAME afterwards. Otherwise, if FRAME has a FRAME's `window-state' frame parameter. Otherwise,
`window-state' parameter, use that to restore any side windows on restore any side windows recorded in FRAME's `window-state'
FRAME leaving FRAME's main window alone. Signal an error if parameter, leaving FRAME's main window alone. Signal an
FRAME has no side window and no saved state is found." error if FRAME has no side windows and no saved state for
it is found."
(interactive) (interactive)
(let* ((frame (window-normalize-frame frame)) (let* ((frame (window-normalize-frame frame))
(window--sides-inhibit-check t) (window--sides-inhibit-check t)