Function: scroll-other-window

scroll-other-window is an interactive function defined in window.c.

Signature

(scroll-other-window &optional ARG)

Documentation

Scroll next window upward ARG lines; or near full screen if no ARG.

A near full screen is next-screen-context-lines less than a full screen. Negative ARG means scroll downward. If ARG is the atom -, scroll downward by nearly full screen. When calling from a program, supply as argument a number, nil, or -.

The next window is usually the one below the current one; or the one at the top if the current one is at the bottom. It is determined by the function other-window-for-scrolling, which see.

Probably introduced at or before Emacs version 18.

Key Bindings

Source Code

// Defined in /usr/src/emacs/src/window.c
{
  ptrdiff_t count = SPECPDL_INDEX ();
  scroll_command (Fother_window_for_scrolling (), arg, 1);
  return unbind_to (count, Qnil);
}