Function: window-text-height
window-text-height is a function defined in window.c.
Signature
(window-text-height &optional WINDOW PIXELWISE)
Documentation
Return the height in lines of the text display area of WINDOW.
WINDOW must be a live window and defaults to the selected one.
The returned height does not include dividers, the mode line, any header line, nor any partial-height lines at the bottom of the text area.
Optional argument PIXELWISE non-nil, means to return the height in pixels.
Source Code
// Defined in /usr/src/emacs/src/window.c
{
struct window *w = decode_live_window (window);
if (NILP (pixelwise))
return make_fixnum (window_box_height (w)
/ FRAME_LINE_HEIGHT (WINDOW_XFRAME (w)));
else
return make_fixnum (window_box_height (w));
}