GNU bug report logs - #24641
let-alist redundantly binds variables already bound by nested let-alist calls

Previous Next

Package: emacs;

Reported by: Philipp <p.stephani2 <at> gmail.com>

Date: Sat, 8 Oct 2016 12:48:01 UTC

Severity: minor

Tags: confirmed, fixed

Found in version 26.0.50

Fixed in version 26

Done: npostavs <at> users.sourceforge.net

Bug is archived. No further changes may be made.

Full log


Message #17 received at 24641 <at> debbugs.gnu.org (full text, mbox):

From: Philipp Stephani <p.stephani2 <at> gmail.com>
To: 24641 <at> debbugs.gnu.org
Subject: Re: 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 part 1 (text/plain, inline)]
Philipp <p.stephani2 <at> gmail.com> 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 ‘\.inner’
>
>
>
> This warning is incorrect because '.inner' is used in the inner
>
> let-alist form.
>
>
>
>
I've attached a patch.
[Message part 2 (text/html, inline)]
[0001-Don-t-consider-nested-let-alist-forms.txt (text/plain, attachment)]

This bug report was last modified 8 years and 172 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.