Function: window-child-count

window-child-count is a byte-compiled function defined in window.el.gz.

Signature

(window-child-count WINDOW)

Documentation

Return number of WINDOW's child windows.

WINDOW can be any window.

Source Code

;; Defined in /usr/src/emacs/lisp/window.el.gz
(defun window-child-count (window)
  "Return number of WINDOW's child windows.
WINDOW can be any window."
  (let ((count 0))
    (when (and (windowp window) (setq window (window-child window)))
      (while window
	(setq count (1+ count))
	(setq window (window-next-sibling window))))
    count))