Variable: compilation-scroll-output
compilation-scroll-output is a customizable variable defined in
compile.el.gz.
Value
nil
Documentation
Non-nil to scroll the *compilation* buffer window as output appears.
Setting it causes the Compilation mode commands to put point at the end of their output window so that the end of the output is always visible rather than the beginning.
The value first-error stops scrolling at the first error, and leaves
point on its location in the *compilation* buffer.
This variable was added, or its default value changed, in Emacs 20.3.
Probably introduced at or before Emacs version 20.3.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/compile.el.gz
(defcustom compilation-scroll-output nil
"Non-nil to scroll the *compilation* buffer window as output appears.
Setting it causes the Compilation mode commands to put point at the
end of their output window so that the end of the output is always
visible rather than the beginning.
The value `first-error' stops scrolling at the first error, and leaves
point on its location in the *compilation* buffer."
:type '(choice (const :tag "No scrolling" nil)
(const :tag "Scroll compilation output" t)
(const :tag "Stop scrolling at the first error" first-error))
:version "20.3")