From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:700:3204::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id gB5QOZyuoGUxAQEAkFu2QA (envelope-from ) for ; Fri, 12 Jan 2024 04:14:37 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id 0O1yM5yuoGVobgEAe85BDQ (envelope-from ) for ; Fri, 12 Jan 2024 04:14:36 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=UbY8aLd5; dmarc=pass (policy=none) header.from=gmail.com; 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=1705029276; h=from:from:sender:sender:reply-to: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=MgDf4IPeBRB4I1druOYHQQj4gaibgywHcgQ4z4Vx/u0=; b=fvUUWhzUQjGsuxN+n5f6P3TLRc1P7y6Uct2HmRZulhs5hCq4GAXvMQpzZQX3IiloHc/+uB sX3LjJf5SENBo512ApUBMLkyTViszLolMAtYep0DZW5GVYmg6qkY6ygWRmMG5uBnFai7QP qTBOGYtz2NdQ5SZuEWg7dO5LBAiyRxMwzYzWhunef+bE9L+bq2i0BV5qKu+T6Uc/tulpNb No80jK92ndS1nDAuYHEXhS47H1Tg2+B1Q9VDcrey7iQniaX2VcRXo+KHPpfx6goPi24JSh NASrsqxIGIcqcu74bMGcMjTQi9z0etYIWVqAGrCb0ExBykNpfdRNZnSOzfM5yQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=UbY8aLd5; dmarc=pass (policy=none) header.from=gmail.com; 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=1705029276; a=rsa-sha256; cv=none; b=W6IjdBRHo1TH1sqpvxeBxH0Z2LreNEBbFTQEocABV3Wp8SVV3+kWzrhta+vvl5ZN1akhEw BSvkPLml5PVoHUnYPeCD6w+gcsl0frGffH5OC8hjESHyvca1+yADCuqecVjAXq9Ssi2d+o LUBEqEoZz3sOpj+HgQ7LuX5mEuw+tzt99p/CuOyjoI+sI8ksuRiN30OtlxMlhITu2sMsj+ vXx7eB2sLWIsn9civTNyhMrH/RvDQlfymyT3iro6FC8YJI5E7F/KhCmXZu2TvZ4kFHliwe fy0TgpvZrPSxDXO70I36nvAnKMzM5iwy1E0s/eIzG8A83A7id+ZDoKFq25u9HA== 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 BBCF235A6C for ; Fri, 12 Jan 2024 04:14:36 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rO7kX-0007lj-Oq; Thu, 11 Jan 2024 21:58:25 -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 1rO7kW-0007lD-4M for emacs-orgmode@gnu.org; Thu, 11 Jan 2024 21:58:24 -0500 Received: from mail-pf1-x42f.google.com ([2607:f8b0:4864:20::42f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rO7kU-00075g-Gg for emacs-orgmode@gnu.org; Thu, 11 Jan 2024 21:58:23 -0500 Received: by mail-pf1-x42f.google.com with SMTP id d2e1a72fcca58-6dad22e13dcso4142324b3a.3 for ; Thu, 11 Jan 2024 18:58:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705028300; x=1705633100; darn=gnu.org; h=mime-version:in-reply-to:reply-to:date:subject:cc:to:from :user-agent:references:message-id:from:to:cc:subject:date:message-id :reply-to; bh=MgDf4IPeBRB4I1druOYHQQj4gaibgywHcgQ4z4Vx/u0=; b=UbY8aLd5KiIL2f6zZArDsn3QoC/cEYvOAdO+yiTg1YW0sRGd9cNPacBv6dc7UhtsNa v2QXEPQR0/zaSKWiiCZq+KPQLDBYNpUKRSmvFsxjuBMRYLSZbwGvq2mBV2boz7XoSq9z p8Omn+HQ+MWEvzAYTT+foBJOW2uDRg5gLcdGpCanvjmnF9m+EFWrxcGFPEjYjpfROwjO SRj1yQHb+djNT3YJZfDSzg1Rx+CkYZ0bmkuy21t2UXpIO7XcbMvEyagXdz3NPi9+6S+Z d0A0vX6Hb4bFjo1ifcgLh11vQYuMZ/X09cSLDWgiV+H2UwseftAuOZ77eBORsXsQGeQr 3ENw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705028300; x=1705633100; h=mime-version:in-reply-to:reply-to:date:subject:cc:to:from :user-agent:references:message-id:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=MgDf4IPeBRB4I1druOYHQQj4gaibgywHcgQ4z4Vx/u0=; b=eX7WDm7cBoGhP87TZ/bSjKhmek4sNqsaRszFw1QdP3SAVe/fhKeA8syk8KF1ke/XJw KNGl6lKH6y7K6HSqiFSsMHn9jeW8ezupEor4izeLVTg2frWFmLSEfI/wlV40TlYYJ2bJ /1hlp801xOuTWPTHLIOOjUssZ5v2wuZKHuG3X/6eOr1gbnycdRkFpeXpXXDi0x06ivSD DjOfNAlhvJxnP7XU0QCXWgDjPn2QsikV+h1OOmYnoAsYy1qaQLemPlMXsJHeHhnrwZs0 DAsxo6/7/dAlSQQ9lwra+bRkp5eWhXvg7xemRlIB0Xa7O3bdIapzciBarkBUSyOs0I2d j9yg== X-Gm-Message-State: AOJu0YywyIDZoooTfYB4GpXPy3rosfeRloXxNVgdr+UAkTtY65b/dy03 faDtwWaSqi9WCA8jjkKsNA== X-Google-Smtp-Source: AGHT+IG4+DNjCgINUIF1+p4PV1LzE2ATsPzxVn+cnmW8sm1INl/lDJdlHthgFuqi96ey5Pg/XjGhIA== X-Received: by 2002:a05:6a20:728f:b0:19a:5da3:c990 with SMTP id o15-20020a056a20728f00b0019a5da3c990mr312192pzk.101.1705028299332; Thu, 11 Jan 2024 18:58:19 -0800 (PST) Received: from Mac-mini.local ([39.171.199.109]) by smtp.gmail.com with ESMTPSA id i11-20020a170902c94b00b001d3cb4e3302sm1926516pla.214.2024.01.11.18.58.17 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 11 Jan 2024 18:58:17 -0800 (PST) Message-ID: <65a0aac9.170a0220.e7997.6f0d@mx.google.com> X-Google-Original-Message-ID: Received: by Mac-mini.local (Postfix, from userid 501) id 812B8B81A200; Sat, 6 Jan 2024 07:31:53 +0800 (CST) References: <87zfyosw8n.fsf@localhost> <87ttovlb1u.fsf@localhost> <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> User-agent: mu4e 1.11.6; emacs 30.0.50 From: "Christopher M. Miles" To: Ihor Radchenko Cc: Jack Kamm , Liu Hui , emacs-orgmode@gnu.org Subject: Re: [PATCH] Set Python shell in Org edit buffer Date: Sat, 06 Jan 2024 07:29:44 +0800 In-reply-to: <87wmsn6ghw.fsf@localhost> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Received-SPF: pass client-ip=2607:f8b0:4864:20::42f; envelope-from=numbchild@gmail.com; helo=mail-pf1-x42f.google.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, FREEMAIL_FROM=0.001, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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: , Reply-To: numbchild@gmail.com 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-Scanner: mx12.migadu.com X-Migadu-Queue-Id: BBCF235A6C X-Migadu-Spam-Score: -9.67 X-Spam-Score: -9.67 X-TUID: SzOnYnaHEF9s --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Ihor Radchenko writes: > Now, the question is what to do with the existing implementation of > `org-src-associate-babel-session'. It only runs > org-babel--associate-session when > > (and session (not (string=3D session "none")) > (org-babel-comint-buffer-livep session) > (let ((f (intern (format "org-babel-%s-associate-session" > (nth 0 info))))) > (and (fboundp f) (funcall f session)))) > > The questionable check here is (org-babel-comint-buffer-livep session) - > it only triggers when session is already initiated, while ob-python and > some other backends do not necessarily need to start a new session to > "associate" it with Org Src buffer. > > I am tentatively inclined to change this check to > > (or (org-babel-comint-buffer-livep session) > (eq org-src-auto-initiate-session t) > (alist-get (nth 0 info) org-src-auto-initiate-session) > (alist-get 'default org-src-auto-initiate-session)) > > With `org-src-auto-initiate-session' being a customization that controls > whether to associate session for a given babel backend. > > We may set the default value to something like > > ((default . t) ("R" . nil)) I think this customization is reasonable. Agree to make it as a customization option, The ob-clojure CIDER session which managed by "sesman" seems also requires buffer associate with session. =2D-=20 [ stardiviner ] I try to make every word tell the meaning that I want to express without mi= sunderstanding. Blog: https://stardiviner.github.io/ IRC(libera.chat, freenode): stardiviner, Matrix: stardiviner GPG: F09F650D7D674819892591401B5DF1C95AE89AC3 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEE8J9lDX1nSBmJJZFAG13xyVromsMFAmWYkWkACgkQG13xyVro msP9EAgAp7IKFAyxhToXJphj/tm3n8cvVTHLlQqc1NNd4vP66fB/ZAMV6vAEEF/j 7/06/xGiUuuOwfuJX65O+9wgWCy3Fb525jqr8+e2vxpefPDfQw+wAhVT9+WOeb0Q E550aabIM4zKHnJdA4mUsKTjriRAnfsE4vy8ER4wWZqlKeA/Hjr5XRDaTW+pvW62 jYJb9xa+hVAkRcOrp38ZyXBOjyx/IfabeCtewkMxAsIPeM1pmGwBjBXi3xctNG9g pWhE3Bfks2CfzjzPBAtpaWbPFGilyxn9BW5HTo9g39nP3sj2ObLfPdbyOBcMA3lL F8d4lYuDPkt4pqxl011WhBzQvxRZnQ== =Ndvs -----END PGP SIGNATURE----- --=-=-=--