GNU bug report logs - #28725
26.0.60; Error when using Edebug on a generator

Previous Next

Package: emacs;

Reported by: Gemini Lasswell <gazally <at> runbox.com>

Date: Fri, 6 Oct 2017 19:21:01 UTC

Severity: normal

Tags: confirmed

Merged with 40434

Found in versions 26.0.60, 27.0.90

Full log


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

From: Gemini Lasswell <gazally <at> runbox.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 26.0.60; Error when using Edebug on a generator
Date: Fri, 06 Oct 2017 12:19:44 -0700
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))





This bug report was last modified 4 years and 262 days ago.

Previous Next


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