From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Matthew Fidler Newsgroups: gmane.emacs.bugs Subject: bug#18014: 24.3; Unused Lexical argument warning, when argument is used in a function... Date: Mon, 14 Jul 2014 11:01:12 -0500 Message-ID: References: <83tx6k80aj.fsf@gnu.org> <83oaws7yaq.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7bdc166c72cb5504fe2966a6 X-Trace: ger.gmane.org 1405353867 18858 80.91.229.3 (14 Jul 2014 16:04:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 14 Jul 2014 16:04:27 +0000 (UTC) Cc: 18014@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 14 18:04:22 2014 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 1X6ijl-0000Vu-6e for geb-bug-gnu-emacs@m.gmane.org; Mon, 14 Jul 2014 18:04:21 +0200 Original-Received: from localhost ([::1]:58746 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X6ijk-0004VT-Pw for geb-bug-gnu-emacs@m.gmane.org; Mon, 14 Jul 2014 12:04:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38496) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X6ihc-000131-3e for bug-gnu-emacs@gnu.org; Mon, 14 Jul 2014 12:02:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X6ihX-0001J0-89 for bug-gnu-emacs@gnu.org; Mon, 14 Jul 2014 12:02:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59569) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X6ihX-0001Ij-5o for bug-gnu-emacs@gnu.org; Mon, 14 Jul 2014 12:02:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1X6ihW-00007q-Sm for bug-gnu-emacs@gnu.org; Mon, 14 Jul 2014 12:02:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Matthew Fidler Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 14 Jul 2014 16:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18014 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 18014-submit@debbugs.gnu.org id=B18014.1405353682404 (code B ref 18014); Mon, 14 Jul 2014 16:02:02 +0000 Original-Received: (at 18014) by debbugs.gnu.org; 14 Jul 2014 16:01:22 +0000 Original-Received: from localhost ([127.0.0.1]:54831 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X6igr-00006P-2z for submit@debbugs.gnu.org; Mon, 14 Jul 2014 12:01:21 -0400 Original-Received: from mail-ig0-f172.google.com ([209.85.213.172]:40877) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X6igo-0008Ux-DU for 18014@debbugs.gnu.org; Mon, 14 Jul 2014 12:01:19 -0400 Original-Received: by mail-ig0-f172.google.com with SMTP id h15so1882879igd.17 for <18014@debbugs.gnu.org>; Mon, 14 Jul 2014 09:01:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Jl2PBrjZnD2lVN+pkX7zKsp4qXXWM0Hq4+E/Lnnkkis=; b=v3Ty/rPqUPQyEJALDgZ/PNmgmVFxJKIiKatTxp+GLgupMfnIbrbEv3A7eI2XFWJfQE WcDDVYFAZ2rTU/vw3+PrdvReaDcuQOpW69D6HCZmffqkGB0sdm3PYHKDwyMEax0115os 6BKBrA8MZsUuEJyy5jv2BYHWevke/pGhhLVZXLh3u0ludNjJcYMhXmfND/AjrtwAUXEm iI2hWxNJzp9OQTD4yKM0K799CNihJyihIaFyxPHgo68vI6RKSQjk5nG0/yceWANnxXap QspuEh/eUl/6ujOeWwi2WrKUaxIwmNjAa7Oh4O8r9sA50qe9QEAGT+4jpwhCz4Ts24xM DAEA== X-Received: by 10.50.6.51 with SMTP id x19mr26249986igx.47.1405353672753; Mon, 14 Jul 2014 09:01:12 -0700 (PDT) Original-Received: by 10.64.98.97 with HTTP; Mon, 14 Jul 2014 09:01:12 -0700 (PDT) Original-Received: by 10.64.98.97 with HTTP; Mon, 14 Jul 2014 09:01:12 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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:91542 Archived-At: --047d7bdc166c72cb5504fe2966a6 Content-Type: text/plain; charset=UTF-8 You probably downloaded the version with lexical binding disabled. Sorry, I should have linked to the version with lexical binding enabled. On Jul 14, 2014 10:47 AM, "Matthew Fidler" wrote: > Also 24.3 does not exit when the warning occurs (which is another bug, > actually) > > > On Mon, Jul 14, 2014 at 10:46 AM, Matthew Fidler > wrote: > >> Yes. I can reproduce with a fresh emacs. My build script uses a fresh >> emacs but calls it by : >> >> ~src/ergoemacs-mode $ make >> emacs -Q --batch -L . --eval \ >> "(progn \ >> (setq byte-compile-error-on-warn t) \ >> (batch-byte-compile))" *.el >> Wrote e:/EmacsPortable.App/Data/src/ergoemacs-mode/ergoemacs-advices.elc >> Wrote e:/EmacsPortable.App/Data/src/ergoemacs-mode/ergoemacs-extras.elc >> Wrote e:/EmacsPortable.App/Data/src/ergoemacs-mode/ergoemacs-functions.elc >> Wrote e:/EmacsPortable.App/Data/src/ergoemacs-mode/ergoemacs-layouts.elc >> Wrote e:/EmacsPortable.App/Data/src/ergoemacs-mode/ergoemacs-macros.elc >> Wrote e:/EmacsPortable.App/Data/src/ergoemacs-mode/ergoemacs-menus.elc >> Wrote e:/EmacsPortable.App/Data/src/ergoemacs-mode/ergoemacs-modal.elc >> Wrote e:/EmacsPortable.App/Data/src/ergoemacs-mode/ergoemacs-mode.elc >> Wrote e:/EmacsPortable.App/Data/src/ergoemacs-mode/ergoemacs-shortcuts.elc >> Wrote e:/EmacsPortable.App/Data/src/ergoemacs-mode/ergoemacs-test.elc >> Wrote >> e:/EmacsPortable.App/Data/src/ergoemacs-mode/ergoemacs-theme-engine.elc >> Wrote e:/EmacsPortable.App/Data/src/ergoemacs-mode/ergoemacs-themes.elc >> Wrote e:/EmacsPortable.App/Data/src/ergoemacs-mode/ergoemacs-track.elc >> In toplevel form: >> >> ergoemacs-translate.el:695:1:Warning: Unused lexical argument `key' >> Wrote >> e:/EmacsPortable.App/Data/src/ergoemacs-mode/ergoemacs-translate.elc >> Wrote e:/EmacsPortable.App/Data/src/ergoemacs-mode/ergoemacs-unbind.elc >> ~src/ergoemacs-mode $ >> >> It also errors on 24.3: >> >> https://travis-ci.org/ergoemacs/ergoemacs-mode/jobs/29898482 >> >> >> And also errors on the 24.4 trunk (in ubuntu, I believe): >> >> https://travis-ci.org/ergoemacs/ergoemacs-mode/jobs/29898483 >> >> >> >> >> On Mon, Jul 14, 2014 at 10:30 AM, Eli Zaretskii wrote: >> >>> > Date: Mon, 14 Jul 2014 09:57:38 -0500 >>> > From: Matthew Fidler >>> > >>> > Its the beginning of the function in the bug report. >>> > >>> > >>> https://github.com/ergoemacs/ergoemacs-mode/blob/7a30c03b59eab2b720c16f6cd8099c499fec1cc2/ergoemacs-translate.el#L695 >>> >>> Then I cannot reproduce this, neither with Emacs 24.3 nor with the >>> latest pretest 24.3.92. I downloaded ergoemacs-translate.el and >>> ergoemacs-macros.el from that repository, and I get a clean compile. >>> >>> Did you try this in a fresh Emacs, e.g. "emacs -batch -f >>> batch-byte-compile"? >>> >> >> > --047d7bdc166c72cb5504fe2966a6 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

You probably downloaded the version with lexical binding dis= abled.

Sorry, I should have linked to the version with lexical bind= ing enabled.

On Jul 14, 2014 10:47 AM, "Matthew Fidler&q= uot; <matthew.fidler@gmail.c= om> wrote:
Also 24.3 does not exit when the warning occurs (which is = another bug, actually)


On Mon, Jul 14, 2014 at 10:46 AM, Matthew Fidler <= matthew.fidler@gmail.com> wrote:
Yes.=C2=A0 I can repro= duce with a fresh emacs.=C2=A0 My build script uses a fresh emacs but calls= it by :
=C2=A0
~src/ergoemacs-mode $ make
emacs -Q --batch -L . = --eval=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 \
=C2=A0=C2=A0=C2=A0=C2=A0 "(progn=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 \
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (setq byte-compile-error-on-warn t)=C2= =A0 \
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (batch-byte-compile))" *= .el
Wrote e:/EmacsPortable.App/Data/src/ergoemacs-mode/ergoemacs-advices= .elc
Wrote e:/EmacsPortable.App/Data/src/ergoemacs-mode/ergoemacs-extras= .elc
Wrote e:/EmacsPortable.App/Data/src/ergoemacs-mode/ergoemacs-functions.elc<= br>Wrote e:/EmacsPortable.App/Data/src/ergoemacs-mode/ergoemacs-layouts.elc=
Wrote e:/EmacsPortable.App/Data/src/ergoemacs-mode/ergoemacs-macros.elc=
Wrote e:/EmacsPortable.App/Data/src/ergoemacs-mode/ergoemacs-menus.elc
W= rote e:/EmacsPortable.App/Data/src/ergoemacs-mode/ergoemacs-modal.elc
Wr= ote e:/EmacsPortable.App/Data/src/ergoemacs-mode/ergoemacs-mode.elc
Wrote e:/EmacsPortable.App/Data/src/ergoemacs-mode/ergoemacs-shortcuts.elc<= br>Wrote e:/EmacsPortable.App/Data/src/ergoemacs-mode/ergoemacs-test.elcWrote e:/EmacsPortable.App/Data/src/ergoemacs-mode/ergoemacs-theme-engine.= elc
Wrote e:/EmacsPortable.App/Data/src/ergoemacs-mode/ergoemacs-themes.elc
= Wrote e:/EmacsPortable.App/Data/src/ergoemacs-mode/ergoemacs-track.elc
In toplevel form:

ergoemacs-translate.el:695:1:Warning: Unuse= d lexical argument `key'
Wrote e:/EmacsPortable.App/Data/src/ergoemacs-mode/ergoemacs-translate.elc<= br>Wrote e:/EmacsPortable.App/Data/src/ergoemacs-mode/ergoemacs-unbind.elc<= br>~src/ergoemacs-mode $
=C2=A0
It also errors on 24.3= :=C2=A0


=C2=A0
And =C2=A0also errors on the 24.4 trunk (in ubuntu, I= believe):
=C2=A0
=C2=A0
=C2=A0


On Mon, Jul 14, 2014 at 10:30 AM, Eli = Zaretskii <eliz@gnu.org> wrote:
> Date: Mon, 14 Jul 2014 09:57:38 -0500 > From: Matthew Fidler <matthew.fidler@gmail.com>
>
Then I cannot reproduce this, neither with Emacs 24.3 nor with the latest pretest 24.3.92. =C2=A0I downloaded ergoemacs-translate.el and
ergoemacs-macros.el from that repository, and I get a clean compile.

Did you try this in a fresh Emacs, e.g. "emacs -batch -f batch-byte-co= mpile"?


--047d7bdc166c72cb5504fe2966a6--