From unknown Sat Jun 21 03:11:01 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#21389 <21389@debbugs.gnu.org> To: bug#21389 <21389@debbugs.gnu.org> Subject: Status: bogus diagnostic about unused lexical variable in eshell/time Reply-To: bug#21389 <21389@debbugs.gnu.org> Date: Sat, 21 Jun 2025 10:11:01 +0000 retitle 21389 bogus diagnostic about unused lexical variable in eshell/time reassign 21389 emacs submitter 21389 Paul Eggert severity 21389 minor thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 31 17:36:43 2015 Received: (at submit) by debbugs.gnu.org; 31 Aug 2015 21:36:43 +0000 Received: from localhost ([127.0.0.1]:44179 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZWWks-0008Tb-V7 for submit@debbugs.gnu.org; Mon, 31 Aug 2015 17:36:43 -0400 Received: from eggs.gnu.org ([208.118.235.92]:52083) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZWWkq-0008TS-VS for submit@debbugs.gnu.org; Mon, 31 Aug 2015 17:36:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZWWkp-0007lt-T2 for submit@debbugs.gnu.org; Mon, 31 Aug 2015 17:36:40 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:40630) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZWWkp-0007li-RB for submit@debbugs.gnu.org; Mon, 31 Aug 2015 17:36:39 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33804) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZWWkp-0000Hr-0e for bug-gnu-emacs@gnu.org; Mon, 31 Aug 2015 17:36:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZWWkk-0007hb-VB for bug-gnu-emacs@gnu.org; Mon, 31 Aug 2015 17:36:38 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:44646) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZWWkk-0007hG-Pm for bug-gnu-emacs@gnu.org; Mon, 31 Aug 2015 17:36:34 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 119CD160F25 for ; Mon, 31 Aug 2015 14:36:34 -0700 (PDT) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id OXBCZ48qVdcM for ; Mon, 31 Aug 2015 14:36:33 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 66DAA160F24 for ; Mon, 31 Aug 2015 14:36:33 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id wGXfPaiHYHb5 for ; Mon, 31 Aug 2015 14:36:33 -0700 (PDT) Received: from Penguin.CS.UCLA.EDU (Penguin.CS.UCLA.EDU [131.179.64.200]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 5149E160F20 for ; Mon, 31 Aug 2015 14:36:33 -0700 (PDT) To: Emacs bug reports From: Paul Eggert Subject: bogus diagnostic about unused lexical variable in eshell/time Organization: UCLA Computer Science Department Message-ID: <55E4C8E1.6080304@cs.ucla.edu> Date: Mon, 31 Aug 2015 14:36:33 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) 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=20 byte compiler is getting confused by the second one and the confusion is=20 affecting 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. From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 31 23:50:49 2015 Received: (at 21389) by debbugs.gnu.org; 1 Sep 2015 03:50:49 +0000 Received: from localhost ([127.0.0.1]:44554 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZWcav-0003l0-2v for submit@debbugs.gnu.org; Mon, 31 Aug 2015 23:50:49 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:45161) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZWcas-0003kr-7e for 21389@debbugs.gnu.org; Mon, 31 Aug 2015 23:50:47 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0A9FgA731xV//rn92hcDoMChAJOhQe7QIdIAwQCAoE8OxIBAQEBAQEBgQpBBYNdAQEDASMzIwULCxoCGA4CAhQYDSSINwirDKQXAQEBAQEFAQEBAR6BIYoZhQUHgmiBRQW1BCODOloigngBAQE X-IPAS-Result: A0A9FgA731xV//rn92hcDoMChAJOhQe7QIdIAwQCAoE8OxIBAQEBAQEBgQpBBYNdAQEDASMzIwULCxoCGA4CAhQYDSSINwirDKQXAQEBAQEFAQEBAR6BIYoZhQUHgmiBRQW1BCODOloigngBAQE X-IronPort-AV: E=Sophos;i="5.13,465,1427774400"; d="scan'208";a="162024128" Received: from 104-247-231-250.cpe.teksavvy.com (HELO ceviche.home) ([104.247.231.250]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 31 Aug 2015 23:50:47 -0400 Received: by ceviche.home (Postfix, from userid 20848) id E14A56615C; Mon, 31 Aug 2015 23:50:44 -0400 (EDT) From: Stefan Monnier To: Paul Eggert Subject: Re: bug#21389: bogus diagnostic about unused lexical variable in eshell/time Message-ID: References: <55E4C8E1.6080304@cs.ucla.edu> Date: Mon, 31 Aug 2015 23:50:44 -0400 In-Reply-To: <55E4C8E1.6080304@cs.ucla.edu> (Paul Eggert's message of "Mon, 31 Aug 2015 14:36:33 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 21389 Cc: 21389@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) > so the lexical variable =E2=80=98args=E2=80=99 is being used. The warning is about the `args' var introduced by the eshell-eval-using-options macro, whose body looks like: `(let* (... (args processed-args)) ,@body-forms)) -- Stefan From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 01 21:08:34 2020 Received: (at 21389-done) by debbugs.gnu.org; 2 Sep 2020 01:08:34 +0000 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 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 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) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Tue, 1 Sep 2020 18:08:24 -0700 From: Stefan Kangas In-Reply-To: <55E4C8E1.6080304@cs.ucla.edu> (Paul Eggert's message of "Mon, 31 Aug 2015 14:36:33 -0700") References: <55E4C8E1.6080304@cs.ucla.edu> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Date: Tue, 1 Sep 2020 18:08:24 -0700 Message-ID: Subject: Re: bug#21389: bogus diagnostic about unused lexical variable in eshell/time To: Paul Eggert Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 21389-done Cc: 21389-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) 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. From unknown Sat Jun 21 03:11:01 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 30 Sep 2020 11:24:08 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator