Function: window-combination-p
window-combination-p is a byte-compiled function defined in
window.el.gz.
Signature
(window-combination-p &optional WINDOW HORIZONTAL)
Documentation
Return WINDOW's first child if WINDOW is a vertical combination.
WINDOW can be any window and defaults to the selected one. Optional argument HORIZONTAL non-nil means return WINDOW's first child if WINDOW is a horizontal combination.
Source Code
;; Defined in /usr/src/emacs/lisp/window.el.gz
(defun window-combination-p (&optional window horizontal)
"Return WINDOW's first child if WINDOW is a vertical combination.
WINDOW can be any window and defaults to the selected one.
Optional argument HORIZONTAL non-nil means return WINDOW's first
child if WINDOW is a horizontal combination."
(setq window (window-normalize-window window))
(if horizontal
(window-left-child window)
(window-top-child window)))