GNU bug report logs - #56416
29.0.50; cl-loop cl-psetq problem

Previous Next

Package: emacs;

Reported by: Sean Whitton <spwhitton <at> spwhitton.name>

Date: Wed, 6 Jul 2022 05:02:01 UTC

Severity: normal

Tags: confirmed

Merged with 6583

Found in versions 23.2, 24.5, 25.0.94, 29.0.50

Full log


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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Sean Whitton <spwhitton <at> spwhitton.name>
Cc: Mattias EngdegÄrd <mattiase <at> acm.org>,
 56416 <at> debbugs.gnu.org
Subject: Re: bug#56416: 29.0.50; cl-loop cl-psetq problem
Date: Wed, 06 Jul 2022 13:41:40 +0200
Sean Whitton <spwhitton <at> spwhitton.name> writes:

> Evaluating
>
> (cl-loop with list = '(1 2 3 4)
>
> 	 for l in list
> 	 for x = l and y = l
>
> 	 collect x)
>
> yields (1 1 2 3) but it should yield (1 2 3 4).

It's the `and' that's triggering this bug, I guess?

I seem to vaguely recall Mattias doing something about these corner
cases -- I may totally misremember, but I've added him to the CCs
anyway; perhaps he has a comment.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 2 years and 342 days ago.

Previous Next


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