GNU bug report logs - #15326
24.3; Incorrect "variable not left unused" in destructuring cl-loop

Previous Next

Package: emacs;

Reported by: Christopher Wellons <wellons <at> nullprogram.com>

Date: Tue, 10 Sep 2013 18:27:01 UTC

Severity: minor

Found in version 24.3

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


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

From: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
To: Christopher Wellons <wellons <at> nullprogram.com>
Cc: 15326 <at> debbugs.gnu.org
Subject: Re: bug#15326: 24.3;
 Incorrect "variable not left unused" in destructuring cl-loop
Date: Tue, 10 Sep 2013 17:05:52 -0400
> In the macro expansion, the _ is declared in a `let', then later set
> with `setq', "using" it.

A `setq' does not *use* a variable.  It just sets it, affecting
later uses.  If there's no later uses, the setq is just a no-op.

Fixing this will require someone to dig into the `cl-loop' macro.


        Stefan "who suspects it's not really fixed in
                destructuring-bind either"




This bug report was last modified 11 years and 241 days ago.

Previous Next


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