From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 EHOYKgvD5mNe9AAAbAwnHQ (envelope-from ) for ; Fri, 10 Feb 2023 23:19:55 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id qDurKgvD5mOCigAA9RJhRA (envelope-from ) for ; Fri, 10 Feb 2023 23:19:55 +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 518871A488 for ; Fri, 10 Feb 2023 23:19:55 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pQbjl-0008Vc-6q; Fri, 10 Feb 2023 17:19:21 -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 1pQbjf-0008VD-Hg for emacs-orgmode@gnu.org; Fri, 10 Feb 2023 17:19:15 -0500 Received: from sender4-op-o12.zoho.com ([136.143.188.12]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pQbjd-0003l7-T5 for emacs-orgmode@gnu.org; Fri, 10 Feb 2023 17:19:15 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1676067544; cv=none; d=zohomail.com; s=zohoarc; b=KwwGo2PaFqPvqeuTDC1f2mihJCBmZjLB8vElcSLv6AZpiE5D7sHP2Sm/MiXpmN3HzvzQu/roPTILoy2bQAdho9MitMj1CX6Q0cr/uRpTl8rEY/VJDTbkpV+URl3JXMrxHetNmmwXJnOnF8qxI/FvpNHn00ftfkbSoabTzBzhA4k= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1676067544; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=pEIzhsbYySM2T/rAlVkZ5S0NHunziZhAKOKWmzzr6/A=; b=NxHp2MNY3fRUAWvAlT1KkGIFsWIOlPCSP30sZGdw6O/Lqaq32Fnse3NO4ywvfqgBzBD8GiDIzBjJN4Nwb+OTEJU4vHBzak9oN1RpqdrhDfWZhL2ok9EbUVHESpwnrJedBhWWIKqk1XJxXgfCMUO8t5VKrC1rRuFNuwa4R0o2I/g= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=excalamus.com; spf=pass smtp.mailfrom=matt@excalamus.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1676067544; s=zmail; d=excalamus.com; i=matt@excalamus.com; h=Date:Date:From:From:To:To:Cc:Cc:Message-ID:In-Reply-To:References:Subject:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:Reply-To; bh=pEIzhsbYySM2T/rAlVkZ5S0NHunziZhAKOKWmzzr6/A=; b=e146spoI17h/t/0oJ502UYqCAotGIMf+nIf/MX6qLRjbY2Po4lOA/RS2KqC1FS9B 81L+dsdN/s3DV4OxU05Mw5H5CcGdwlS7kfNplEZGrS3upTnjhnQOL+bb/1+XkAmFIal 4v3FyjNdFs+ez3LCl/KcGw9smmn57VWPDnXjH/0s= Received: from mail.zoho.com by mx.zohomail.com with SMTP id 1676067543200503.5474750629269; Fri, 10 Feb 2023 14:19:03 -0800 (PST) Date: Fri, 10 Feb 2023 17:19:03 -0500 From: Matt To: "Ihor Radchenko" Cc: "emacs-orgmode" Message-ID: <1863d69188f.11e078bd1228881.451172865246440158@excalamus.com> In-Reply-To: <87y1p7axpe.fsf@localhost> References: <186283d230a.129f5feb61660123.3289004102603503414@excalamus.com> <87v8kd8zzw.fsf@localhost> <1863472efe9.10fdd5ba4258906.5972264927968042941@excalamus.com> <87y1p7axpe.fsf@localhost> Subject: Re: [PATCH] Async evaluation in ob-shell MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Importance: Medium User-Agent: Zoho Mail X-Mailer: Zoho Mail Received-SPF: pass client-ip=136.143.188.12; envelope-from=matt@excalamus.com; helo=sender4-op-o12.zoho.com X-Spam_score_int: -7 X-Spam_score: -0.8 X-Spam_bar: / X-Spam_report: (-0.8 / 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_BL_SPAMCOP_NET=1.347, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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=2; aspmx1.migadu.com; dkim=pass header.d=excalamus.com header.s=zmail header.b=e146spoI; 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=none; arc=pass ("zohomail.com:s=zohoarc:i=1") ARC-Seal: i=2; s=key1; d=yhetil.org; t=1676067595; a=rsa-sha256; cv=pass; b=oMjmgJk7FtF7Pv7Wy0v71mAzfuqguEyeaxbDm7waIdxwQAQGCNJ7HVMcNtrMtWN1uWFuZk wbndKw+ktKT/D3aEiofUBvCy+EZHrF9A9lWbABAOMKORcsCS95q0IMThPxR8v4jVkc7UjR kM4lv4VMB++Pcda239uyjVzhvqapGNcMjnyrlo1cvHrqqNmGPqiB3nlImGWtxNNdc/1Mig RQgLz//zzp3bbz6Bm1E+KwmY7/HJuo+qXEfvxig0FQ228hcNKTUHqwvWFcOZafw1h0H8jj Zf3YmZJYou2I7+82kegvs8Q29XeMUgCBHYGHOuFt6yCUy8DHEN2bCO4yUNpSbQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1676067595; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=pEIzhsbYySM2T/rAlVkZ5S0NHunziZhAKOKWmzzr6/A=; b=iHmCJ+2yMaYbImboSBeA8OaXE7rjxQ0CZKuwK3NwRwGToITRW6xXO8bO82kE6t5Xb2TiPU taXWsRFhGDsk7K0iI/2f9ZXIRpsFvBVnr1Fh8oSXyvfzZTT+P4zzs7Nf41iXpkL8oN5Pwi I5UAH8KbPogvp+TqIkHPFuCLfU+0WhUTvVLFPYknEoTlsIGc0Agf1MLeGGNbxwZRO7z2Ga g4jJa7OvwH67QD5KtdbhByPknh3TAGz9II03OI3lOGNu/ZAv0A4+pl9V1yWRxPOahSIa2g MapqRvqSG8Qd3SL72uk0WTB7KT+qzwbKscZVkRy0m0hkEXuiZw+H2lFZqkOhLQ== X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -11.82 X-Spam-Score: -11.82 X-Migadu-Queue-Id: 518871A488 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=excalamus.com header.s=zmail header.b=e146spoI; 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=none; arc=pass ("zohomail.com:s=zohoarc:i=1") X-TUID: O9zHxJd/s48l ---- On Thu, 09 Feb 2023 06:23:42 -0500 Ihor Radchenko wrote --- > Could you please elaborate? What was the problem with > `buffer-substring'? I am asking because one of the previous versions of > `org-babel-comint-wait-for-output' relied upon 'face text property. See > a35d16368. The problem is I got mixed up about the printed string representation and thought having properties changed how functions operated on the string. The 02-ob-shell-async-non-file.patch works fine with `buffer-substring'. No need for the other patch. It seems to me like 02-ob-shell-async-non-file.patch is all that's needed for basic async in ob-shell. I'm able to run long processes like `guix pull' and `guix package -u' calls without issue and the results look like I expect. Similarly for running a web server, such as `python3 -m http.server' and killing it. Unless there's something you or others think needs to be done, I can get it committed (and try to write a test or two for it).