I want to run
recompile, but I don't want to see the
*compilation* buffer pop up unless there's an error, or not at all. If the compilation succeeds, I should just see a notification in the echo area. This is how AUCTeX works; I want it for arbitrary compilation commands in arbitrary modes.
This is a small wheel to be sure, but I can't find it built in (as of Emacs 24.3). Before I go on about reinventing it, does this already exist somewhere?