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 cGQxDmVV9GNgagEAbAwnHQ (envelope-from ) for ; Tue, 21 Feb 2023 06:23:49 +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 aOBoDWVV9GOtpAAAG6o9tA (envelope-from ) for ; Tue, 21 Feb 2023 06:23:49 +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 BE63FB0E1 for ; Tue, 21 Feb 2023 06:23:48 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pUL7a-0000IE-Hn; Tue, 21 Feb 2023 00:23:22 -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 1pUL7Y-0000Gr-O7 for emacs-orgmode@gnu.org; Tue, 21 Feb 2023 00:23:20 -0500 Received: from mail-108-mta82.mxroute.com ([136.175.108.82]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pUL7W-0007wX-OH for emacs-orgmode@gnu.org; Tue, 21 Feb 2023 00:23:20 -0500 Received: from mail-111-mta2.mxroute.com ([136.175.111.2] filter006.mxroute.com) (Authenticated sender: mN4UYu2MZsgR) by mail-108-mta82.mxroute.com (ZoneMTA) with ESMTPSA id 186726d032c000edb4.002 for (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES128-GCM-SHA256); Tue, 21 Feb 2023 05:23:12 +0000 X-Zone-Loop: 5eb76892a4a2eb3b552730104063516a90fac87efa75 X-Originating-IP: [136.175.111.2] DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tatersworld.org; s=x; h=Content-Type:MIME-Version:Message-ID:Date: References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=81oMVaYc+JY6C14wBqJqed36X1z8TNZfuZu/OlWdcG0=; b=LnZ/Q4mIDDM5oweWBN0+6csasa nC2dTXAj4ZfDEgJ8+bl0BHuwSV8KYc0Ig6KcHxOPKAa7Y/manGSSKW2bX9v7pHRLr9BJLSUhbHaQF EkfoLzWxKu4KrW5RovvBd+JqijY/h9DAUXXi9RpMaY6jGe3+cUlEEPrUL63pH34uj/8DsWVW+nFar AA/nbraPxoDY7CuAwEhP/Wi9kB2xuk6Khy7khas1ljU6oQR5ZRqrnlooS/LUuWBFP4AC7TvVl+9Oa 7OnOsBjkzufXFVhY91+sorcLWv+cMObIdYTLDk2jD8Qy+zA1WOHqRey0NI3GPho0ByPOqPVVMhDYh 50NWPoxQ==; From: Jack Kamm To: Ihor Radchenko Cc: Matt , emacs-orgmode Subject: Re: [BUG] shell sessions started outside of Babel broken In-Reply-To: <87ttzgeg3w.fsf@localhost> References: <186283d230a.129f5feb61660123.3289004102603503414@excalamus.com> <87a61j3orj.fsf@gmail.com> <1864701b4b8.e37160d6373275.4308190093579612690@excalamus.com> <87357a2r27.fsf@gmail.com> <1864bbf632d.acf83486624816.5548943856411522610@excalamus.com> <87wn4j1mee.fsf@gmail.com> <875yc1wz37.fsf@localhost> <87ttzhy9vm.fsf@gmail.com> <87ttzgeg3w.fsf@localhost> Date: Mon, 20 Feb 2023 21:23:08 -0800 Message-ID: <87pma31tj7.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-Authenticated-Id: jackkamm@tatersworld.org Received-SPF: pass client-ip=136.175.108.82; envelope-from=jackkamm@tatersworld.org; helo=mail-108-mta82.mxroute.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, 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-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1676957028; 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=81oMVaYc+JY6C14wBqJqed36X1z8TNZfuZu/OlWdcG0=; b=O5fSnhSuBbTh68od+ESPgv45spRuQTA2gQBZB9wCi6Lqp2dVunsWL25rJikk3LoSjkQ88X +yRGrBJ4wRx3xLKVuTF7pWKo3VioVeXQzKclOfbi72Ua4aqPe2sRJ3Y+lNtp29GnN9IKH5 N2qexKIiIj/YdgMx7Q1plFEIYP/ZDaLHX6/ikeiQibnHR71CyZU380rsssjW8vWyBhjhEB TWINvdykMF2DQbn/mx52/mjVrlAzooN7qGKu9nGMFKT8FoDv8h9L1PR7sPvsJPZRJqWQc/ OI8xe+cFmWAOeiE+tp+dKjtrlcQ7+M9VjLhOeF9sSE81059tgtHQpjMk7WR4QQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tatersworld.org header.s=x header.b="LnZ/Q4mI"; dmarc=none; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1676957028; a=rsa-sha256; cv=none; b=Ussoa08rJz4mjSeq/2UITGhyCPerrO+HULkEHcGLFLlrg4i/Xr4+95ooEsHG7m/rMclRSA CQlz7rJsq0NMVeHsTZPEV3nMht8gFWeslMyb1HSJMqR9pKxiYCeUi96j9nORASGn1mElMs WJPYoQcl6mrvGfhc65uhm+kVjsiN93svrbVRjzNBPp8jEg/f5uTG1Tbai65STXfbehN6VJ SKqYWr2Mg2s5h0ORJIbDkZbXs6BwWK99OD/D7Ogz1txaJWgX5wsVvcO2iR5LrA6QDI3GBT 2gHlHtGyKci1iDRrnZgdZfR4i2dSuK3+xkoaN9KNODXTXlOsZVgmDmGxRgsJ8w== X-Migadu-Queue-Id: BE63FB0E1 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tatersworld.org header.s=x header.b="LnZ/Q4mI"; dmarc=none; 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" X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -0.45 X-Spam-Score: -0.45 X-TUID: xgQjfvR3ccD9 Ihor Radchenko writes: > What is confusing is that `org-babel-execute-src-block' does not use > generic `org-babel-initiate-session'. I usually find myself confused whenever I am trying to remember where org-babel-LANG-initiate-session is run and what it's doing... In ob-shell's case, when I read the lisp code it seems like org-babel-prompt-command would get called every time org-babel-execute:shell runs (via org-babel-sh-initiate-session). But that's not how the behavior seems when I use it, e.g. if using a M-x shell session, the prompt isn't changed after executing a src block. Not sure what I'm missing... > We may, however, allow an extra header arg to set the prompt regexp > manually. Would it make sense? It does feel a little confusing, but I don't have any better ideas at the moment. To clarify -- would the header arg be for setting comint-prompt-regexp, org-babel-prompt-command, both, or something else?