From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#21389: bogus diagnostic about unused lexical variable in eshell/time Date: Tue, 1 Sep 2020 18:08:24 -0700 Message-ID: References: <55E4C8E1.6080304@cs.ucla.edu> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1142"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 21389-done@debbugs.gnu.org To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 02 03:09:10 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kDHGv-0000Bd-HX for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 02 Sep 2020 03:09:09 +0200 Original-Received: from localhost ([::1]:37950 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kDHGu-0006B1-Ic for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 01 Sep 2020 21:09:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42752) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kDHGo-0006Al-7W for bug-gnu-emacs@gnu.org; Tue, 01 Sep 2020 21:09:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46180) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kDHGn-0001Wz-UJ for bug-gnu-emacs@gnu.org; Tue, 01 Sep 2020 21:09:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kDHGn-0005E1-Pw for bug-gnu-emacs@gnu.org; Tue, 01 Sep 2020 21:09:01 -0400 Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Wed, 02 Sep 2020 01:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 21389 X-GNU-PR-Package: emacs Mail-Followup-To: 21389@debbugs.gnu.org, stefan@marxist.se, eggert@cs.ucla.edu Original-Received: via spool by 21389-done@debbugs.gnu.org id=D21389.159900891420042 (code D ref 21389); Wed, 02 Sep 2020 01:09:01 +0000 Original-Received: (at 21389-done) by debbugs.gnu.org; 2 Sep 2020 01:08:34 +0000 Original-Received: from localhost ([127.0.0.1]:57726 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDHGM-0005DB-3U for submit@debbugs.gnu.org; Tue, 01 Sep 2020 21:08:34 -0400 Original-Received: from mail-ed1-f48.google.com ([209.85.208.48]:38264) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDHGJ-0005Cy-Fz for 21389-done@debbugs.gnu.org; Tue, 01 Sep 2020 21:08:32 -0400 Original-Received: by mail-ed1-f48.google.com with SMTP id c8so3261438edv.5 for <21389-done@debbugs.gnu.org>; Tue, 01 Sep 2020 18:08:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:user-agent :mime-version:date:message-id:subject:to:cc :content-transfer-encoding; bh=3b9C7twpgI8WGBl2k04etQNCYMpgGjP/8Etuj+BNPpI=; b=trvNRq+o3VGqAszzzaN0p0g7apswCG0AI2SBmrP1YltI7u04NMPvgUoHsfSiQ0yobi DEja6/uDnkFVM9xEmAJ4Mto/h47smrrbZvwTJAk/YSTCV1o6LIJ14V6Z20f8pGieXl5F /TE2VWkFe0pSaP+DUyrxv+Hy29yqRi5xmqAry850fCZk6LCPQlPlqRAcn5URrq/gaYTM Tkrg/SB8aTecyDhNO/xFgPhJcsgrWgC9CckVxQIRHWnn9kHyFzPC1dMUfILaCFyVxALQ gDfSiimKKxjXfs+3OaDYoO0qvZZh3iRlPZmHEe10YmI2VHoHH5x4uUtSHL9D0TdRMpJ2 WOUQ== X-Gm-Message-State: AOAM5304K7N5UF1TuLPZSPRrMfffabJGpGgXta6fVWEs4XMB+xBS3UME H5sHpIaWbAq1C26mmhDnt3DjlENaXu0i9kAKQFk= X-Google-Smtp-Source: ABdhPJwJf4skDSx7sYrVAPpiFDe0aYuCjZfSGH7bmvu0e09fTJGrWhR5Q6WfZljk7wR6l2dFWb5lmGAe/uxb1EfTT7Y= X-Received: by 2002:a50:8524:: with SMTP id 33mr2474305edr.123.1599008905554; Tue, 01 Sep 2020 18:08:25 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Tue, 1 Sep 2020 18:08:24 -0700 In-Reply-To: <55E4C8E1.6080304@cs.ucla.edu> (Paul Eggert's message of "Mon, 31 Aug 2015 14:36:33 -0700") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:186899 Archived-At: Paul Eggert writes: > To reproduce the problem in a fresh build from Emacs master, do this: > > touch lisp/eshell/em-unix.el > make > > The output will include the following lines: > > eshell/em-unix.el:933:1:Warning: Unused lexical variable =E2=80=98args=E2= =80=99 > eshell/em-unix.el:963:1:Warning: Unused lexical argument =E2=80=98args=E2= =80=99 > > The first diagnostic is bogus. The second one is correct. Perhaps the b= yte > compiler is getting confused by the second one and the confusion is affec= ting > the first one. > > The first diagnostic is generated for code that starts off like this: > > (defun eshell/time (&rest args) > "Implementation of \"time\" in Lisp." > (let ((time-args (copy-alist args)) > ... > > so the lexical variable =E2=80=98args=E2=80=99 is being used. This seems to have been fixed on current master, so I'm closing this bug report.