Function: window-layout-transpose
window-layout-transpose is an autoloaded, interactive and
byte-compiled function defined in window-x.el.gz.
Signature
(window-layout-transpose &optional WINDOW)
Documentation
Transpose child windows of WINDOW.
WINDOW must be a parent window and defaults to the main window of the selected frame. Interactively, with a prefix argument, transpose the layout of the child windows of the selected window's parent.
Recursively reorganize WINDOW's child windows so that each horizontal
split becomes a vertical split and vice versa. Signal an error if
WINDOW is not a parent window or one of WINDOW's descendants is of fixed
size or atomic. Also signal an error if transpose-dedicated-windows
is nil and a descendant window is dedicated.
Probably introduced at or before Emacs version 31.1.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/window-x.el.gz
;;;###autoload
(defun window-layout-transpose (&optional window)
"Transpose child windows of WINDOW.
WINDOW must be a parent window and defaults to the main window of the
selected frame. Interactively, with a prefix argument, transpose the
layout of the child windows of the selected window's parent.
Recursively reorganize WINDOW's child windows so that each horizontal
split becomes a vertical split and vice versa. Signal an error if
WINDOW is not a parent window or one of WINDOW's descendants is of fixed
size or atomic. Also signal an error if `transpose-dedicated-windows'
is nil and a descendant window is dedicated."
(interactive (list (window--rotate-interactive-arg)))
(window--transpose (or window (window-main-window)) '(right . below) nil))