compilation-scroll-output

compilation-scroll-output is a variable defined in `compile.el'.
Its value is
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.

You can customize this variable.

This variable was introduced, or its default value was changed, in version 20.3 of Emacs.