Function: window-layout-flip-leftright
window-layout-flip-leftright is an autoloaded, interactive and
byte-compiled function defined in window-x.el.gz.
Signature
(window-layout-flip-leftright &optional WINDOW)
Documentation
Flip WINDOW's child windows horizontally.
WINDOW must be a parent window and defaults to the main window of the selected frame. Interactively, with a prefix argument, flip horizontally the layout of the child windows of the selected window's parent.
Recursively flip the layout of WINDOW's child windows so that a child
window on the right becomes a child window on the left 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-flip-leftright (&optional window)
"Flip WINDOW's child windows horizontally.
WINDOW must be a parent window and defaults to the main window of the
selected frame. Interactively, with a prefix argument, flip
horizontally the layout of the child windows of the selected window's
parent.
Recursively flip the layout of WINDOW's child windows so that a child
window on the right becomes a child window on the left 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)) '(below . left) t))