Function: scroll-all-mode

scroll-all-mode is an autoloaded, interactive and byte-compiled function defined in scroll-all.el.gz.

Signature

(scroll-all-mode &optional ARG)

Documentation

Toggle shared scrolling in same-frame windows (Scroll-All mode).

When Scroll-All mode is enabled, scrolling commands invoked in one window apply to all visible windows in the same frame.

This is a global minor mode. If called interactively, toggle the Scroll-All mode mode. If the prefix argument is positive, enable the mode, and if it is zero or negative, disable the mode.

If called from Lisp, toggle the mode if ARG is toggle. Enable the mode if ARG is nil, omitted, or is a positive number. Disable the mode if ARG is a negative number.

To check whether the minor mode is enabled in the current buffer, evaluate (default-value \=scroll-all-mode)'.

The mode's hook is called both when the mode is enabled and when it is disabled.

View in manual

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/scroll-all.el.gz
;;;###autoload
(define-minor-mode scroll-all-mode
  "Toggle shared scrolling in same-frame windows (Scroll-All mode).

When Scroll-All mode is enabled, scrolling commands invoked in
one window apply to all visible windows in the same frame."
  :lighter " *SL*"
  :global t
  :group 'windows
  (if scroll-all-mode
      (add-hook 'post-command-hook 'scroll-all-check-to-scroll)
    (remove-hook 'post-command-hook 'scroll-all-check-to-scroll)))