Function: scroll-left
scroll-left is an interactive function defined in window.c.
Signature
(scroll-left &optional ARG SET-MINIMUM)
Documentation
Scroll selected window display ARG columns left.
Default for ARG is window width minus 2. Value is the total amount of leftward horizontal scrolling in effect after the change. If SET-MINIMUM is non-nil, the new scroll amount becomes the lower bound for automatic scrolling, i.e. automatic scrolling will not scroll a window to a column less than the value returned by this function. This happens in an interactive call.
Probably introduced at or before Emacs version 1.7.
Key Bindings
Source Code
// Defined in /usr/src/emacs/src/window.c
{
struct window *w = XWINDOW (selected_window);
EMACS_INT requested_arg =
(NILP (arg)
? window_body_width (w, WINDOW_BODY_IN_CANONICAL_CHARS) - 2
: XFIXNUM (Fprefix_numeric_value (arg)));
Lisp_Object result = set_window_hscroll (w, w->hscroll + requested_arg);
if (!NILP (set_minimum))
w->min_hscroll = w->hscroll;
w->suspend_auto_hscroll = true;
return result;
}