The build subprocess' output is buffered (but not line buffered).
As a result partial lines are inserted. If the previous insert ended
in the middle of the pattern we are looking for, the search will fail (end missing).
When the second part is inserted, the search will also fail because this
time we start looking from the middle of the pattern (beginning missing).
To work around that, we always match from the beginning of the line.
Warnings about makefiles and build scripts interfere
with `next-error'. If you are interested only in the
errors from the source file, a custom variable allows
you to nuke build env warnings.
The filter is registered as a compilation-filter-hook.
All the commands output go to an *Android Output* buffer which
gets cleaned up before each command run.
Fixed a compilation bug, building from the top Makefile was not
generating a new image.
Moved common functions in a new android-common.el file.
Declared a customizable variable to control the number
of jobs used during the make process.
In android-compile, call compile interactively to honor
the compile-read-command feature to give the user the opportunity
to edit the command (e.g add the snod target)