unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#28725: 26.0.60; Error when using Edebug on a generator
@ 2017-10-06 19:19 Gemini Lasswell
  2017-10-27 19:35 ` bug#28725: alternative Paul Pogonyshev
  2019-10-20 21:45 ` bug#28725: 26.0.60; Error when using Edebug on a generator Lars Ingebrigtsen
  0 siblings, 2 replies; 5+ messages in thread
From: Gemini Lasswell @ 2017-10-06 19:19 UTC (permalink / raw)
  To: 28725

Running a generator under Edebug results in an error message when it
gets to iter-yield.

To reproduce, put the code below into *scratch* and:

M-x edebug-all-defs RET
M-x eval-buffer RET
M-: (my-iter-do) RET
g

Result: Symbol’s function definition is void: cps-internal-yield


;;;  -*- lexical-binding: t -*-

(iter-defun mycounter (start)
  (let* ((i start))
    (while t
      (iter-yield i)
      (setq i (1+ i)))))

(defun my-iter-do ()
  (let (results
	(tally (mycounter 10)))
    (dotimes (_ 4)
      (push (iter-next tally) results))
    results))






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

end of thread, other threads:[~2019-10-21 16:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-06 19:19 bug#28725: 26.0.60; Error when using Edebug on a generator Gemini Lasswell
2017-10-27 19:35 ` bug#28725: alternative Paul Pogonyshev
2017-10-28 21:18   ` Gemini Lasswell
2019-10-20 21:45 ` bug#28725: 26.0.60; Error when using Edebug on a generator Lars Ingebrigtsen
2019-10-21 16:29   ` Gemini Lasswell

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