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:47:10 -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=001a1134cf1e434fb204fe2934e2 X-Trace: ger.gmane.org 1405352901 5253 80.91.229.3 (14 Jul 2014 15:48:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 14 Jul 2014 15:48:21 +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:48:15 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 1X6iUA-0006te-SO for geb-bug-gnu-emacs@m.gmane.org; Mon, 14 Jul 2014 17:48:15 +0200 Original-Received: from localhost ([::1]:58497 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X6iUA-0004qJ-HP for geb-bug-gnu-emacs@m.gmane.org; Mon, 14 Jul 2014 11:48:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57079) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X6iU2-0004k0-QS for bug-gnu-emacs@gnu.org; Mon, 14 Jul 2014 11:48:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X6iTy-0001ho-Aw for bug-gnu-emacs@gnu.org; Mon, 14 Jul 2014 11:48:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59552) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X6iTy-0001hf-5Y for bug-gnu-emacs@gnu.org; Mon, 14 Jul 2014 11:48:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1X6iTx-000708-N1 for bug-gnu-emacs@gnu.org; Mon, 14 Jul 2014 11:48:01 -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:48:01 +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.140535284526859 (code B ref 18014); Mon, 14 Jul 2014 15:48:01 +0000 Original-Received: (at 18014) by debbugs.gnu.org; 14 Jul 2014 15:47:25 +0000 Original-Received: from localhost ([127.0.0.1]:54818 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X6iTJ-0006z1-BZ for submit@debbugs.gnu.org; Mon, 14 Jul 2014 11:47:25 -0400 Original-Received: from mail-ig0-f179.google.com ([209.85.213.179]:62759) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X6iTE-0006yl-EC for 18014@debbugs.gnu.org; Mon, 14 Jul 2014 11:47:20 -0400 Original-Received: by mail-ig0-f179.google.com with SMTP id h18so1873193igc.6 for <18014@debbugs.gnu.org>; Mon, 14 Jul 2014 08:47:10 -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=cTSo+y5h7gljbozhaz7OyYhiN2l9p382F39GbuZvWt0=; b=URaHz6cVcQHc2BXRzNFIEMhZ8VCWX8WwAYIyuOQJrMRKJNyJkV8B0Jb83DuvAABCUV NH8rmEjzz9vj2urPfRsr1W90gCN14MVpit1je9wfFYZGN4lQB9SvLtbbAo8sMwj0fk9W q6vaFVI1pBrzckIW/W0JvPVs4avgLiEBV2flgTVpNqKrs/27ifyIc8MObqyxENNzqUb3 r6HLDPXfJRTmg/MdjWSxylO9IPASgU42LALoeZEKqk2C3ea/67vC9BikmkcwGIBGroEv bIo6w78vh4OJrzqQukdgWewt4GXIdc4LyEMOHhINjButiKuosi6Bf0a8UYPi4TckvuWp vkNA== X-Received: by 10.51.16.197 with SMTP id fy5mr26125834igd.47.1405352830774; Mon, 14 Jul 2014 08:47:10 -0700 (PDT) Original-Received: by 10.64.98.97 with HTTP; Mon, 14 Jul 2014 08:47:10 -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:91540 Archived-At: --001a1134cf1e434fb204fe2934e2 Content-Type: text/plain; charset=UTF-8 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"? >> > > --001a1134cf1e434fb204fe2934e2 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
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:War= ning: Unused 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"?


--001a1134cf1e434fb204fe2934e2--