From mboxrd@z Thu Jan 1 00:00:00 1970
Path: news.gmane.org!.POSTED!not-for-mail
From: Philipp Stephani
Newsgroups: gmane.emacs.bugs
Subject: bug#24641: 26.0.50;
let-alist: Incorrect byte-compile warning about unused lexical
variable
Date: Sat, 08 Oct 2016 13:33:20 +0000
Message-ID:
References:
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary=001a1147c1409d6ff8053e5a9254
X-Trace: blaine.gmane.org 1475933679 10351 195.159.176.226 (8 Oct 2016 13:34:39 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Sat, 8 Oct 2016 13:34:39 +0000 (UTC)
To: 24641@debbugs.gnu.org
Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 08 15:34:35 2016
Return-path:
Envelope-to: geb-bug-gnu-emacs@m.gmane.org
Original-Received: from lists.gnu.org ([208.118.235.17])
by blaine.gmane.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1bsrla-000064-Sp
for geb-bug-gnu-emacs@m.gmane.org; Sat, 08 Oct 2016 15:34:19 +0200
Original-Received: from localhost ([::1]:41160 helo=lists.gnu.org)
by lists.gnu.org with esmtp (Exim 4.71)
(envelope-from )
id 1bsrlb-0001j4-1N
for geb-bug-gnu-emacs@m.gmane.org; Sat, 08 Oct 2016 09:34:19 -0400
Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37712)
by lists.gnu.org with esmtp (Exim 4.71)
(envelope-from ) id 1bsrlP-0001go-6E
for bug-gnu-emacs@gnu.org; Sat, 08 Oct 2016 09:34:08 -0400
Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
(envelope-from ) id 1bsrlK-0004gp-5X
for bug-gnu-emacs@gnu.org; Sat, 08 Oct 2016 09:34:06 -0400
Original-Received: from debbugs.gnu.org ([208.118.235.43]:42190)
by eggs.gnu.org with esmtp (Exim 4.71)
(envelope-from ) id 1bsrlK-0004gg-1Z
for bug-gnu-emacs@gnu.org; Sat, 08 Oct 2016 09:34:02 -0400
Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
(envelope-from ) id 1bsrlJ-0000rA-U3
for bug-gnu-emacs@gnu.org; Sat, 08 Oct 2016 09:34:01 -0400
X-Loop: help-debbugs@gnu.org
Resent-From: Philipp Stephani
Original-Sender: "Debbugs-submit"
Resent-CC: bug-gnu-emacs@gnu.org
Resent-Date: Sat, 08 Oct 2016 13:34:01 +0000
Resent-Message-ID:
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: followup 24641
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: confirmed
Original-Received: via spool by 24641-submit@debbugs.gnu.org id=B24641.14759336203262
(code B ref 24641); Sat, 08 Oct 2016 13:34:01 +0000
Original-Received: (at 24641) by debbugs.gnu.org; 8 Oct 2016 13:33:40 +0000
Original-Received: from localhost ([127.0.0.1]:48380 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1bsrkx-0000qY-8U
for submit@debbugs.gnu.org; Sat, 08 Oct 2016 09:33:39 -0400
Original-Received: from mail-wm0-f54.google.com ([74.125.82.54]:37102)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from ) id 1bsrkv-0000qI-Bs
for 24641@debbugs.gnu.org; Sat, 08 Oct 2016 09:33:37 -0400
Original-Received: by mail-wm0-f54.google.com with SMTP id b201so90958856wmb.0
for <24641@debbugs.gnu.org>; Sat, 08 Oct 2016 06:33:37 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
h=mime-version:references:in-reply-to:from:date:message-id:subject:to;
bh=/1AnQijvqRAq/fvkP7Lj9toElAAl3YdC5clAx922m1w=;
b=Mgt0c0+fIGGO78yqhSa7+S1/lqIZ9QVL+niVpdRBixFh0ugfN4iWB1RfUqr3gD5Wv7
gqZa+leZD5Btx2LD2+B6++7tJNvx+SqShNbvOP6SrI+CzruDM698KkrVuAIlKKWsr5eH
lwjiT3Ph/Uke5lAJwSQTi9QODZoZhCXA/15I5HP+S4CiPSsnhOyBAQFs3wIrFWh05uYD
zOx6DIr5iCjb6Wzf0vQgTXNPtzmoUcnCuAbtje1pFgG2Y7VftXCdg0+8QPxjVp+4e2Rn
zhj7s8xw5JhVv7MmNHGHR+sf+Fyem+CX9Vc5dVlbShjnIRYNy/gkc57hZW8w6qx/KF2b
ezkQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20130820;
h=x-gm-message-state:mime-version:references:in-reply-to:from:date
:message-id:subject:to;
bh=/1AnQijvqRAq/fvkP7Lj9toElAAl3YdC5clAx922m1w=;
b=SdctFDczJ4ZPILZEUmJ0zImNNx8nYjMfMuproslmovKbifLQ46LseOf8IX3nc7doxW
kNkAWG8XcUiO7wq+wiSs+/gIAh2zhZzUsAOIaGcfQWHPG3UrY4e1HaajUKlixUu2PCsY
0rcex+FA5kj4B9HkxGi9thGuM+VO92L/FpH7ACb5ERXH2b3Tvo0URW8St5bs0d3URiTi
b04DvYqemvJSB/L7waEtlNjMbOzDBu4BBfGzt6XSG1U5iSElIf6YxkeJpECeYRBPPUrE
9HN6xrdwhyUa1XDCW3CyA6ePfIuOYg/3WBoY8B15JzhhU7hBsT8Pub4ZjKBJxXyUfyhj
GHTA==
X-Gm-Message-State: AA6/9Rmlxm1Pf2DGb1vELM6cljHnlYgEou/gyECemMJO4sS4SwiApl9d6WnsjT1taOaluYlkDeAqpuvc70LyXA==
X-Received: by 10.28.230.88 with SMTP id d85mr3176235wmh.52.1475933611314;
Sat, 08 Oct 2016 06:33:31 -0700 (PDT)
In-Reply-To:
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 208.118.235.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"
Xref: news.gmane.org gmane.emacs.bugs:124204
Archived-At:
--001a1147c1409d6ff8053e5a9254
Content-Type: multipart/alternative; boundary=001a1147c1409d6ff3053e5a9252
--001a1147c1409d6ff3053e5a9252
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Philipp schrieb am Sa., 8. Okt. 2016 um 14:48 Uhr:
>
>
> $ cat /tmp/letalist.el
>
> ;; -*- lexical-binding: t; -*-
>
> (print
>
> (let-alist '((outer . ((inner . value))))
>
> (let-alist .outer .inner)))
>
>
>
> $ emacs -Q -batch -f batch-byte-compile /tmp/letalist.el
>
>
>
> In toplevel form:
>
> /tmp/letalist.el:2:1:Warning: Unused lexical variable =E2=80=98\.inner=E2=
=80=99
>
>
>
> This warning is incorrect because '.inner' is used in the inner
>
> let-alist form.
>
>
>
>
I've attached a patch.
--001a1147c1409d6ff3053e5a9252
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
$ cat /tmp/letalist.el
;; -*- lexical-binding: t; -*-
(print
=C2=A0(let-alist '((outer . ((inner=
. value))))
=C2=A0 =C2=A0(let-alist .outer .inn=
er)))
$ emacs -Q -ba=
tch -f batch-byte-compile /tmp/letalist.el
In toplevel form:
/tmp/le=
talist.el:2:1:Warning: Unused lexical variable =E2=80=98\.inner=E2=80=99
This warning is incorr=
ect because '.inner' is used in the inner
let-alist form.
=
blockquote>
I've attached a patch.=C2=A0
=
--001a1147c1409d6ff3053e5a9252--
--001a1147c1409d6ff8053e5a9254
Content-Type: text/plain; charset=US-ASCII;
name="0001-Don-t-consider-nested-let-alist-forms.txt"
Content-Disposition: attachment;
filename="0001-Don-t-consider-nested-let-alist-forms.txt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