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


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Gemini Lasswell <gazally <at> runbox.com>
Cc: 28725 <at> debbugs.gnu.org
Subject: bug#28725: 26.0.60; Error when using Edebug on a generator
Date: Sun, 20 Oct 2019 23:45:57 +0200
Gemini Lasswell <gazally <at> runbox.com> writes:

> 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

I'm able to reproduce this bug in Emacs 27.

Does anybody know what's causing this?  It's bugging out in the
`iter-yield' call.

> ;;;  -*- 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))

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




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.