From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id wGvxD9Y44mPVLwAAbAwnHQ (envelope-from ) for ; Tue, 07 Feb 2023 12:41:10 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 2N0ND9Y44mOGZQEAG6o9tA (envelope-from ) for ; Tue, 07 Feb 2023 12:41:10 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id D878D2C713 for ; Tue, 7 Feb 2023 12:41:09 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pPMKn-0005wB-Tf; Tue, 07 Feb 2023 06:40:27 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pPMKh-0005tz-R4 for emacs-orgmode@gnu.org; Tue, 07 Feb 2023 06:40:20 -0500 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pPMKf-0004XU-2h for emacs-orgmode@gnu.org; Tue, 07 Feb 2023 06:40:19 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 8C8B5240478 for ; Tue, 7 Feb 2023 12:40:14 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1675770014; bh=fQRoUfIrNQXCXMkwBiiZscodqYl9bMdQtZGz7HiKGmY=; h=From:To:Cc:Subject:Date:From; b=pq9S8MqM51Z0Y4Rwx4zOid5jPDHI4jiwkVAbxWdZKGBnCA1zTLFNbspDMnkz7YsNB X0ue5wdncaLTNyhIr9wCaFZYNhCsaaS/dXgckJxApBSifuwaMm5x7Jy/VrvhooPT7S LzwtQZUTN2yFDSXVStmhLJ+pcFDdg8bh32q3ZH1ZnsSZC6JfEWXqHR8uVpSTq5H/MJ NdHfCrhfjKKeD8LQvwyQoN6llaFN1mNTEu6ADMvSBdA+NAuGLq83XuOBAqagiOY5wr tUTO3rdDZpcv1ad39EqlDCQaemkDM2OhkOkv/Wtk81Fc3GMTn+fHL7tupQ1/o4A+Hs Wz0xVKw3CJgEQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4PB1QP3xDNz9rxW; Tue, 7 Feb 2023 12:40:13 +0100 (CET) From: Ihor Radchenko To: Matt Cc: emacs-orgmode Subject: Re: [PATCH] Async evaluation in ob-shell In-Reply-To: <186283d230a.129f5feb61660123.3289004102603503414@excalamus.com> References: <186283d230a.129f5feb61660123.3289004102603503414@excalamus.com> Date: Tue, 07 Feb 2023 11:40:51 +0000 Message-ID: <87v8kd8zzw.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=pq9S8MqM; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1675770069; a=rsa-sha256; cv=none; b=i4yiG/5qgrakzSPLATozgOjO42grsb0g6GmHDX8EwPpR7pYo2eg+vDmua5QBGFOB+vm5LF M6X86Fk8pOzrRfFokZ4O1W61U0H9yvK2Ol09tz2GW/MonPXshOxiv9C1EkAK0NuAhKh35o VSQ7vqgXr4XoYzZo4Yi/+msPP/i8UrYtGTaQeRGZq086+gN8VrEjoBZrXFh81r0qC3JPic ryTTxcQ4kKh7qhA4qj3Dt5EXybbnm85MgfV92fzzM+m7S7/fhothW1F0GVHLWvvSZDPD9k F1NvN3pW2YllOz0aLbaAfzKujXmZpEHfukWn742dwNDwAg+RAUlA4gqB9IMuOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1675770069; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Egp10LeSC0ar9dvE09ZhuIj/HRq5d7mj4Ghby0GjovM=; b=Z4gRXZNLpRMU6pYS8PvmWrW49s2+4GZjSo7DLqG5HLqq16hDAlsYueAILfEwORzNCmvV9E KJCWbI4Jm+U1VCJyge8pT3cmYJX/5I97HwdW7rRwyqSWiOjWawT3Ubbddo0RKwQzWxlpJR IL3UD0PcB865Ac1DAj+DWQ6kCMwmMnZP0pF8brwC6/Etxl2QOTjnJv+RMteqYwgsvfXopt bpdGUaoJDr4pwBsYl1yxj086Kz3H12GVx2lbSCYrH3tzFaVTfCjEjmRfW/MBkBxlmbBIlp Cb29YOLVJr8ZvYpJpurJKsHFafCkIrImBkO4gE9g04I5kb1lnVu60Jae98Xiog== X-Migadu-Spam-Score: -6.06 X-Spam-Score: -6.06 X-Migadu-Queue-Id: D878D2C713 X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=pq9S8MqM; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net X-TUID: 2JhxgSz1pS0T Matt writes: > I'm excited to share that I've got async evaluation working (crudely) with ob-shell. A rough implementation is attached. > > It has clear issues, such as the prompt being present in the output: That's likely because of the same reasons why prompt did not get cleaned in synchronous blocks earlier. See `org-babel-comint-with-output'. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at