Function: window-body-height

window-body-height is a function defined in window.c.

Signature

(window-body-height &optional WINDOW PIXELWISE)

Documentation

Return the height of WINDOW's text area.

WINDOW must be a live window and defaults to the selected one. The return value does not include the mode line or header line or any horizontal divider.

The optional argument PIXELWISE defines the units to use for the height. If nil, return the largest integer smaller than WINDOW's pixel height in units of the character height of WINDOW's frame. If PIXELWISE is remap and the default face is remapped (see face-remapping-alist), use the remapped face to determine the character height. For any other non-nil value, return the height in pixels.

View in manual

Probably introduced at or before Emacs version 22.1.

Source Code

// Defined in /usr/src/emacs/src/window.c
{
  return (make_fixnum
	  (window_body_height (decode_live_window (window),
			       window_body_unit_from_symbol (pixelwise))));
}