Function: window--sides-check

window--sides-check is a byte-compiled function defined in window.el.gz.

Signature

(window--sides-check FRAME)

Documentation

Check side windows configuration of FRAME.

In a valid side windows configuration there can be at most one internal side window on each side and all its children must be live and have the same window-side parameter and no other window with the same window-side parameter exists on FRAME. If there is no such internal window, there may be at most one window with this side's window-side parameter on FRAME.

If the configuration is invalid, reset the window-side parameters of all windows on FRAME.

Source Code

;; Defined in /usr/src/emacs/lisp/window.el.gz
(defun window--sides-check (frame)
  "Check side windows configuration of FRAME.
In a valid side windows configuration there can be at most one
internal side window on each side and all its children must be
live and have the same `window-side' parameter and no other
window with the same `window-side' parameter exists on FRAME.  If
there is no such internal window, there may be at most one window
with this side's `window-side' parameter on FRAME.

If the configuration is invalid, reset the `window-side'
parameters of all windows on FRAME."
  (when (and (not window--sides-inhibit-check)
             (window-with-parameter 'window-side nil frame t)
             (window--sides-check-failed frame))
    ;; Reset all `window-side' parameters.
    (walk-window-tree
     (lambda (window)
       (set-window-parameter window 'window-side nil))
     frame t 'nomini)
    (message "Side windows configuration reset for frame %s" frame)))