From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:1008:1e59::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id oNwnGrivkWV15wAAkFu2QA (envelope-from ) for ; Sun, 31 Dec 2023 19:15:20 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id cA8qFbivkWV3XQEA62LTzQ (envelope-from ) for ; Sun, 31 Dec 2023 19:15:20 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=jcZwMkep; 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=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1704046520; 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=x0+zHoqUwMoX/hrlGBR+uv/kDgvk6UcxE2TTIqSKg7g=; b=hcM7uFQ44T7dtjKaZlG18Nd03EULUymUw1cXWLVQRLCKUC7WnqT5oe3lZuaJH1GOIxU37S tDKMw5siofPEThfgZUgDwDNkYaZzclvECRAtVhVUgmC16uc6iqvcALnlOC8KsOSE3l1arf vx3AkWH7KsRTjbp8v9TOIJ8CEjfvninV6XOAwbQrihFUslFuL8t6z6+Jc4F0NdN8tQmgxR XQwepmSdPh+5lLwpvatiw0Abf/FBP7G/0SUCjqSSYaGqrtDEqIqaQLvXigOLkaQAZdehHj vbuK9V2CVIzDxlp7ME/4gqCAwzH6j9qPdjL6yQRXDmtfeYqOVR4tdcCRcfz5Aw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=jcZwMkep; 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=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1704046520; a=rsa-sha256; cv=none; b=jin/Ex3I0C9mRVL5NskWWDjV60G7v1JkwG9GAEQqA2wlvJ1nOUFadAX19Rs/1l9DG0Pi1A j4XaGNZPGszNs0ix8FeleofyZvgPHoyzKpvV3lyCZybse9eF2Y6BMOlFfzD+dmZOJMv/3U hRDUsFVtvAzF5EmSsFGWdP2Fe1BEWdC8YSQtuxFCO3kutCXxYGrE51fqTkiFzU3EMotPOf dCKSXFVJVO4ywPzUEBTfKneM5LQRHNxCBbENE7MgTLi7ew34qBry8/CqbZoGj71OIF83bD I6zRRYqXW7iWs+PAHnwAtkb6ylBEi5IwIqyWQs6nD1YTLNrSEWXOumuiqHJx2A== 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 151DC6EB2A for ; Sun, 31 Dec 2023 19:15:20 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rK0KY-0006qD-VG; Sun, 31 Dec 2023 13:14:34 -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 1rK0KY-0006px-2w for emacs-orgmode@gnu.org; Sun, 31 Dec 2023 13:14:34 -0500 Received: from mail-pg1-x52d.google.com ([2607:f8b0:4864:20::52d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rK0KW-0007sH-MB for emacs-orgmode@gnu.org; Sun, 31 Dec 2023 13:14:33 -0500 Received: by mail-pg1-x52d.google.com with SMTP id 41be03b00d2f7-5ce10b5ee01so3240931a12.1 for ; Sun, 31 Dec 2023 10:14:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704046471; x=1704651271; darn=gnu.org; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=x0+zHoqUwMoX/hrlGBR+uv/kDgvk6UcxE2TTIqSKg7g=; b=jcZwMkepnWU2jia0zB1N+1ib6wQm4OSPiZSsdXqPzb9nggZo6S5gfebOcChtS/KoCX aCrQoBnUrc5GpRQ6xZ5hr2afWtAU0KzCSOoq5upR3fyFqX7V+/YaB4ZbkmBagnDFZ2wU ZkrvzLbKn13QsOP7XTjGGU+XymO3BrDf5aBOeWvG7aS+wX2p52o56ICADC5yCgA4J2Kn 0AEXN+UsGblLZY6pmpwzdeFR7G/VCmJ0DEVIBduSv7xuCbG72iFLenxrJfOQk+y2yZ2y +OFb/ZoyGAUwPzi/UB2nXlSVWUbmvLvRXTSnP7TWPrTidZIQlcs658JePDFLmKVuLpiu xJAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704046471; x=1704651271; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=x0+zHoqUwMoX/hrlGBR+uv/kDgvk6UcxE2TTIqSKg7g=; b=VBrLrZUYJmtMO0rcn9jB3D8fp9ayaqXFXRWB1rsvuVeFO7H+WKpCMjlIsVMP81imN6 PpEG0Q43k+6tn4ZcGeFWrEouqn7c7hKXFl3OlR5r42IizBTDk2/l/tpkqE95oxafQVEk r0p6YTXDG8JBozgePhlIf+9eeV2yM4Bgk1Lmra/cEj79AeJVL5Pyc4+LjKcpLvvF8ghD Wu8GIdu4I3glNK2iGq2yn5zDxAbQ76mkhxzoRjNX8JFEsXtZZ6nKGOu0J6OxXwGmBZ9/ eET5J4eq1RSBFDoEkHCGCZr0SxDCCMrgB0IuS6CXv7CJiKtAcWAnZKcjgehdka9tFg8H rBVA== X-Gm-Message-State: AOJu0Yx0d8GtEknibK/ex4KU4FNdc9wpRGdp3KkqsT6PHvuNO8CcJKnS kuZf4fS35LNAI918fPckdz+6LDlm4P4= X-Google-Smtp-Source: AGHT+IEuhY6kbRPuuQd26cKeg+Vzd1SvoPIgsZ77+Xv3AQ+3zyz1AME4OWcaRplQ88mhaXzuxHrM1w== X-Received: by 2002:a05:6a20:8e27:b0:196:ccaf:f66a with SMTP id y39-20020a056a208e2700b00196ccaff66amr2082025pzj.3.1704046470210; Sun, 31 Dec 2023 10:14:30 -0800 (PST) Received: from localhost (157-131-78-143.fiber.dynamic.sonic.net. [157.131.78.143]) by smtp.gmail.com with ESMTPSA id a28-20020a630b5c000000b005cdc9b091b7sm17606052pgl.53.2023.12.31.10.14.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 31 Dec 2023 10:14:29 -0800 (PST) From: Jack Kamm To: Ihor Radchenko Cc: Liu Hui , emacs-orgmode@gnu.org Subject: Re: [PATCH] Set Python shell in Org edit buffer In-Reply-To: <875y0e8qun.fsf@localhost> References: <87zfyosw8n.fsf@localhost> <87ttovlb1u.fsf@localhost> <878r6647vv.fsf@localhost> <87bkb2rqer.fsf@localhost> <87edfwsuvx.fsf@localhost> <87sf4bsm1w.fsf@localhost> <87jzp018lv.fsf@gmail.com> <878r5ek0jj.fsf@localhost> <87h6k10zcg.fsf@gmail.com> <875y0e8qun.fsf@localhost> Date: Sun, 31 Dec 2023 10:14:28 -0800 Message-ID: <871qb21bp7.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::52d; envelope-from=jackkamm@gmail.com; helo=mail-pg1-x52d.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, 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: , 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-Spam-Score: -6.97 X-Spam-Score: -6.97 X-Migadu-Queue-Id: 151DC6EB2A X-Migadu-Scanner: mx10.migadu.com X-TUID: yj+ImJcQUl3l Ihor Radchenko writes: > python.el is convenient as it allows setting the session buffer name in > advance via buffer-local variable. Then, all the normal python-mode > commands, including `run-python' or `python-shell-send-region' will work > as expected. However, other babel backends like ob-R do not have such a > luxury (see the dance with renaming R process buffer in > `org-babel-R-initiate-session'). For R specifically, using `ess-gen-proc-buffer-name-function' might simplify things. Though of course this doesn't solve the problem more generally for other languages.