Function: set-window-hscroll

set-window-hscroll is a function defined in window.c.

Signature

(set-window-hscroll WINDOW NCOL)

Documentation

Set number of columns WINDOW is scrolled from left margin to NCOL.

WINDOW must be a live window and defaults to the selected one. Clip the number to a reasonable value if out of range. Return the new number. NCOL should be zero or positive.

Note that if auto-hscroll-mode is non-nil, you cannot scroll the window so that the location of point moves off-window.

View in manual

Probably introduced at or before Emacs version 21.1.

Source Code

// Defined in /usr/src/emacs/src/window.c
{
  CHECK_FIXNUM (ncol);
  return set_window_hscroll (decode_live_window (window), XFIXNUM (ncol));
}