Function: window-margins
window-margins is a function defined in window.c.
Signature
(window-margins &optional WINDOW)
Documentation
Get width of marginal areas of window WINDOW.
WINDOW must be a live window and defaults to the selected one.
Value is a cons of the form (LEFT-WIDTH . RIGHT-WIDTH). If a marginal area does not exist, its width will be returned as nil.
Probably introduced at or before Emacs version 21.1.
Source Code
// Defined in /usr/src/emacs/src/window.c
{
struct window *w = decode_live_window (window);
return Fcons (w->left_margin_cols
? make_fixnum (w->left_margin_cols) : Qnil,
w->right_margin_cols
? make_fixnum (w->right_margin_cols) : Qnil);
}