Variable: hscroll-margin
hscroll-margin is a customizable variable defined in xdisp.c.
Value
5
Documentation
How many columns away from the window edge point is allowed to get before automatic hscrolling will horizontally scroll the window.
This variable was added, or its default value changed, in Emacs 22.1.
Probably introduced at or before Emacs version 22.1.
Source Code
// Defined in /usr/src/emacs/src/xdisp.c
DEFVAR_INT ("hscroll-margin", hscroll_margin,
doc: /* How many columns away from the window edge point is allowed to get
before automatic hscrolling will horizontally scroll the window. */);