From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Yuta Yamada Newsgroups: gmane.emacs.bugs Subject: bug#23495: byte-compile-file return t when there is "XXX can't use lexical var" error Date: Tue, 10 May 2016 16:45:49 -0700 (PDT) Message-ID: <20160510.164549.497097338322088203.sleepboy.zzz@gmail.com> References: <20160509.011243.271129867897113450.sleepboy.zzz@gmail.com> <87futp4vrk.fsf@web.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1462924408 13230 80.91.229.3 (10 May 2016 23:53:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 10 May 2016 23:53:28 +0000 (UTC) Cc: 23495@debbugs.gnu.org To: michael_heerdegen@web.de Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed May 11 01:53:12 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1b0HSh-0008OQ-Jd for geb-bug-gnu-emacs@m.gmane.org; Wed, 11 May 2016 01:53:11 +0200 Original-Received: from localhost ([::1]:49644 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b0HSg-0000Xe-Fy for geb-bug-gnu-emacs@m.gmane.org; Tue, 10 May 2016 19:53:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33365) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b0HSc-0000VT-6q for bug-gnu-emacs@gnu.org; Tue, 10 May 2016 19:53:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b0HSY-0001zN-NO for bug-gnu-emacs@gnu.org; Tue, 10 May 2016 19:53:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34085) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b0HSY-0001zD-J0 for bug-gnu-emacs@gnu.org; Tue, 10 May 2016 19:53:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1b0HSY-00043X-F5 for bug-gnu-emacs@gnu.org; Tue, 10 May 2016 19:53:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Yuta Yamada Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 10 May 2016 23:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23495 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23495-submit@debbugs.gnu.org id=B23495.146292434615539 (code B ref 23495); Tue, 10 May 2016 23:53:02 +0000 Original-Received: (at 23495) by debbugs.gnu.org; 10 May 2016 23:52:26 +0000 Original-Received: from localhost ([127.0.0.1]:46421 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b0HRx-00042Y-QH for submit@debbugs.gnu.org; Tue, 10 May 2016 19:52:26 -0400 Original-Received: from mail-oi0-f47.google.com ([209.85.218.47]:35805) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b0HLk-0003tQ-Ra for 23495@debbugs.gnu.org; Tue, 10 May 2016 19:46:01 -0400 Original-Received: by mail-oi0-f47.google.com with SMTP id x19so41981500oix.2 for <23495@debbugs.gnu.org>; Tue, 10 May 2016 16:46:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:message-id:to:cc:subject:from:in-reply-to:references :mime-version:content-transfer-encoding; bh=Vyy87xKfQaldntl/OsZEZ3mz5XS++CNIk+AT80xekwU=; b=wC7n8rZVRXAln10wA+CGuVRTtJDMqfaNq9a0fnahFYo08yRHTFpR63DnhmJ9MZipIv FtOvgQS2XSai623xbEWEEayMKI5P8Ng/ub/7DRkMrS+J25IgEzhct0cwlVJTPgf05N/z 1MXCfehKGMjUHi2+7Y0Ar3p1RmKBbQWmCmGlNrOZCgKKzzVO/lyi0g3B2kUYmSV6MsSp 5/Q78ppkzfIt1M3U00DXdJBSSYOBthG2j1n23S68w7zQmLKP/kYSaaSKqCycB5iuOPeD YMJgv03gSMHhaMISDIBUX+AST0Nfz8NBo4pc9oc35sosjz26qQq8i7rEu2RJg3VQz9mZ ZzUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:message-id:to:cc:subject:from:in-reply-to :references:mime-version:content-transfer-encoding; bh=Vyy87xKfQaldntl/OsZEZ3mz5XS++CNIk+AT80xekwU=; b=PzJX8FiuH9i1FQa63axkBH+JiH9lP2cTbpC3C9Kv8Bv4G1SpC7uCNxxWIRP/DgHOXx gHXzF/xVvQMc0+ftDF8eljOS/zWGv+X1b6dzbgJ71qjTD64VYTExfvVL0YwCCRnr6ByD s8QDhBiEtXH6K2LmnPatjZE2JzieBYW3ezOyxDtzzewDt+OTVlDI4hutC6YGzoezbbv8 OhqrEqUDkytv5Gmn+ZVev9A4bqZUOd+RNML8w5eM0YHeWrKoj2/AKFCoqYJNkTJX6Q04 B6oZZagc/YaP1NM2enOkUg04wcP+3YVDy2Yq+AaMJms0iKT7Kfv5Uc3miA7RfJ94EkzS OPoA== X-Gm-Message-State: AOPr4FVX9j0fOGnJLBHpJFDwCsO/brQ4tBINGK8NgQRSZxImO4yI0fgQppUiPvfB309K4g== X-Received: by 10.157.59.3 with SMTP id z3mr128473otb.173.1462923955091; Tue, 10 May 2016 16:45:55 -0700 (PDT) Original-Received: from localhost (99-66-230-20.lightspeed.irvnca.sbcglobal.net. [99.66.230.20]) by smtp.gmail.com with ESMTPSA id ok3sm1331522obb.17.2016.05.10.16.45.53 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 10 May 2016 16:45:53 -0700 (PDT) In-Reply-To: <87futp4vrk.fsf@web.de> X-Mailer: Mew version 6.7 on Emacs 25.1.50 / Mule 6.0 (HANACHIRUSATO) X-Mailman-Approved-At: Tue, 10 May 2016 19:52:24 -0400 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:118095 Archived-At: > AFAICT technically this is only a warning (displayed with > `display-warning' and level :error). So compiling does indeed succeed I > think. > See the compiler macro defined in the defun of `add-to-list' for > internals. > Michael. Hi, I checked add-to-list fucntion in subr.el and I saw some fixme comments. Is this actually a warning? If so, should this warning return non zero status code when users specified `(setq byte-compile-error-on-warn t)`? I tried following command to compile: ---- $ emacs -Q -batch --eval '(setq byte-compile-error-on-warn t)' -f batch-byte-compile ./foo.el In foo: foo.el:9:13:Error: `add-to-list' can't use lexical var `a'; use `push' or `cl-pushnew' $ echo $? 0 ---- But, it returns 0. Is this desired behavior? or a bug?