Subject: bug#32506: 27.0.50; loop regression

From: Noam Postavsky <[email-masked]>
Date: Wed, 29 Apr 2020 14:27:24 -0400

tags 32506 fixed
close 32506 27.0.90
quit

Helmut Eller <[email-masked]> writes:

> With Emacs25 this
>
> (require 'cl)
>
> (defun foo (vector)
>   (loop for i from -1
> 	for exp = 0 then (list exp e i)
> 	for e across vector
> 	finally (return exp)))
>
> (assert (equal (foo [a b]) '((0 a 0) b 1)))
>
> works as it should.  With the current Emacs version (foo [a b])
> incorrectly returns (0 a 0).

This was fixed by [1: 045cfbef09a].

[1: 045cfbef09a]: 2019-11-22 15:53:58 +0100
  Refix conditional step clauses in cl-loop
  https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=045cfbef09a67c334e4772cb045181cf2203d839