From mboxrd@z Thu Jan 1 00:00:00 1970
Path: news.gmane.org!.POSTED!not-for-mail
From: Philipp
Newsgroups: gmane.emacs.bugs
Subject: bug#24359: 25.1;
batch-byte-compile exits with code 0 even if errors occurred
Date: Sat, 03 Sep 2016 19:28:37 +0200
Message-ID:
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Trace: blaine.gmane.org 1472923758 25466 195.159.176.226 (3 Sep 2016 17:29:18 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Sat, 3 Sep 2016 17:29:18 +0000 (UTC)
To: 24359@debbugs.gnu.org
Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Sep 03 19:29:14 2016
Return-path:
Envelope-to: geb-bug-gnu-emacs@m.gmane.org
Original-Received: from lists.gnu.org ([208.118.235.17])
by blaine.gmane.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1bgEki-0005rC-P6
for geb-bug-gnu-emacs@m.gmane.org; Sat, 03 Sep 2016 19:29:13 +0200
Original-Received: from localhost ([::1]:47240 helo=lists.gnu.org)
by lists.gnu.org with esmtp (Exim 4.71)
(envelope-from )
id 1bgEkg-0008QS-D1
for geb-bug-gnu-emacs@m.gmane.org; Sat, 03 Sep 2016 13:29:10 -0400
Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58027)
by lists.gnu.org with esmtp (Exim 4.71)
(envelope-from ) id 1bgEka-0008Q7-On
for bug-gnu-emacs@gnu.org; Sat, 03 Sep 2016 13:29:05 -0400
Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
(envelope-from ) id 1bgEkY-0006Ic-J1
for bug-gnu-emacs@gnu.org; Sat, 03 Sep 2016 13:29:03 -0400
Original-Received: from debbugs.gnu.org ([208.118.235.43]:51154)
by eggs.gnu.org with esmtp (Exim 4.71)
(envelope-from ) id 1bgEkY-0006IY-Ey
for bug-gnu-emacs@gnu.org; Sat, 03 Sep 2016 13:29:02 -0400
Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
(envelope-from ) id 1bgEkY-0005Zt-7b
for bug-gnu-emacs@gnu.org; Sat, 03 Sep 2016 13:29:02 -0400
X-Loop: help-debbugs@gnu.org
Resent-From: Philipp
Original-Sender: "Debbugs-submit"
Resent-CC: bug-gnu-emacs@gnu.org
Resent-Date: Sat, 03 Sep 2016 17:29:02 +0000
Resent-Message-ID:
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: report 24359
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords:
X-Debbugs-Original-To: bug-gnu-emacs@gnu.org
Original-Received: via spool by submit@debbugs.gnu.org id=B.147292373921430
(code B ref -1); Sat, 03 Sep 2016 17:29:02 +0000
Original-Received: (at submit) by debbugs.gnu.org; 3 Sep 2016 17:28:59 +0000
Original-Received: from localhost ([127.0.0.1]:48866 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1bgEkV-0005Za-Ep
for submit@debbugs.gnu.org; Sat, 03 Sep 2016 13:28:59 -0400
Original-Received: from eggs.gnu.org ([208.118.235.92]:38801)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from ) id 1bgEkU-0005ZO-4Y
for submit@debbugs.gnu.org; Sat, 03 Sep 2016 13:28:58 -0400
Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
(envelope-from ) id 1bgEkN-0006IE-AK
for submit@debbugs.gnu.org; Sat, 03 Sep 2016 13:28:52 -0400
Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:40691)
by eggs.gnu.org with esmtp (Exim 4.71)
(envelope-from ) id 1bgEkN-0006IA-72
for submit@debbugs.gnu.org; Sat, 03 Sep 2016 13:28:51 -0400
Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58004)
by lists.gnu.org with esmtp (Exim 4.71)
(envelope-from ) id 1bgEkK-0008OR-VE
for bug-gnu-emacs@gnu.org; Sat, 03 Sep 2016 13:28:50 -0400
Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
(envelope-from ) id 1bgEkI-0006I0-LV
for bug-gnu-emacs@gnu.org; Sat, 03 Sep 2016 13:28:47 -0400
Original-Received: from mail-wm0-x22f.google.com ([2a00:1450:400c:c09::22f]:35395)
by eggs.gnu.org with esmtp (Exim 4.71)
(envelope-from ) id 1bgEkI-0006Hv-FB
for bug-gnu-emacs@gnu.org; Sat, 03 Sep 2016 13:28:46 -0400
Original-Received: by mail-wm0-x22f.google.com with SMTP id w2so69696221wmd.0
for ; Sat, 03 Sep 2016 10:28:46 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
h=from:to:subject:date:message-id:mime-version
:content-transfer-encoding;
bh=yXKCyPrAyo1Gj3t75k3+7waNXOhnM0GsYzUYYf8reCc=;
b=fOlY0LFfY0PBv1DEj4sUcK9UzyAnjdvL1kmA1/RM7jMCrhRgslqmhRm7OX2OE8UF6n
XVssOIA0z2aKvWjWhEgvciPTPNjdiEDWvHA5/2CCfdm9KG5bH5/1nnZ+FVwoBxP/yzQO
VZooH+2dE3ko2wCHJHc1zpDsIFu+0tru7a8DgtHZaztUPSQFwZfGL4o1j6M1PWudeNY/
tIoE6f9kq31MfH32LAH7ny047d8KXDA22hl5aKMXMsqKpfY/gld6nV58ywqusWbLLpa2
S2slB9YHiqDlRfcQsYCe8vOBUHt2aK4XhPZYrjpQAj4RQW/tfwpAL5EI9wAG+P+0F8Hp
M5bg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20130820;
h=x-gm-message-state:from:to:subject:date:message-id:mime-version
:content-transfer-encoding;
bh=yXKCyPrAyo1Gj3t75k3+7waNXOhnM0GsYzUYYf8reCc=;
b=Y5yuL8s1IT/qn7dNGaKiWMb5g4PAewDoMA7D0tsbbk9n/urBLDIaZzX89TSpntusE5
N+ax/PJ6oFLBnZ8XBYWH2z8qXOaiZldF82LrRx3EkpQWYqoXRqkRaYsujn/zdMqBujRw
c2xZJIwbf66K6g0JJdzCAEKi21awFpKwHtBAoSKHl9JXoMWkajGD6WsxTFtKtx9nl/YA
RaAryr36r2/R+kj+QwbOZ7DG6TBq1z5TARU10Q8+bA1pMBwlOEiAOYD/NEQgm3YBocUs
JfCKXxommqviiP5biWhLCqQN81LfBPS4Lecfnyalpx+RBSppzw+QdK0fnfEBK9dl8did
JUPg==
X-Gm-Message-State: AE9vXwOgJRYyEIrp8pAAS5OJXZWqIw/z79yphk81boYkJZF3hGPkTxq1XbPLwBaV28WiXQ==
X-Received: by 10.28.198.142 with SMTP id w136mr8555007wmf.30.1472923725223;
Sat, 03 Sep 2016 10:28:45 -0700 (PDT)
Original-Received: from phst-glaptop2 ([2001:4c50:32f:d100:b967:30f5:d68:f5d3])
by smtp.gmail.com with ESMTPSA id
qe2sm16534434wjc.28.2016.09.03.10.28.44 for
(version=TLS1_2 cipher=AES128-SHA bits=128/128);
Sat, 03 Sep 2016 10:28:44 -0700 (PDT)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 208.118.235.43
X-BeenThere: bug-gnu-emacs@gnu.org
List-Id: "Bug reports for GNU Emacs,
the Swiss army knife of text editors"
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org
Original-Sender: "bug-gnu-emacs"
Xref: news.gmane.org gmane.emacs.bugs:122889
Archived-At:
Create a file /tmp/a.el with the following content:
;;; -*- lexical-binding: t; -*-
(let (a)
(add-to-list 'a t))
Then run:
$ emacs -batch -Q -f batch-byte-compile /tmp/a.el ; echo $?
In toplevel form:
/tmp/a.el:2:1:Error: =E2=80=98add-to-list=E2=80=99 can=E2=80=99t use lexica=
l var =E2=80=98a=E2=80=99; use =E2=80=98push=E2=80=99 or
=E2=80=98cl-pushnew=E2=80=99
0
Expected behavior: The status code is nonzero because an error occurred.
Actual behavior: The status code is zero.
This is because this class of error (and others) use
byte-compile-log-warning, which doesn't properly set the error flag.
In GNU Emacs 25.1.3 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.8)
of 2016-09-03 built on unknown
Repository revision: 803ad6f7e7a9c6bcf8a6cbf8eaad17501b114a33
Windowing system distributor 'The X.Org Foundation', version 11.0.11702000
System Description: Ubuntu 14.04 LTS
Configured features:
XPM JPEG TIFF GIF PNG SOUND GSETTINGS NOTIFY GNUTLS FREETYPE XFT ZLIB
TOOLKIT_SCROLL_BARS GTK3 X11
Important settings:
value of $LANG: en_US.UTF-8
locale-coding-system: utf-8-unix
Major mode: Lisp Interaction
Minor modes in effect:
tooltip-mode: t
global-eldoc-mode: t
electric-indent-mode: t
mouse-wheel-mode: t
tool-bar-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
line-number-mode: t
transient-mark-mode: t
Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Load-path shadows:
None found.
Features:
(shadow sort mail-extr emacsbug message dired format-spec rfc822 mml
mml-sec password-cache epg epg-config gnus-util mm-decode mm-bodies
mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail
rfc2047 rfc2045 ietf-drums mm-util help-fns help-mode easymenu
cl-loaddefs pcase cl-lib mail-prsvr mail-utils time-date mule-util
tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type
mwheel x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt
fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register
page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock
font-lock syntax facemenu font-core frame cl-generic cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european
ethiopic indian cyrillic chinese charscript case-table epa-hook
jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice
loaddefs button faces cus-face macroexp files text-properties overlay
sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote inotify dynamic-setting
system-font-setting font-render-setting move-toolbar gtk x-toolkit x
multi-tty make-network-process emacs)
Memory information:
((conses 16 87400 6705)
(symbols 48 19696 0)
(miscs 40 300 146)
(strings 32 14554 3984)
(string-bytes 1 425298)
(vectors 16 11995)
(vector-slots 8 435911 5924)
(floats 8 162 31)
(intervals 56 184 0)
(buffers 976 22)
(heap 1024 35418 1075))