hscroll-margin

hscroll-margin is a variable defined in `C source code'.
Its value is
5


Documentation:
How many columns away from the window edge point is allowed to get
before automatic hscrolling will horizontally scroll the window.

You can customize this variable.

This variable was introduced, or its default value was changed, in version 22.1 of Emacs.