unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#32506: 27.0.50; loop regression
@ 2018-08-23  7:17 Helmut Eller
  2018-08-27 21:30 ` Glenn Morris
  2020-04-29 18:27 ` Noam Postavsky
  0 siblings, 2 replies; 3+ messages in thread
From: Helmut Eller @ 2018-08-23  7:17 UTC (permalink / raw)
  To: 32506

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).



In GNU Emacs 27.0.50 (build 7, x86_64-pc-linux-gnu, GTK+ Version 3.22.11)
 of 2018-08-23 built on caladan
Repository revision: a4a3c92e9de59bd0251f36326375cce898919edc
Windowing system distributor 'The X.Org Foundation', version 11.0.11902000
System Description: Debian GNU/Linux 9 (stretch)

Configured using:
 'configure --with-xpm=no --with-gif=no --with-tiff=no --with-jpeg=no
 --without-pop'

Configured features:
PNG SOUND DBUS GSETTINGS NOTIFY GNUTLS LIBXML2 FREETYPE XFT ZLIB
TOOLKIT_SCROLL_BARS GTK3 X11 THREADS LIBSYSTEMD GMP

Important settings:
  value of $LANG: C.UTF-8
  locale-coding-system: utf-8-unix





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#32506: 27.0.50; loop regression
  2018-08-23  7:17 bug#32506: 27.0.50; loop regression Helmut Eller
@ 2018-08-27 21:30 ` Glenn Morris
  2020-04-29 18:27 ` Noam Postavsky
  1 sibling, 0 replies; 3+ messages in thread
From: Glenn Morris @ 2018-08-27 21:30 UTC (permalink / raw)
  To: Helmut Eller; +Cc: 32506, tino.calancha

Helmut Eller wrote:

> 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).
[...]
> In GNU Emacs 27.0.50 (build 7, x86_64-pc-linux-gnu, GTK+ Version 3.22.11)
>  of 2018-08-23 built on caladan
> Repository revision: a4a3c92e9de59bd0251f36326375cce898919edc

Bisects to a0365437c9ee308ad7978e436631020f513b25e7 (bug#29799).
"cl-loop: Add missing guard condition"





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#32506: 27.0.50; loop regression
  2018-08-23  7:17 bug#32506: 27.0.50; loop regression Helmut Eller
  2018-08-27 21:30 ` Glenn Morris
@ 2020-04-29 18:27 ` Noam Postavsky
  1 sibling, 0 replies; 3+ messages in thread
From: Noam Postavsky @ 2020-04-29 18:27 UTC (permalink / raw)
  To: Helmut Eller; +Cc: 32506

tags 32506 fixed
close 32506 27.0.90
quit

Helmut Eller <eller.helmut@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





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-04-29 18:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-23  7:17 bug#32506: 27.0.50; loop regression Helmut Eller
2018-08-27 21:30 ` Glenn Morris
2020-04-29 18:27 ` Noam Postavsky

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).