Hi Achim
On Sat, Nov 22, 2014 at 12:30 PM, Achim Gratz wrote:
> Michael Brand writes:
>> What is the reason that "make check" does not stop at the first
>> compilation error with a non-zero exit status?
>
> Emacs doesn't behave like a compiler
... when used as
[...] --batch --eval '(batch-byte-recompile-directory 0)'
But as
[...] --batch --eval '(batch-byte-compile)' `find . -name '*.el'`
the non-zero exit status is available. Could "make check" use this to
indicate a compilation error?
Alternatively of help may be a new optional parameter for
byte-recompile-directory to return its fail-count instead of nothing
useful as now and batch-byte-recompile-directory would then also on
request use it for (kill-emacs fail-count) instead of only the current
undifferentiated (kill-emacs 0).
Michael