From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id ACBxD8VBdGWyVQEAG6o9tA:P1 (envelope-from ) for ; Sat, 09 Dec 2023 11:30:29 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id ACBxD8VBdGWyVQEAG6o9tA (envelope-from ) for ; Sat, 09 Dec 2023 11:30:29 +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 AE90B575D2 for ; Sat, 9 Dec 2023 11:30:28 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=UkTO6hB8; 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=1702117829; 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=ziIBXeoERENrmEea6LQ184SBP2tjfVyndcdFSME2znE=; b=illpTlLoOb23aYcPV4CgdgRirBKIk2Tse9v66ywLgs+jnul8sit1dPtJCb6I7Fbccl1vKA zZMgzLLXtEogwGNJI4rV8HN7uAuwdkEIpZtsY6OGQgNnTLVuzzURzYAtt6+Yj5ygS0xC/s 4Q08lf5aAOveI+Ely+ghaPF/ZxMoo2vqh0gpygxghNrc4HEOt0iikpXMBaLw+lfpGv00DM DU8peMwcVlpgrBcdhAoFwM07FU09vcyl75ewl7wwdSqlRccR/pfcZDf1f1uDksHieYpZVW mnvZby9Okt4uGzfcT1Qb2sig/VXnZncp38cRhQLIHjlDNCHoLGlk8piolc5uwg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1702117829; a=rsa-sha256; cv=none; b=mQHRKRi/DpBnBLfXtzCsYvm/hqHX3BK4blOJ16G1Wu9J1FQB353eGYxjxEyy7QendtLY5y 6eqCtYekX6rAZur3BxW8B66qCt2CgPP9JRZSyawQPs1Fznvs2nTg5E7YKr7IOocFANbbH3 im0J+ffJMAUa43buXLT/IeqVDrJ3EOtxu7xYSyCqAZDc/FUGYIq4E6K3IfcRiexrm0Eg5d jRtevnbpmI9MXwMz2ZZXkfW5xonWWidzRWyQUmK0CmLTxZDwA96qU+NFweFAThn0PGiJE6 ujenfFz1og9BaB6lGVkiYC3g+6F6hrZrj9xW0hO7IfXQ/LjXuFiAGUWvYWpaOA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=UkTO6hB8; 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 localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rBuaq-0004EN-Q1; Sat, 09 Dec 2023 05:29:56 -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 1rBuaq-0004EF-0q for emacs-orgmode@gnu.org; Sat, 09 Dec 2023 05:29:56 -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 1rBuao-00083W-9U for emacs-orgmode@gnu.org; Sat, 09 Dec 2023 05:29:55 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 46703240027 for ; Sat, 9 Dec 2023 11:29:52 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1702117792; bh=TVPfMkZwquZ9bqeaqE5NVB7VYNjSdXVr3iXt2tRMl30=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=UkTO6hB873zopjg95eE8dBPQYrajP4ixFd81oIWVX0akx53aCm2xkquQr4gbtM2H1 Hu1Hw6nJv9LTl1mPhEFfgtgkdbS81B/9+UkS2KhBxQ1VFs8/9h3qqT3v6RzoPAKDHY A3BtzK3rA/6ir2piCusKA1hGgw0q1ZGZWVuOBF7bFN7QFMAmmRtlb4eiX7wrgMTd+5 nTg/9drnf4URkk8xB9Bv88EZPMZ/2BmlJTPXmmnanJzm2sZqGFrrPUZtWxU0qj1ivV C1AgmZ+oRbuRwtfdp57I8noclhnzTfhjGov23vXi7B3iilLLV+nBWbB8cSDUe0upIN 71k5+GVLZtRBA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4SnPQR6Cwlz6tvZ; Sat, 9 Dec 2023 11:29:51 +0100 (CET) From: Ihor Radchenko To: Liu Hui Cc: emacs-orgmode@gnu.org Subject: Re: [PATCH] Set Python shell in Org edit buffer In-Reply-To: References: <87zfyosw8n.fsf@localhost> <87ttovlb1u.fsf@localhost> <878r6647vv.fsf@localhost> <87bkb2rqer.fsf@localhost> <87edfwsuvx.fsf@localhost> Date: Sat, 09 Dec 2023 10:32:59 +0000 Message-ID: <87sf4bsm1w.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, 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: -2.31 X-Spam-Score: -2.31 X-Migadu-Queue-Id: AE90B575D2 X-Migadu-Scanner: mx11.migadu.com X-TUID: Si616DwxBE5R Liu Hui writes: >> 2. Check the new variable and attempt to run >> `org-babel--associate-session' in org-src-mode definition. > > I think associating the edit buffer with some session doesn't require > starting the session, which is at least feasible for ob-python. When > editing python src block, users can use C-c C-p to start the session > themselves for evaluating code. So it would be nice to allow a value > of 'associate in the customization, which means just running > `org-babel--associate-session'. I think we have a misunderstanding here. Didn't we just discuss that C-c C-p in python is not equivalent to `org-babel-python-initiate-session'? Also, by "start a new session" I meant "start a new session if there is none running already; if a session is already running, unconditionally associate Org Src buffer with that running session". -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at