From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Engster Newsgroups: gmane.emacs.bugs Subject: bug#8518: 24.0.50; 'byte-compile-error-on-warn' no effect on 'defvar ignored because X is let-bound' warning Date: Mon, 18 Apr 2011 11:22:40 +0200 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1303119896 4748 80.91.229.12 (18 Apr 2011 09:44:56 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 18 Apr 2011 09:44:56 +0000 (UTC) To: 8518@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Apr 18 11:44:48 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QBl0i-00062O-Lz for geb-bug-gnu-emacs@m.gmane.org; Mon, 18 Apr 2011 11:44:48 +0200 Original-Received: from localhost ([::1]:39274 helo=lists2.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QBl0h-0008JM-Pd for geb-bug-gnu-emacs@m.gmane.org; Mon, 18 Apr 2011 05:44:47 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:47536) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QBl0b-0008HO-E2 for bug-gnu-emacs@gnu.org; Mon, 18 Apr 2011 05:44:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QBl0X-0008E2-Ik for bug-gnu-emacs@gnu.org; Mon, 18 Apr 2011 05:44:41 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34136) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QBl0W-0008DI-PV for bug-gnu-emacs@gnu.org; Mon, 18 Apr 2011 05:44:37 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QBkgc-0002sZ-T3; Mon, 18 Apr 2011 05:24:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: David Engster Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 18 Apr 2011 09:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 8518 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.130311859910995 (code B ref -1); Mon, 18 Apr 2011 09:24:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 18 Apr 2011 09:23:19 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QBkfr-0002rF-7z for submit@debbugs.gnu.org; Mon, 18 Apr 2011 05:23:19 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QBkfo-0002r3-8o for submit@debbugs.gnu.org; Mon, 18 Apr 2011 05:23:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QBkff-0004yQ-A5 for submit@debbugs.gnu.org; Mon, 18 Apr 2011 05:23:07 -0400 Original-Received: from lists.gnu.org ([140.186.70.17]:45224) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QBkff-0004yL-8U for submit@debbugs.gnu.org; Mon, 18 Apr 2011 05:23:03 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:42299) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QBkfb-0005h9-Em for bug-gnu-emacs@gnu.org; Mon, 18 Apr 2011 05:23:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QBkfX-0004xx-GX for bug-gnu-emacs@gnu.org; Mon, 18 Apr 2011 05:22:59 -0400 Original-Received: from v3-1008.vxen.de ([79.140.41.8]:56727) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QBkfX-0004xT-7D for bug-gnu-emacs@gnu.org; Mon, 18 Apr 2011 05:22:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=randomsample.de; s=a; h=Content-Type:MIME-Version:Message-ID:Date:Subject:To:From; bh=fq+/3h7eaRy3bDGvDg2x8NtNLm5YXmIhKNblBfzkGNo=; b=T45A9tmoLCTElqhFfmfILeJIkT7P/htZjB8rNsZZYy1X+Ior/n1mVV6TvyfelEzO8uwPnP8NPx5ZwxcxbPcbemQ+QfDzkteAatF5r+kZHsGb2gEPDO2dM2Dr0NsSBrO6; Original-Received: from [134.76.4.230] (helo=imac.local) by v3-1008.vxen.de with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1QBkfP-0004xi-1D for bug-gnu-emacs@gnu.org; Mon, 18 Apr 2011 11:22:47 +0200 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 18 Apr 2011 05:24:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:45856 Archived-At: Here's the recipe: * Create files --- test.el ---- (eval-when-compile (let ((test-something nil)) (require 'test2))) ---------------- --- test2.el ---- (defvar test-something t) (provide 'test2) ----------------- * Now byte-compile the first file with emacs --batch -L . --eval "(setq byte-compile-error-on-warn t)" -f batch-byte-compile test.el Output will be: Warning: defvar ignored because test-something is let-bound Wrote /home/user/test.elc with an exit code 0. * Expected behavior: batch-byte-compile should return the warning as an error with exit code >0. This was tested with Emacs bzr revno. 103887. -David