From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id gD7cBSAVc2UCcwAAauVa8A:P1 (envelope-from ) for ; Fri, 08 Dec 2023 14:07:44 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id gD7cBSAVc2UCcwAAauVa8A (envelope-from ) for ; Fri, 08 Dec 2023 14:07:44 +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 928BF53B5E for ; Fri, 8 Dec 2023 14:07:43 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=buoFXC5R; dmarc=pass (policy=none) header.from=posteo.net; 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=1702040864; a=rsa-sha256; cv=none; b=rsOA5cXjAH9612pFPg0H2HqdMkKa9NwcDtMY0jCUyOQ7SklPldojJ/qFmcjcdWj9zr6Ty9 GwFFw/srPc846n69JMtKxFWND6fnxcYEf4YGZ0rQ9qWeA7T/aaPqruUnBNKhEa/2i19ipF rA1ek+kX2/2XJnbjE8N9v5JgluVSafxu7DagtdCdYhfqU0S7+4L6P944bdcUtCuQH9NMdw YzqGWhHGXGEBWWc5RtKJKIUEFtu3I8MkcryJNHoynpHitXWlXcJAyQkgqLAWaXxm8R1KEW DhPUUa3xT+GrHZVQ/pCESkzbbY0l66byLq1u4mxA9eBmRMvRsS5ZUdtzyVa9Fg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=buoFXC5R; dmarc=pass (policy=none) header.from=posteo.net; 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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1702040864; 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=GbWuHtgTTXnvDUc38EJZyYO2dRSVb3nE5iTU/qZY1U8=; b=Nv45olsUUJP945koNjvFC1tBKM4c70oE0rYASkZ3r36P8Gz78yThJj06ZZ3Vzfjo+99poX AhV980lXaBpT9nAWCt7BYFk30br9LdSCf/i/84Q4gnhsp1VJDEofHypbJXMhGCDcfoNElq t/GF0yoZowDWriAV/tLsxy4HCtERbHLyIL1JaK+JrKCrrcfIWUScunrCEkWTVIUUkEUkx9 Epdb/ROSIX9NA9xzKwZDmoqUyJyFVAyJfANnYc1SmB42hF5vwCLC06qxQKeVIxmqJAmKWu LFspruMhWOvFukQ3XEsXxELL7lP2ExuF8DNVy4DjCvfskffmRTvFlJgQ9SRbyg== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rBaZJ-0004gN-4E; Fri, 08 Dec 2023 08:07:01 -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 1rBaZG-0004eE-84 for emacs-orgmode@gnu.org; Fri, 08 Dec 2023 08:06:58 -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 1rBaZD-0006CT-Rv for emacs-orgmode@gnu.org; Fri, 08 Dec 2023 08:06:58 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 1941E240027 for ; Fri, 8 Dec 2023 14:06:51 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1702040812; bh=jkdgyKinaMHo/JaYV2FnAznfUl46k4KAhK2tDXBO2T4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=buoFXC5RhnRKWIaBvS0mXTN40AN3ipQoVoOzy/s0xqsiUYUezKtH5Cmidrnaw4Jh1 +3VOv9h6wV0ejZy6WeWVZwdkwKaknH5ncAEkH8/xoXsauMnar68K0GauHbmo/i4NHY Elk3eQjoK6K8RsJM1hn4L7T0a2poYQNW8VuwauU9yi8eELSgRSJUiA2ZwEx3bOnzVm Wr+ss5EfkLRBQxs0dlVRjylkQbgw0OB9qzG7z4Rc2gL7qUyfGXGG7rdXIJzJj25HRN JWQjEt3vpQfJgZqlIduBLxr1GED7eB3o7LOZtzkBVaEZzhTdtqcZ+BZsPeTmBk2UG4 ynK8jlBS+NClg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Smry33SFGz6tsb; Fri, 8 Dec 2023 14:06: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> Date: Fri, 08 Dec 2023 13:09:54 +0000 Message-ID: <87edfwsuvx.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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -8.27 X-Spam-Score: -8.27 X-Migadu-Queue-Id: 928BF53B5E X-TUID: mpKtBmXWu55a Liu Hui writes: >> What about displaying a yes/no query about starting a new session when >> there is none? > > I think it is OK. I can add an option to allow users to disable the > query. WDYT? I now have second thoughts about obsoleting org-babel--associate-session. If we need a customization for the new session dialogue, I expect that users will be willing to set it for all src blocks that support such a feature, not just python. But then we somehow need to make this global customization visible to babel backend authors - something we normally do using the set of org-babel-...: functions. What I am thinking now is 1. Introduce a global customization for users to choose whether to start a new session in org-src buffers with allowed values t, nil, 'ask, or an alist of (lang . t/nil/ask) for per-language customization. 2. Check the new variable and attempt to run `org-babel--associate-session' in org-src-mode definition. WDYT? -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at