From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Brand Subject: Re: Check for compilation error Date: Sun, 23 Nov 2014 18:55:57 +0100 Message-ID: References: <87fvdbo4jz.fsf@Gertrud.fritz.box> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52564) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XsbOB-0001kR-6N for emacs-orgmode@gnu.org; Sun, 23 Nov 2014 12:55:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XsbOA-0007vf-DA for emacs-orgmode@gnu.org; Sun, 23 Nov 2014 12:55:59 -0500 Received: from mail-qa0-x22c.google.com ([2607:f8b0:400d:c00::22c]:51763) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XsbOA-0007vV-8q for emacs-orgmode@gnu.org; Sun, 23 Nov 2014 12:55:58 -0500 Received: by mail-qa0-f44.google.com with SMTP id i13so5463068qae.17 for ; Sun, 23 Nov 2014 09:55:57 -0800 (PST) In-Reply-To: <87fvdbo4jz.fsf@Gertrud.fritz.box> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Achim Gratz Cc: Org Mode 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