From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 2KyZOy5OcWXvFQAA9RJhRA:P1 (envelope-from ) for ; Thu, 07 Dec 2023 05:46:39 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 2KyZOy5OcWXvFQAA9RJhRA (envelope-from ) for ; Thu, 07 Dec 2023 05:46:39 +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 774FA44E27 for ; Thu, 7 Dec 2023 05:46:38 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=Dyv6fx57; 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=1701924398; 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=Cel5WNWwLfOkIVLXuT2cZziOBdD8NrQLzzjznvQiiEU=; b=rRbROrqgrWxNm8aNkPoRxUud4Yo6Hno6JCD+pl5+fGxcCX/ViczSMxnvfvUYK4nhE1sic3 nLWoXEw40/B8+X1FzzL7T0pWStI70cb+VEZ1vRoAW9vHp0R4sWLSPOR4oG0i0DXIRNKa9y neZwVYe9W4WfggLFmF1uc4gY/6ZGenMNpoC+WpUYA8QqNKolrngtq7QW27wne5sTeZRrHw ROwKt38CfFYkbFTP/aBtv6vhD6yoQPuVYe2PKex+0/65T5pS/CuKwALOvPLRi5sEeclL4x x40zsTEpmWrgda0QIsdyvEZp0bm8uacAI4+2cerSaYkPULS3y0+L/+yxJ4X0zg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1701924398; a=rsa-sha256; cv=none; b=VuEOtctJwfET3Wn/pD8ygmLCriufdY+2TOAfpUaXCruhCSgBK2mCSlfFCDGDg0K+uVAe4h rkx7uoY1QAFpL0+fd+axvflRVlpCywHmZ5f+PO7LI+JWvCe4KeI7moSC3IHv5+ZzwhNHXm ha/vQtcDeZCtb9L16wUcVH/5HFxLa5H4VnalgwzrQlyELks125zDbE87cX4wT0SFVj7PZx ZGgweC8217ayTLuSG0IwtW2QnKcoZsP1jPXZ87B9/+/NQfQ4Xw+/N9/kZQoFYL9ZAmrf0N hr0104IxlEc904UzfndDPwlPhMPzVaniALO2sjWPEP/31769z5VJo/8N08deZA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=Dyv6fx57; 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" Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rB6GX-0007b3-CA; Wed, 06 Dec 2023 23:45:37 -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 1rB6GW-0007aj-8x for emacs-orgmode@gnu.org; Wed, 06 Dec 2023 23:45:36 -0500 Received: from mail-vs1-xe2d.google.com ([2607:f8b0:4864:20::e2d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rB6GU-0006Gg-6I for emacs-orgmode@gnu.org; Wed, 06 Dec 2023 23:45:36 -0500 Received: by mail-vs1-xe2d.google.com with SMTP id ada2fe7eead31-464a3b84ef7so165738137.1 for ; Wed, 06 Dec 2023 20:45:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701924332; x=1702529132; darn=gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Cel5WNWwLfOkIVLXuT2cZziOBdD8NrQLzzjznvQiiEU=; b=Dyv6fx57gBO1zDa+HvKIResZeKZA+NZ281ZM/xNyGbhRHlR5NZPdC40raK65WGeib4 iw2OOq3q7f3jQ66JRSVq64JgT5nfzl6R33SZWQinB3EIoMSSjUSbFyZ+EYl1u26l/28V ghUBRsx6nqyCmXlgkuggnQTmwPnHrYMYGt4H6wVLsJshH9dnsYYCDP1xAjhfN2qSoiTz LFnrYbLjtP7sM5bFlPAJ6eope0foxfuv0vv1OtDQOCNAe/S4wmqStGCEevr33gyobAxf sgH6uhL/deo/AfoNtSVeJ4ApMwvApm3DWfitp8qEahcCQ3Gf4PI3q396oz7SqDDMVK3A yHFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701924332; x=1702529132; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Cel5WNWwLfOkIVLXuT2cZziOBdD8NrQLzzjznvQiiEU=; b=Gxfp6NiCxUK2zcp1N4xOT30adUQgMPnwh8ym1yLM28BXIUKaXm4ch7issuctwdirQs i7iGPD4aOmfXXZBSWdgkx7gPtTtxFrd3/hLt1f3/3NxIsk2r729Od8gLPB57RwHFBphP jmZ6xFFYv3RyQWoC3W2mcm+CfJwd4WnF4hOdEp7iUMMKuXFXFp3cXAIjsUJvDpP9Y9ri 5MBD1WGCIele78D+sr4NGh/AgBjtGM7D4t9mtTywl1djgGSwfDztqzWDBa/AEHAw+4Jc e4AMfQkPtJ1bAR4C7MgDnanADvKLVlJ+FPxO5gNDrsnCT1ArodREkh5xxr8y/dVBVZ9o +bkA== X-Gm-Message-State: AOJu0YxxRXIl2tEO353GjU+++XLmlRtRSqBadQ88faAw4lTZI9vylfp5 n5/H64U8Gyut4mAqydEt8VbtPikmtS/riVCyX38= X-Google-Smtp-Source: AGHT+IGnKmRs7ZuGeaLGG/F4OHe53FoiYGLiFyrpTcvFOQnzm4AZGTrEXF/juSO93HmH2COWn+TXLSLMi6CodwDncoc= X-Received: by 2002:a05:6102:3161:b0:464:9e34:e459 with SMTP id l1-20020a056102316100b004649e34e459mr1860762vsm.13.1701924331042; Wed, 06 Dec 2023 20:45:31 -0800 (PST) MIME-Version: 1.0 References: <87zfyosw8n.fsf@localhost> <87ttovlb1u.fsf@localhost> In-Reply-To: <87ttovlb1u.fsf@localhost> From: Liu Hui Date: Thu, 7 Dec 2023 12:45:19 +0800 Message-ID: Subject: Re: [PATCH] Set Python shell in Org edit buffer To: Ihor Radchenko Cc: emacs-orgmode@gnu.org Content-Type: multipart/mixed; boundary="0000000000002fda15060be42328" Received-SPF: pass client-ip=2607:f8b0:4864:20::e2d; envelope-from=liuhui1610@gmail.com; helo=mail-vs1-xe2d.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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_ENVFROM_END_DIGIT=0.25, 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-Scanner: mx11.migadu.com X-Migadu-Spam-Score: -8.36 X-Spam-Score: -8.36 X-Migadu-Queue-Id: 774FA44E27 X-TUID: pqtvgOuKcER7 --0000000000002fda15060be42328 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Ihor Radchenko =E4=BA=8E2023=E5=B9=B412=E6=9C=886=E6= =97=A5=E5=91=A8=E4=B8=89 21:20=E5=86=99=E9=81=93=EF=BC=9A > > Liu Hui writes: > > >> Makes sense. > >> I think we may drop a note about this new feature in ORG-NEWS. > > > > Thanks, I have added it in the attached patch. > > ... > > +When editing a Python src block, the editing buffer is now associated > > +with the Python shell specified by the src block's ~:session~ header > > +argument. > > May you also mention what this means in practice? Like that users can > now send region for evaluation right from the edit src buffer? > Otherwise, it may not be very clear for ordinary users what this feature > adds. Yes, I have updated the text and you're welcome to improve it. Thanks! --0000000000002fda15060be42328 Content-Type: text/x-patch; charset="US-ASCII"; name="0001-Set-Python-shell-in-Org-edit-buffer.patch" Content-Disposition: attachment; filename="0001-Set-Python-shell-in-Org-edit-buffer.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_lpupqh2u0 RnJvbSBjNTAzYjJlZDUxMTZlMmFiYWUyNTQ1OWIwOWFiYzkxOTA3NGFjNTRhIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBMaXUgSHVpIDxsaXVodWkxNjEwQGdtYWlsLmNvbT4KRGF0ZTog VHVlLCA1IERlYyAyMDIzIDExOjQwOjM4ICswODAwClN1YmplY3Q6IF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