Hi Stefan, On 2013-01-31 23:14 +0800, Stefan Monnier wrote: > So maybe the best approach is to extend compile.el such that it can be > told to do its job without displaying the compilation buffer. If you do > that, try to take into account that this usage pattern could be useful > in other contexts than ggtags.el, for example users might prefer to not > see the compilation buffer and just be moved to the first error > automatically, and have C-x ` output the error message in the echo area > (maybe, accompanied by the number of errors left). The attached two patches (against emacs-24) implement: 1. A new variable compilation-dont-display-buffer to prevent calling display-buffer. 2. Display a message when calling compilation-next-error like this: Error: 2/623 Thanks for comments. Leo