GNU bug report logs - #33890
27.0.50; Incorrect behaviour of cl-loop macro

Previous Next

Package: emacs;

Reported by: Quek Yu Han <qythium <at> gmail.com>

Date: Thu, 27 Dec 2018 17:37:01 UTC

Severity: normal

Tags: confirmed, fixed

Merged with 32506

Found in version 27.0.50

Fixed in version 27.0.90

Done: Noam Postavsky <npostavs <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


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

From: Noam Postavsky <npostavs <at> gmail.com>
To: Helmut Eller <eller.helmut <at> gmail.com>
Cc: 32506 <at> debbugs.gnu.org
Subject: Re: bug#32506: 27.0.50; loop regression
Date: Wed, 29 Apr 2020 14:27:24 -0400
tags 32506 fixed
close 32506 27.0.90
quit

Helmut Eller <eller.helmut <at> gmail.com> 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




This bug report was last modified 5 years and 17 days ago.

Previous Next


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