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

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Gemini Lasswell <gazally@HIDDEN>; Keywords: confirmed; merged with #40434; dated Fri, 6 Oct 2017 19:21:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Forcibly Merged 28725 40434. Request was from Lars Ingebrigtsen <larsi@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 28725 <at> debbugs.gnu.org:


Received: (at 28725) by debbugs.gnu.org; 21 Oct 2019 16:29:33 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Oct 21 12:29:33 2019
Received: from localhost ([127.0.0.1]:57719 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iMaYn-0006uA-C2
	for submit <at> debbugs.gnu.org; Mon, 21 Oct 2019 12:29:33 -0400
Received: from aibo.runbox.com ([91.220.196.211]:40656)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <gazally@HIDDEN>) id 1iMaYj-0006u0-Pf
 for 28725 <at> debbugs.gnu.org; Mon, 21 Oct 2019 12:29:32 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=runbox.com; 
 s=rbselector1;
 h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:
 References:Subject:Cc:To:From;
 bh=lImFNxPW4rJPDQmU8I9PZiXX8L3EqoyPOO4CoNnMaW8=; b=NwOgwdI3i++eOTd3neHrhlkX8Q
 oyNpBXNmSXZTch3mCKrnDyCVLFENqB0zb1nac+nW+fEfyd5Lg8K6+pVqPkNC6Jabv6DCUzBdHSuKq
 0sg9mLlYg6HiDk7zNxv8INhHt2eTGRFqRzOfr/jYMCw7tTp22eXgmMmmuP6lR1RCZOyQkY2NnOC1X
 EbYAh7C5ncxHqgajv3xV0BDfJfwgSEU63jtxiYd+hvSsM8KgKz2nY4NNWaoCVp2ujOqJHqSeg9gn/
 A2LyeH7GI4VK5S1Ba7Uz0A5yqUZGdH1x3cdge22u3yXG0KRh0ys58w25jqNVzSNYA+rf1PrHQmRzT
 Wcw2DwYA==;
Received: from [10.9.9.202] (helo=mailfront20.runbox)
 by mailtransmit02.runbox with esmtp (Exim 4.86_2)
 (envelope-from <gazally@HIDDEN>)
 id 1iMaYh-0007Wg-D2; Mon, 21 Oct 2019 18:29:27 +0200
Received: by mailfront20.runbox with esmtpsa [Authenticated alias (696087)]
 (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1)
 id 1iMaYM-0000q7-IJ; Mon, 21 Oct 2019 18:29:07 +0200
From: Gemini Lasswell <gazally@HIDDEN>
To: Lars Ingebrigtsen <larsi@HIDDEN>
Subject: Re: bug#28725: 26.0.60; Error when using Edebug on a generator
References: <87mv54f5in.fsf@HIDDEN> <87mudvccq2.fsf@HIDDEN>
Date: Mon, 21 Oct 2019 09:29:04 -0700
In-Reply-To: <87mudvccq2.fsf@HIDDEN> (Lars Ingebrigtsen's message of "Sun,
 20 Oct 2019 23:45:57 +0200")
Message-ID: <87y2xeawq7.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 28725
Cc: 28725 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Lars Ingebrigtsen <larsi@HIDDEN> writes:

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

I took a look and I think the problem is that cps--transform-1 doesn't
look inside lambda forms.  When Edebug instruments a function, it wraps
the body of the function in a lambda form.

Here's a code sample to reproduce the bug with just eval-buffer, no
Edebug necessary:

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

(require 'generator)

(iter-defun mycounter (start)
  (let ((i 0)
	(offset-yield-func (lambda (x) (iter-yield (+ x start)))))
    (while t
      (funcall offset-yield-func i)
      (setq i (1+ i)))))

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

(my-iter-do)





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#28725; Package emacs. Full text available.
Added tag(s) confirmed. Request was from Lars Ingebrigtsen <larsi@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 28725 <at> debbugs.gnu.org:


Received: (at 28725) by debbugs.gnu.org; 20 Oct 2019 21:46:05 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Oct 20 17:46:05 2019
Received: from localhost ([127.0.0.1]:55402 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iMJ1W-0000oU-D0
	for submit <at> debbugs.gnu.org; Sun, 20 Oct 2019 17:46:05 -0400
Received: from quimby.gnus.org ([80.91.231.51]:56790)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1iMJ1U-0000m2-Hp
 for 28725 <at> debbugs.gnu.org; Sun, 20 Oct 2019 17:46:01 -0400
Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie)
 by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.89) (envelope-from <larsi@HIDDEN>)
 id 1iMJ1R-00081O-Cv; Sun, 20 Oct 2019 23:45:59 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Gemini Lasswell <gazally@HIDDEN>
Subject: Re: bug#28725: 26.0.60; Error when using Edebug on a generator
References: <87mv54f5in.fsf@HIDDEN>
Date: Sun, 20 Oct 2019 23:45:57 +0200
In-Reply-To: <87mv54f5in.fsf@HIDDEN> (Gemini Lasswell's message of "Fri,
 06 Oct 2017 12:19:44 -0700")
Message-ID: <87mudvccq2.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview: Gemini Lasswell <gazally@HIDDEN> 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 [...] 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 28725
Cc: 28725 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Gemini Lasswell <gazally@HIDDEN> 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=E2=80=99s 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))

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




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#28725; Package emacs. Full text available.

Message received at 28725 <at> debbugs.gnu.org:


Received: (at 28725) by debbugs.gnu.org; 28 Oct 2017 21:19:10 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Oct 28 17:19:10 2017
Received: from localhost ([127.0.0.1]:39524 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1e8YVa-0007T9-LD
	for submit <at> debbugs.gnu.org; Sat, 28 Oct 2017 17:19:10 -0400
Received: from aibo.runbox.com ([91.220.196.211]:37136)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <gazally@HIDDEN>) id 1e8YVY-0007T1-QY
 for 28725 <at> debbugs.gnu.org; Sat, 28 Oct 2017 17:19:09 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=runbox.com; 
 s=rbselector1;
 h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:
 References:Subject:Cc:To:From;
 bh=oojMYeXSbXa68IBzGeWI/Rd27NMEUgO/LZZKEXA3PkM=; b=McAevqP+Alban0rKcwEL0ZULyB
 FY+oD9WohObP51yVohFNPKsg9/CGlMYUmqKxkluwCBuwX1Ccuhm3Oa5QJZ9CCeTMsXpzaCc07zVwA
 BiF2WHj15iafhrFeuUS1lzQMz+pvJTrhIBw0m5i5u1qbT500GgvG9YGU661zWGPmsECjHak8aesfd
 sK7q92JePuc3T8BHuoxzUzKHjIc7nnfPafZYCPvYMOtc/dLrvmSEYYA0/5LPTXnVi7DogRQs+M4Lm
 gammX1rc1dJXjbD7eeDUixILK+og8T5daWRuxodZrVYcxy8aas5VOdM8k8OJgRggsgHaT+bYLWQE/
 85wofC/g==;
Received: from [10.9.9.212] (helo=mailfront12.runbox.com)
 by mailtransmit02.runbox with esmtp (Exim 4.86_2)
 (envelope-from <gazally@HIDDEN>)
 id 1e8YVX-0001VL-8P; Sat, 28 Oct 2017 23:19:07 +0200
Received: from c-24-22-244-161.hsd1.wa.comcast.net ([24.22.244.161]
 helo=chinook) by mailfront12.runbox.com with esmtpsa (uid:179284 )
 (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82)
 id 1e8YVJ-00007X-9I; Sat, 28 Oct 2017 23:18:53 +0200
From: Gemini Lasswell <gazally@HIDDEN>
To: Paul Pogonyshev <pogonyshev@HIDDEN>
Subject: Re: bug#28725: alternative
References: <87mv54f5in.fsf@HIDDEN>
 <CAG7Bpar-63mWXPTwQmkPR0BW=AyTqNOoZc3OUya8ROrPtdFpJg@HIDDEN>
Date: Sat, 28 Oct 2017 14:18:50 -0700
In-Reply-To: <CAG7Bpar-63mWXPTwQmkPR0BW=AyTqNOoZc3OUya8ROrPtdFpJg@HIDDEN>
 (Paul Pogonyshev's message of "Fri, 27 Oct 2017 21:35:56 +0200")
Message-ID: <87tvyjas3p.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.2 (/)
X-Debbugs-Envelope-To: 28725
Cc: 28725 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.2 (/)

Paul Pogonyshev <pogonyshev@HIDDEN> writes:

> You may want to try `iter2' package, which is a fully compatible
> reimplementation of `generator'. Among other advantages, generator
> functions it produces are compatible with Edebug.

Hi Paul,

Thanks for letting me know about iter2 and it's good to hear that it
works with Edebug. My interest in this bug is more about Edebug than
it is about generators, because I've been working on finding and
fixing code that ships with Emacs but doesn't work with Edebug.

Best,
Gemini





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#28725; Package emacs. Full text available.

Message received at 28725 <at> debbugs.gnu.org:


Received: (at 28725) by debbugs.gnu.org; 27 Oct 2017 19:36:05 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 27 15:36:05 2017
Received: from localhost ([127.0.0.1]:37657 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1e8AQH-0005Ko-4M
	for submit <at> debbugs.gnu.org; Fri, 27 Oct 2017 15:36:05 -0400
Received: from mail-pg0-f65.google.com ([74.125.83.65]:46946)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <pogonyshev@HIDDEN>) id 1e8AQF-0005KH-Ch
 for 28725 <at> debbugs.gnu.org; Fri, 27 Oct 2017 15:36:03 -0400
Received: by mail-pg0-f65.google.com with SMTP id k7so6017574pga.3
 for <28725 <at> debbugs.gnu.org>; Fri, 27 Oct 2017 12:36:03 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:from:date:message-id:subject:to;
 bh=HfW3S5uVzdF3puLtSNXTFHKasXD9SW/Vn2/qOzP427g=;
 b=TPbQq7Al1u6PJTAXLo1fcz3t2o07/8hADV1XD8GV4Hg+XPleLmgULbwyRUQQRVB6tz
 jsqlvjocrcmj5zR0drE7l9zFObVElo297eFGS13wulw1rkewsxkKYjvwXo8REJZkraFI
 T9/brHGnyRybWQBSxV8mW85nZ7M7shbkQsgOLSBL/z3ivTGqbGHJy41fTDpDyuHuQCVt
 +xxFMvEdIUqJMityhVp/EDs/vht8Iyx92nA795OPllwDrjrdbuxC2xEm84DOpYCjhALL
 BBwlwc7KB9r5WOKh2ZlvKcqsSaS8xak7iY1csOqIbGGBRmX2AJHJy3lcs79Ptm1baG8A
 c+Fw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
 bh=HfW3S5uVzdF3puLtSNXTFHKasXD9SW/Vn2/qOzP427g=;
 b=PUeIoeOWKmzt9IGBSDhjeGyOSEnJ9ssYyH6fnrsIWXeoKOef5NZTagNsu26ogdGUIv
 v0HrbtPKQjFHXJdVPg7T2MKKvSr0WlpPNCkCwvZovi4Niby2qWD6CaKHEbAIN4S9kH3I
 XK0EkV1HwR6kYOeY4jJdMumNFwYtFphe4Jk7oK7hMiwWIB+QUtVlSXUoPNnQG9xju2zN
 iw1Q5pg6Vl3ed5NHdy4pvKN3z8xO7nF53MUX1aGRVi6s8jE5AN4ovbAshGccawNyTvGb
 eY9Fvc4oRzoh8bTkmjDnYPlDgLmzIK63oZLFtMKM1HfaDK66+X7ryKpc7eBeYGsolSP4
 chLQ==
X-Gm-Message-State: AMCzsaWOlA7CXZzP/tnuoROb56o6OyF8t+e/5ijCKvSLfqws1dBGUe52
 HjIky1SZt/j/1/ezzE5y9PQ2PoYE8vtf+tfSAg==
X-Google-Smtp-Source: ABhQp+S5JXoZ4UOVK/Qidqin3/Mn+VsakyilZDCt35l8Ah68+2YNGluB+gGSjInHxYPmej5bsWtaCoAgEvtmTovEXbM=
X-Received: by 10.101.82.1 with SMTP id o1mr1096574pgp.261.1509132956936; Fri,
 27 Oct 2017 12:35:56 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.100.162.238 with HTTP; Fri, 27 Oct 2017 12:35:56 -0700 (PDT)
From: Paul Pogonyshev <pogonyshev@HIDDEN>
Date: Fri, 27 Oct 2017 21:35:56 +0200
Message-ID: <CAG7Bpar-63mWXPTwQmkPR0BW=AyTqNOoZc3OUya8ROrPtdFpJg@HIDDEN>
Subject: alternative
To: 28725 <at> debbugs.gnu.org
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 28725
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

You may want to try `iter2' package, which is a fully compatible
reimplementation of `generator'. Among other advantages, generator
functions it produces are compatible with Edebug. However, it's not
well-established, so be aware of possible misbehaving generators.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#28725; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 6 Oct 2017 19:20:33 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 06 15:20:33 2017
Received: from localhost ([127.0.0.1]:53583 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1e0YAj-0003cT-Gn
	for submit <at> debbugs.gnu.org; Fri, 06 Oct 2017 15:20:33 -0400
Received: from eggs.gnu.org ([208.118.235.92]:45494)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <gazally@HIDDEN>) id 1e0YAi-0003cC-6C
 for submit <at> debbugs.gnu.org; Fri, 06 Oct 2017 15:20:32 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <gazally@HIDDEN>) id 1e0YAc-0004ff-2Z
 for submit <at> debbugs.gnu.org; Fri, 06 Oct 2017 15:20:27 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,
 T_DKIM_INVALID autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:36395)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <gazally@HIDDEN>) id 1e0YAb-0004fR-Vc
 for submit <at> debbugs.gnu.org; Fri, 06 Oct 2017 15:20:25 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:36447)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <gazally@HIDDEN>) id 1e0YAZ-0008PZ-0G
 for bug-gnu-emacs@HIDDEN; Fri, 06 Oct 2017 15:20:25 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <gazally@HIDDEN>) id 1e0YAS-0004Zh-SS
 for bug-gnu-emacs@HIDDEN; Fri, 06 Oct 2017 15:20:22 -0400
Received: from aibo.runbox.com ([91.220.196.211]:52000)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <gazally@HIDDEN>) id 1e0YAS-0004WV-E9
 for bug-gnu-emacs@HIDDEN; Fri, 06 Oct 2017 15:20:16 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=runbox.com; 
 s=rbselector1;
 h=Content-Transfer-Encoding:Content-Type:MIME-Version:
 Message-ID:Date:Subject:To:From;
 bh=tfgn3SQzoUzba2nqoU61wz40TY/0sTYOVEnIfPSWXNc=; b=MFD2LOyZWtQY4G2IO8RTjJiLK6
 xx9qbZyuHCgGQ9vkllRkAKhDbps1IpWJqhuIuGqLKBS0XZ6MJEwxgDKl998vnR6yk+SddAXKKmmIt
 lg3glCaNHdCmH2XQ6Wj6wrFT15fWu1pJ71fMY8zHMu1qKgDXVieQwAiHPEf/+onCF+GbZx2aZa5dj
 Xxmzg5SCTLO68c8Q42zl7FfRhY1sXmlLkehkBfFg5kdjhDhKhKEhmuHRoURqOHroIx94w1Pyv6QZ7
 5tkdMO+SLQiQgvAlvz8R6AQFfm5nqv/DrWQrAr0BCIPSN6pwOUvpWKUe9NWeQpncekDFb3rK/8CA0
 lOPvPdHg==;
Received: from [10.9.9.211] (helo=mailfront11.runbox.com)
 by mailtransmit03.runbox with esmtp (Exim 4.86_2)
 (envelope-from <gazally@HIDDEN>) id 1e0YAM-0004qO-Pn
 for bug-gnu-emacs@HIDDEN; Fri, 06 Oct 2017 21:20:10 +0200
Received: from c-24-22-244-161.hsd1.wa.comcast.net ([24.22.244.161]
 helo=chinook) by mailfront11.runbox.com with esmtpsa (uid:179284 )
 (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) id 1e0YA9-00028k-Hy
 for bug-gnu-emacs@HIDDEN; Fri, 06 Oct 2017 21:19:57 +0200
From: Gemini Lasswell <gazally@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 26.0.60; Error when using Edebug on a generator
Date: Fri, 06 Oct 2017 12:19:44 -0700
Message-ID: <87mv54f5in.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
 [fuzzy]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.1 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.1 (----)

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=E2=80=99s 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))





Acknowledgement sent to Gemini Lasswell <gazally@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#28725; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Wed, 30 Sep 2020 04:00:02 UTC

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