X-Loop: help-debbugs@HIDDEN Subject: bug#28725: 26.0.60; Error when using Edebug on a generator Resent-From: Gemini Lasswell <gazally@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Fri, 06 Oct 2017 19:21:01 +0000 Resent-Message-ID: <handler.28725.B.150731763313921 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 28725 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 28725 <at> debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN Received: via spool by submit <at> debbugs.gnu.org id=B.150731763313921 (code B ref -1); Fri, 06 Oct 2017 19:21:01 +0000 Received: (at submit) by debbugs.gnu.org; 6 Oct 2017 19:20:33 +0000 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> 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-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))
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Gemini Lasswell <gazally@HIDDEN> Subject: bug#28725: Acknowledgement (26.0.60; Error when using Edebug on a generator) Message-ID: <handler.28725.B.150731763313921.ack <at> debbugs.gnu.org> References: <87mv54f5in.fsf@HIDDEN> X-Gnu-PR-Message: ack 28725 X-Gnu-PR-Package: emacs Reply-To: 28725 <at> debbugs.gnu.org Date: Fri, 06 Oct 2017 19:21:02 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-gnu-emacs@HIDDEN If you wish to submit further information on this problem, please send it to 28725 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 28725: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D28725 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
X-Loop: help-debbugs@HIDDEN Subject: bug#28725: alternative References: <87mv54f5in.fsf@HIDDEN> In-Reply-To: <87mv54f5in.fsf@HIDDEN> Resent-From: Paul Pogonyshev <pogonyshev@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Fri, 27 Oct 2017 19:37:02 +0000 Resent-Message-ID: <handler.28725.B28725.150913296520515 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 28725 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 28725 <at> debbugs.gnu.org Received: via spool by 28725-submit <at> debbugs.gnu.org id=B28725.150913296520515 (code B ref 28725); Fri, 27 Oct 2017 19:37:02 +0000 Received: (at 28725) by debbugs.gnu.org; 27 Oct 2017 19:36:05 +0000 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> Content-Type: text/plain; charset="UTF-8" X-Spam-Score: -0.0 (/) 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.
X-Loop: help-debbugs@HIDDEN Subject: bug#28725: alternative Resent-From: Gemini Lasswell <gazally@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Sat, 28 Oct 2017 21:20:01 +0000 Resent-Message-ID: <handler.28725.B28725.150922555028719 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 28725 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Paul Pogonyshev <pogonyshev@HIDDEN> Cc: 28725 <at> debbugs.gnu.org Received: via spool by 28725-submit <at> debbugs.gnu.org id=B28725.150922555028719 (code B ref 28725); Sat, 28 Oct 2017 21:20:01 +0000 Received: (at 28725) by debbugs.gnu.org; 28 Oct 2017 21:19:10 +0000 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> 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-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
X-Loop: help-debbugs@HIDDEN Subject: bug#28725: 26.0.60; Error when using Edebug on a generator Resent-From: Lars Ingebrigtsen <larsi@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Sun, 20 Oct 2019 21:47:02 +0000 Resent-Message-ID: <handler.28725.B28725.15716079653235 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 28725 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Gemini Lasswell <gazally@HIDDEN> Cc: 28725 <at> debbugs.gnu.org Received: via spool by 28725-submit <at> debbugs.gnu.org id=B28725.15716079653235 (code B ref 28725); Sun, 20 Oct 2019 21:47:02 +0000 Received: (at 28725) by debbugs.gnu.org; 20 Oct 2019 21:46:05 +0000 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> 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-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
Received: (at control) by debbugs.gnu.org; 20 Oct 2019 21:46:12 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Oct 20 17:46:12 2019 Received: from localhost ([127.0.0.1]:55405 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1iMJ1g-0000w7-GO for submit <at> debbugs.gnu.org; Sun, 20 Oct 2019 17:46:12 -0400 Received: from quimby.gnus.org ([80.91.231.51]:56810) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <larsi@HIDDEN>) id 1iMJ1d-0000td-Ov for control <at> debbugs.gnu.org; Sun, 20 Oct 2019 17:46:11 -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 1iMJ1a-00081b-NK for control <at> debbugs.gnu.org; Sun, 20 Oct 2019 23:46:08 +0200 Date: Sun, 20 Oct 2019 23:46:06 +0200 Message-Id: <87lftfccpt.fsf@HIDDEN> To: control <at> debbugs.gnu.org From: Lars Ingebrigtsen <larsi@HIDDEN> Subject: control message for bug #28725 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: tags 28725 + confirmed quit 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: control 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 (-) tags 28725 + confirmed quit
X-Loop: help-debbugs@HIDDEN Subject: bug#28725: 26.0.60; Error when using Edebug on a generator Resent-From: Gemini Lasswell <gazally@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Mon, 21 Oct 2019 16:30:02 +0000 Resent-Message-ID: <handler.28725.B28725.157167537326550 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 28725 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed To: Lars Ingebrigtsen <larsi@HIDDEN> Cc: 28725 <at> debbugs.gnu.org Received: via spool by 28725-submit <at> debbugs.gnu.org id=B28725.157167537326550 (code B ref 28725); Mon, 21 Oct 2019 16:30:02 +0000 Received: (at 28725) by debbugs.gnu.org; 21 Oct 2019 16:29:33 +0000 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> 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-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)
Received: (at control) by debbugs.gnu.org; 30 Sep 2020 03:52:50 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue Sep 29 23:52:50 2020 Received: from localhost ([127.0.0.1]:57771 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1kNTAg-0004IQ-2N for submit <at> debbugs.gnu.org; Tue, 29 Sep 2020 23:52:50 -0400 Received: from quimby.gnus.org ([95.216.78.240]:40572) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <larsi@HIDDEN>) id 1kNTAd-0004IC-Ab for control <at> debbugs.gnu.org; Tue, 29 Sep 2020 23:52:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=jbte2vhFvWDJvfRXL96B+HRZZKw5aeDjnvv5WiHhWGM=; b=i7u9wr7Goh3mHPG2HvCSF9UbWY RQcRV5CAs6wX1ngsTp5O8NKZ3Al4o1oq3yZHuC6NIN+hje7Vk4jCa2gjzQnJ7333gIJEyzbyqfKpj XJ3xYFPfIr+3DSgeQ2y3Y8ht0F3NwIWT3YZtsXypDv7jrBV6d3Q4/yQrRbar2D28zz9w=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <larsi@HIDDEN>) id 1kNTAV-000621-5i for control <at> debbugs.gnu.org; Wed, 30 Sep 2020 05:52:41 +0200 Date: Wed, 30 Sep 2020 05:52:37 +0200 Message-Id: <877dsb9b0a.fsf@HIDDEN> To: control <at> debbugs.gnu.org From: Lars Ingebrigtsen <larsi@HIDDEN> Subject: control message for bug #40434 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: forcemerge 40434 28725 quit 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: control 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 (-) forcemerge 40434 28725 quit
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.