Commit 07799e9a authored by Chong Yidong's avatar Chong Yidong
Browse files

(Compilation): Document first-error value of compilation-scroll-output.

(Compilation Mode): Note that compilation-auto-jump-to-first-error
works as soon as an error is available.  Suggested by Juri Linkov.
parent b0570c25
...@@ -92,9 +92,12 @@ the end of the buffer. ...@@ -92,9 +92,12 @@ the end of the buffer.
@cindex compilation buffer, keeping point at end @cindex compilation buffer, keeping point at end
@vindex compilation-scroll-output @vindex compilation-scroll-output
If you set the variable @code{compilation-scroll-output} to a If you change the variable @code{compilation-scroll-output} to a
non-@code{nil} value, then the compilation buffer always scrolls to non-@code{nil} value, the compilation buffer will scroll automatically
follow output as it comes in. to follow the output as it comes in. If the value is
@code{first-error}, the scrolling stops at the first error that
appears, leaving point at that error. For any other non-@code{nil}
value, the buffer continues scrolling until there is no more output.
@findex recompile @findex recompile
To rerun the last compilation with the same command, type @kbd{M-x To rerun the last compilation with the same command, type @kbd{M-x
...@@ -201,8 +204,8 @@ typing @key{RET} (@code{compile-goto-error}). Alternatively, you can ...@@ -201,8 +204,8 @@ typing @key{RET} (@code{compile-goto-error}). Alternatively, you can
click @kbd{Mouse-2} on the error message; you need not switch to the click @kbd{Mouse-2} on the error message; you need not switch to the
@samp{*compilation*} buffer first. If you set the variable @samp{*compilation*} buffer first. If you set the variable
@code{compilation-auto-jump-to-first-error} to a non-@code{nil} value, @code{compilation-auto-jump-to-first-error} to a non-@code{nil} value,
Emacs automatically jumps to the first error (if any exists) once Emacs automatically jumps to the first error, if any, as soon as it
compilation finishes. appears in the @samp{*compilation*} buffer.
@kindex M-g M-n @kindex M-g M-n
@kindex M-g n @kindex M-g n
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment