Variable: maximum-scroll-margin

maximum-scroll-margin is a customizable variable defined in xdisp.c.

Value

0.25

Documentation

Maximum effective value of scroll-margin.

Given as a fraction of the current window's lines. The value should be a floating point number between 0.0 and 0.5. The effective maximum is limited to (/ (1- window-lines) 2). Non-float values for this variable are ignored and the default 0.25 is used instead.

This variable was added, or its default value changed, in Emacs 26.1.

Probably introduced at or before Emacs version 26.1.

Source Code

// Defined in /usr/src/emacs/src/xdisp.c
  DEFVAR_LISP ("maximum-scroll-margin", Vmaximum_scroll_margin,
    doc: /* Maximum effective value of `scroll-margin'.
Given as a fraction of the current window's lines.  The value should
be a floating point number between 0.0 and 0.5.  The effective maximum
is limited to (/ (1- window-lines) 2).  Non-float values for this
variable are ignored and the default 0.25 is used instead.  */);