Auto-recompile, an Emacs add-on, enables speedy error corrections during compilation. An ideal way to save time, it's a small but useful utility.
Using Auto-recompile is simple. Just toggle it on and off with M-x auto-recompile. When the tool is active, emacs will do a few extra things to assist you. Whenever you save a file, emacs will initiate a new compilation with the same parameters as the last call to M-x compile. Any previous compilation will be killed, but its buffer will remain so that you can continue working on any errors in that buffer. Each new compilation will have its own buffer.
When you hit C-x ` to go to the next error, emacs will search all of the compilation buffers, starting with the newest one, until it finds one with an error. Once it finds a buffer with an error, older compilation buffers will be automatically killed, as any errors in those buffers are no longer relevant. If no errors are found, emacs will show you the end of the last compilation buffer, which tells you if the current compilation is still active or if it has completed successfully.
When using C-`, emacs will automatically save ALL buffers if the next error is in a different buffer than the last one. This will start a new compilation in the background automatically. This means that after starting a compile with M-x compile, all you need to do is use C-x ` to work your way through the errors and fix them. Emacs will automatically save and recompile as you make progress.
It is worth noting that auto-recompile mode can be dangerous, as it kills compilations without warning and saves ALL buffers in your emacs without asking. To turn off automatic saving of buffers, set auto-recompile-save to nil in the settings. Auto-recompile is distributed under the GPL v2 license.
Version 1.1: N/A