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: Fwd: bug#18014: 24.3; Unused Lexical argument warning, when argument is used in a function... Date: Mon, 14 Jul 2014 09:58:16 -0500 Message-ID: References: <83tx6k80aj.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=bcaec517a8f657c05604fe2885a4 X-Trace: ger.gmane.org 1405349965 32203 80.91.229.3 (14 Jul 2014 14:59:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 14 Jul 2014 14:59:25 +0000 (UTC) To: 18014@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 14 16:59: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 1X6hil-0008Jt-HZ for geb-bug-gnu-emacs@m.gmane.org; Mon, 14 Jul 2014 16:59:15 +0200 Original-Received: from localhost ([::1]:58273 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X6hil-0006Mc-8p for geb-bug-gnu-emacs@m.gmane.org; Mon, 14 Jul 2014 10:59:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41417) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X6hid-0006Lu-GP for bug-gnu-emacs@gnu.org; Mon, 14 Jul 2014 10:59:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X6hiY-0001cQ-Fe for bug-gnu-emacs@gnu.org; Mon, 14 Jul 2014 10:59:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59515) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X6hiY-0001c1-Bg for bug-gnu-emacs@gnu.org; Mon, 14 Jul 2014 10:59:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1X6hiX-0004WW-Su for bug-gnu-emacs@gnu.org; Mon, 14 Jul 2014 10:59: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 14:59: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.140534991117344 (code B ref 18014); Mon, 14 Jul 2014 14:59:01 +0000 Original-Received: (at 18014) by debbugs.gnu.org; 14 Jul 2014 14:58:31 +0000 Original-Received: from localhost ([127.0.0.1]:54781 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X6hhz-0004Vc-NM for submit@debbugs.gnu.org; Mon, 14 Jul 2014 10:58:31 -0400 Original-Received: from mail-ig0-f178.google.com ([209.85.213.178]:37737) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X6hht-0004VM-TF for 18014@debbugs.gnu.org; Mon, 14 Jul 2014 10:58:25 -0400 Original-Received: by mail-ig0-f178.google.com with SMTP id uq10so1810630igb.17 for <18014@debbugs.gnu.org>; Mon, 14 Jul 2014 07:58:16 -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 :content-type; bh=jcpW6pwEJEi+3kgjOkbj1MTJP57hs4utIrsnD5y2Oc0=; b=At01FAxzn4t0jUHB3KKTiXl+tUG60zHJZ/avraIBLVzexAuIccu/szmtqjXFHFYhbL Bkk0T5OLnF2WZaIuzYHO04ZyfeD+IAK5rAlpo5fhbXw1yLaJVEvBOOVMJ8piwdFiVnZ+ AXhFzhqzMA97NDjK+qDAWz7huHEf1xlQE0PNt0o2GlHb15zq7lvbFzwDpPVPJ9hsU7He gbVWxvlvy/1s37smUoYuzzcUPaMZSOpqIKY+8prPBzfRhzpPsQxUwf1j/ISJkgblec8Z JPGS50sUbcbOQRIWD+i9jvtRO4LS7WWTv0qtACLYE/+ZIs4H+ti53fU55TeM8NU1Uu18 M1hw== X-Received: by 10.43.69.202 with SMTP id yd10mr22319810icb.36.1405349896108; Mon, 14 Jul 2014 07:58:16 -0700 (PDT) Original-Received: by 10.64.98.97 with HTTP; Mon, 14 Jul 2014 07:58:16 -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:91536 Archived-At: --bcaec517a8f657c05604fe2885a4 Content-Type: text/plain; charset=UTF-8 ---------- Forwarded message ---------- From: Matthew Fidler Date: Mon, Jul 14, 2014 at 9:57 AM Subject: Re: bug#18014: 24.3; Unused Lexical argument warning, when argument is used in a function... To: Eli Zaretskii Its the beginning of the function in the bug report. https://github.com/ergoemacs/ergoemacs-mode/blob/7a30c03b59eab2b720c16f6cd8099c499fec1cc2/ergoemacs-translate.el#L695 On Mon, Jul 14, 2014 at 9:47 AM, Eli Zaretskii wrote: > > Date: Mon, 14 Jul 2014 07:25:56 -0500 > > From: Matthew Fidler > > > > I'm getting a warning for ergoemacs-translate: > > > > Compiling file > > e:/EmacsPortable.App/Data/src/ergoemacs-mode/ergoemacs-translate.el at > Mon > > Jul 14 07:17:14 2014 > > ergoemacs-translate.el:695:1:Warning: Unused lexical argument `key' > > > > I do use the argument key to calculate the translation, but the compiler > > claims I am not. I'm not sure if it is a bug in the warning or a bug in > > my code. For now, I can change key to _key to ignore the warning, but I > > do think that this is an invalid warning. > > > > Here is the offending function: > > And which one is the offending line 695, please? > --bcaec517a8f657c05604fe2885a4 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


---------- Forwarded me= ssage ----------
From: Matthew Fidler = <matthew.f= idler@gmail.com>
Date: Mon, Jul 14, 2014 at 9:57 AM
Subject: Re: bug#18014: 24.3; Unused = Lexical argument warning, when argument is used in a function...
To: Eli= Zaretskii <eliz@gnu.org>




On Mon, Jul 14, 2014 at= 9:47 AM, Eli Zaretskii <eliz@gnu.org> wrote:
> Date: Mon, 14 Jul 2014 07:25:56 -0500
> From: Matthew Fidler <matthew.fidler@gmail.com>
>
> I'm getting a warning =C2=A0for ergoemacs-translate:
>
> Compiling file
> e:/EmacsPortable.App/Data/src/ergoemacs-mode/ergoemacs-translate.el at= Mon
> Jul 14 07:17:14 2014
> ergoemacs-translate.el:695:1:Warning: Unused lexical argument `key'= ;
>
> I do use the argument key to calculate the translation, but the compil= er
> claims I am not. =C2=A0I'm not sure if it is a bug in the warning = or a bug in
> my code. =C2=A0For now, I can change key to _key to ignore the warning= , but I
> do think that this is an invalid warning.
>
> Here is the offending function:

And which one is the offending line 695, please?


--bcaec517a8f657c05604fe2885a4--