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 10:46:08 -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=001a1134cf1e89989804fe293040 X-Trace: ger.gmane.org 1405352843 4470 80.91.229.3 (14 Jul 2014 15:47:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 14 Jul 2014 15:47:23 +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 17:47:17 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 1X6iTE-0006Eg-0k for geb-bug-gnu-emacs@m.gmane.org; Mon, 14 Jul 2014 17:47:16 +0200 Original-Received: from localhost ([::1]:58489 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X6iTD-0003lu-Kt for geb-bug-gnu-emacs@m.gmane.org; Mon, 14 Jul 2014 11:47:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55897) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X6iT5-0003fZ-KT for bug-gnu-emacs@gnu.org; Mon, 14 Jul 2014 11:47:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X6iT0-0000jn-NZ for bug-gnu-emacs@gnu.org; Mon, 14 Jul 2014 11:47:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59548) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X6iT0-0000j3-LF for bug-gnu-emacs@gnu.org; Mon, 14 Jul 2014 11:47:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1X6iT0-0006yL-8m for bug-gnu-emacs@gnu.org; Mon, 14 Jul 2014 11:47:02 -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 15:47: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.140535278326745 (code B ref 18014); Mon, 14 Jul 2014 15:47:02 +0000 Original-Received: (at 18014) by debbugs.gnu.org; 14 Jul 2014 15:46:23 +0000 Original-Received: from localhost ([127.0.0.1]:54814 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X6iSJ-0006xG-DH for submit@debbugs.gnu.org; Mon, 14 Jul 2014 11:46:23 -0400 Original-Received: from mail-ie0-f179.google.com ([209.85.223.179]:58037) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X6iSD-0006vh-VE for 18014@debbugs.gnu.org; Mon, 14 Jul 2014 11:46:17 -0400 Original-Received: by mail-ie0-f179.google.com with SMTP id rl12so2099048iec.38 for <18014@debbugs.gnu.org>; Mon, 14 Jul 2014 08:46:08 -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=6V9p91Gle36D2fBr42VVMBa6Z+ABo1gqz+9ahbM/4FE=; b=lh5UGiuoh/JVgwmnYo2+o+5I5HB2rvldGt75acMAJy68D9oyaIEYlCj3z084EyTprw aI3MoO6uf56sQejo1TkzB6gtZ/41HhVkEbZeNQsxpUJl6AheC66F8YCEmAXGqXb6b0Ai aEH8z+REhfklTLr4+SAXbJERZoZoQdCKwVLzvt8ZcbZ65S8dJvUi/y2OeY2zCEhv9C8V Psv9aaVI7K+4dqepSdNRyPDSSFNkjMvP1cI4wg1eTmLvrfvmTW9/mOCj4USKaPw+nj8K Fw2HJ7DWwyxqGEaclm25yTlLj23UYpLI7CqQrVHtHuxzihkp0h7EEf7YXV3jRGVzXmzB GMXg== X-Received: by 10.51.16.197 with SMTP id fy5mr26117078igd.47.1405352768278; Mon, 14 Jul 2014 08:46:08 -0700 (PDT) Original-Received: by 10.64.98.97 with HTTP; Mon, 14 Jul 2014 08:46:08 -0700 (PDT) In-Reply-To: <83oaws7yaq.fsf@gnu.org> 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:91539 Archived-At: --001a1134cf1e89989804fe293040 Content-Type: text/plain; charset=UTF-8 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"? > --001a1134cf1e89989804fe293040 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Yes.=C2=A0 I can reproduce 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: Unused lex= ical 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 = <eli= z@gnu.org> wrote:
> Date: Mon, 14 Jul 2014 09:57:38 -0500 > From: Matthew Fidler <m= atthew.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"?

--001a1134cf1e89989804fe293040--