M-x all-things-emacs

Quick Tip: compilation-skip-threshold

May 22nd, 2007 by Rob Christie · No Comments

compilation-mode has a nice feature so that you can skip over your info and warning level messages and jump right to those nasty errors. Set the variable compilation-skip-threshold to 2 so that M-n and M-p will jump to the next or previous error respectively. The other possible settings for this variable are:

2 — skip anything less than error
1 — skip anything less than warning, or
0 — don’t skip any messages.

Note that all messages not positively identified as warning or info are considered errors.

Tags: java · quick · tips