From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#57635: 29.0.50; Look into using generator.el's CPS machinery to replace 'eshell-do-eval' Date: Wed, 07 Sep 2022 08:45:52 -0400 Message-ID: References: <1766577e-022f-87ae-873e-875d84078891@gmail.com> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27294"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 57635@debbugs.gnu.org To: Jim Porter Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 07 14:46:42 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oVuS2-0006t4-7w for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 07 Sep 2022 14:46:42 +0200 Original-Received: from localhost ([::1]:32946 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oVuS1-0003mw-64 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 07 Sep 2022 08:46:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59862) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oVuRP-0003jf-H4 for bug-gnu-emacs@gnu.org; Wed, 07 Sep 2022 08:46:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36938) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oVuRP-0006mB-89 for bug-gnu-emacs@gnu.org; Wed, 07 Sep 2022 08:46:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oVuRP-0002SO-3G for bug-gnu-emacs@gnu.org; Wed, 07 Sep 2022 08:46:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 07 Sep 2022 12:46:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57635 X-GNU-PR-Package: emacs Original-Received: via spool by 57635-submit@debbugs.gnu.org id=B57635.16625547629436 (code B ref 57635); Wed, 07 Sep 2022 12:46:03 +0000 Original-Received: (at 57635) by debbugs.gnu.org; 7 Sep 2022 12:46:02 +0000 Original-Received: from localhost ([127.0.0.1]:53868 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oVuRO-0002Rv-A7 for submit@debbugs.gnu.org; Wed, 07 Sep 2022 08:46:02 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:2010) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oVuRN-0002Rb-88 for 57635@debbugs.gnu.org; Wed, 07 Sep 2022 08:46:01 -0400 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id D2DAE807AF; Wed, 7 Sep 2022 08:45:55 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id AB0AC804AB; Wed, 7 Sep 2022 08:45:54 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1662554754; bh=5dkkgEIKJpIGJbbMlfpvSqW5dS/YCAmVheTuReBJMu4=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=FWYCaIei3in2yBIobO9H1O4OIMWfw+YtuLy+ODvhpkI9uHHNdwSdpniu7ny3B16b5 vTIyWU3wNOBkCBz6LlxHKhUnDmRyJaB8Z3w15FqxkQIMfvf8Zzyv4n1UWca7xALUml 9b0iRZ6FO06/ZM7cNDnO77ER17t1iNzNYtfhPGTP949WauSwyFmB3iNWmY2mCkn/Kx 0lyfqGS8zx2+bPAT378/7ilvVq4dbB9SujIdInBdwPd1g6LUg0QLh3m44lfGpebPt6 0LxRnxbKYQ7OOe3HIo6j0lzc0u4HXpiOueOSrOjD8aLeghUqORhfR5q1s8iuNXrHQV vAStkZdAyO+ow== Original-Received: from pastel (unknown [157.52.9.190]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 8780B120500; Wed, 7 Sep 2022 08:45:54 -0400 (EDT) In-Reply-To: <1766577e-022f-87ae-873e-875d84078891@gmail.com> (Jim Porter's message of "Tue, 6 Sep 2022 20:58:00 -0700") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:241748 Archived-At: > In order to make long-running Eshell commands behave more-nicely, Eshell > uses iterative evaluation of many commands so that it can return control > back to the rest of Emacs. This has a lot of similarity to how > generator.el works. Indeed, the idea would be to replace the commands that launch processes with "yields" to an external loop (that just launches the next process and then calls the generator again). Stefan