From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:5f26::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id IHS3GMiKnmX2RwEAkFu2QA (envelope-from ) for ; Wed, 10 Jan 2024 13:17:12 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id 6FjoEsiKnmUyJAEAqHPOHw (envelope-from ) for ; Wed, 10 Jan 2024 13:17:12 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=e2wDWV1F; 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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1704889032; 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=T/pWblqAIct/LfVNOO5Gdtv1/5H/KY7tNBnUd2+SOqE=; b=md+V4OU+eDxGQeASAQI2CUCMfzr6fA0tsjWz+b9visiGrlaPDUwH6eAT+1P2pHg8vprWLU yaDtMXBJUxW0rtE0GDPgFLk6IO1P6QDFhma0H531ZrebThPrbGAQuI1okBBUF0y9mapX8B SSopLORWI2xalfFrpX+SjSz0Ry0CSXx0ZD1P253ljkdqIPtJ9k9DQvIAGv3SNcl1vRM1Ps szUGmuAZ+YWwaOoCJgTvrERtnfoRAMO5y0MVO95qRXAe7ridSIZFIZGBy6ecynba6D+NNS E0E7TQSSmE/pmywrGLGbzGf1GLrZHmJfl8IP3fRSe42PJKpCW+au/hi4BNBXvA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1704889032; a=rsa-sha256; cv=none; b=C/a22OxFNK7qy3xiPMjC+iefhEpsE0vvXLPoUCmeM0y4Dkt4xcSKLkefrVyp+r376JU42e /bNyBOzBVYt90ibfxVFssHDmZT1dru+UvheR5yKFgXhUCKO1Gk94el2212o5xWiobktZR+ P6KKS+xUO8eIF9Cvf6ry+xVE8kK7/lBj/FFj/hASH0lHQe4NH9goVFOZlDXHIvIFXtx1kd QwniTZpNodW2MZD5c2Psarw9e0O6GjM79MUNu9JB4V59/1B3MSx9byBDTnrOXTClm5kpmM UH77FZ5yq6uIOOI6jomHcXP3REeWOLuicKgCA3veAgmdTwo2m6aT5dJcX1BCLg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=e2wDWV1F; 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 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 2BD723E080 for ; Wed, 10 Jan 2024 13:17:12 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rNXVn-0000QN-II; Wed, 10 Jan 2024 07:16:47 -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 1rNXVm-0000Q6-Lf for emacs-orgmode@gnu.org; Wed, 10 Jan 2024 07:16:46 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rNXVk-00039B-6L for emacs-orgmode@gnu.org; Wed, 10 Jan 2024 07:16:46 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 3A882240103 for ; Wed, 10 Jan 2024 13:16:40 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1704889000; bh=usEJP6bTY4SEVekNQNfDNf2fLw5Qf9Ot97zBXIgLIGE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=e2wDWV1F5ueCsoxwWcxJU7TIWJPoIsoIBpMPX+cPI+ltkgBBpVECKgITHL7fumENl 8TU9B4aHTBcEG7nGXVZXtGLnavwXPWdGout7Qb6RKdWszZHgxmFxfckupZ2aJFaIqs xvkN+gfFDDdYwwZA1vnC8PnFhRFsSlNiOSp/Xv7NyNnikIRGK3FAOYlhhH9CHh4Nwo xz/Ch9HsMahCzeOs3i91vtp2piMZEU7arnDcJr9sBG9109oTfU1k/AzRruzg0UWRIZ h49OsJcT+2x2gGY9Gdx4xOaNkos0593qAhsuXsdgSnFWkT9cURKkJMVOnvh/XBa4Fu jx4EiMtYu4EiQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4T96Gv1RVqz9rxG; Wed, 10 Jan 2024 13:16:38 +0100 (CET) From: Ihor Radchenko To: Jack Kamm Cc: Liu Hui , emacs-orgmode@gnu.org Subject: Re: [PATCH] Set Python shell in Org edit buffer In-Reply-To: <87le8x3e0a.fsf@gmail.com> References: <878r6647vv.fsf@localhost> <87bkb2rqer.fsf@localhost> <87edfwsuvx.fsf@localhost> <87sf4bsm1w.fsf@localhost> <87mstw18r4.fsf@gmail.com> <87bkaak0ol.fsf@localhost> <87ttnyz0jv.fsf@gmail.com> <87wmsn6ghw.fsf@localhost> <87o7dxu15h.fsf@gmail.com> <87msthwbfz.fsf@localhost> <87le91t13e.fsf@gmail.com> <87zfxgxb8m.fsf@localhost> <87r0ir2ln8.fsf@gmail.com> <87zfxewewe.fsf@localhost> <87le8x3e0a.fsf@gmail.com> Date: Wed, 10 Jan 2024 12:19:50 +0000 Message-ID: <87a5pdqt21.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.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, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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 X-Migadu-Spam-Score: -6.68 X-Spam-Score: -6.68 X-Migadu-Queue-Id: 2BD723E080 X-Migadu-Scanner: mx11.migadu.com X-TUID: YAGXrq+6G+q7 Jack Kamm writes: >> --- >> etc/ORG-NEWS | 11 +++++++++++ >> lisp/ob-R.el | 20 ++++++-------------- >> lisp/ob-julia.el | 16 +++++++++------- >> 3 files changed, 26 insertions(+), 21 deletions(-) > > Not sure if you are doing this in a separate commit, but you also need > to make the change to org-src.el to remove > > (org-babel-comint-buffer-livep session) My oversight. Thanks for the heads up. > It's annoying there's no way to tell ESS to start new session instead of > evaluating in existing one. Here are a few alternatives we could > consider to deal with this: > > 1. Change the worg/ORG-NEWS, to suggest users make sure the session > exists (either by evaluating a source block or call "M-x R" in edit > block) before running ess-eval-line. > > 2. Add ob-R and ob-julia customization options (as previously suggested) > to explicitly control the startup behavior (either to auto-start, or not). > > 3. Submit PR to ESS to add a variable we could let-bind, to force it to > start an associated session rather than evaluate in an existing > non-associated sessions. > > Currently I lean towards a combination of #1 and #3, but am not sure, > and happy to go with whatever you think is best. We can also advice `ess-request-a-process' as a temporary workaround. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at