Closed rhaps0dy closed 2 years ago
Works for me:
~/iter2$ eldev eval "(iter2-defun f () (dolist (e '(1 2 3)) (iter-yield e)))" "(iter-do (k (f)) (print k))"
f
1
2
3
nil
Also works inside Emacs. Which Emacs version do you use?
I use Emacs 29.0.50, which is the master
from a few weeks ago. It works for me too now. I must have eval
ed something that made this go wrong in my old Emacs session, and I did not restart it and try again when submitting the issue.
I'm very sorry about wasting your time, I'll do better next time.
I must have evaled something that made this go wrong in my old Emacs session
That's why I prefer to use eldev
(or emacs --batch
) for reproducing bugs: you always get a fresh and standardized evaluation environment.
To reproduce, on
master
, eval:which gives error
wrong-type-argument listp $value
. Fair enough.Mysteriously, however,
macroexpand
ing the above is fine:gives no error.
I don't know how to start fixing this, since
macroexpand
works just fine.