Function: window-body-width

Return the width, in columns, of WINDOW's text area.
WINDOW must be a live window and defaults to the selected one.

The return value does not include any vertical dividers, fringe or
marginal areas, or scroll bars. On a graphical display, the width is
expressed as an integer multiple of the default character width.
(fn &optional WINDOW)