From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.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 AKwMFSlhrWWWIAAAe85BDQ:P1 (envelope-from ) for ; Sun, 21 Jan 2024 19:23:37 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id AKwMFSlhrWWWIAAAe85BDQ (envelope-from ) for ; Sun, 21 Jan 2024 19:23:37 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=mcw.edu header.s=11132019PPKEY header.b=UqJ9tV9U; 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=quarantine) header.from=mcw.edu; arc=pass ("microsoft.com:s=arcselector9901:i=1") ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1705861417; 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=JnaF4LAK8TPN45G4by2edHKPadmag98u0V5xGsiujII=; b=YZOQ28RY1Bl+YDCybqbsQ277sy6L9JHFSjdzejYXlCNg4iMUxkH2bpfsLyRWiuekeBbIN8 ztjAl/G6MV0RXPSuop8PKDr9NuyLYSaSAOrPlPfwFYcxmnc9daNbR7MntTH3Ibu2Y+S0RB G33jucdO6bktUeFgWMjBKhX7q5JeOgboEvfsAIwxGKIL4+5JmQ4F5Egdd3bTtwM2k04HCv q+WFoGB9yl1KUlN2+WujKt4yVQy5BN44IFGRNMiCIc5wDbzU/tovP90raX5iqUEez1/2c2 ED+EGugec4SRP9cYnfSVbm04lu71aQ12Y+P67iKPR3yYh2q0jzl8mA598h7pwQ== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=mcw.edu header.s=11132019PPKEY header.b=UqJ9tV9U; 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=quarantine) header.from=mcw.edu; arc=pass ("microsoft.com:s=arcselector9901:i=1") ARC-Seal: i=2; s=key1; d=yhetil.org; t=1705861417; a=rsa-sha256; cv=pass; b=M7qF77YfX34be1Lff9MkgaibQhGS/R1XThrX0i1V2H13wIZY760mF3XQvkaSclADokDZd8 HY1qrLQw+7dVDAatVDlL1XtPfC1kFi4g1kKowqMCbcicvxlg05ovU8qwiJ3HkN4w72wNtW hMLjx6sDKq8/Z/XxG17Ww6scLp40Iyi6MIA4rb1bbxB8M/g2H63et+oQHpfiqQn6yY5MIo mUeKvIH00cYLMGoU5k3d2KMQRa42TzM3XYCeY2DbSAX86dobr+qu9wJ9s78mcZyt3Dh/Je tE5BUHdgNI4d4+yQdW2xfKz1vGlschCZxM7iEACzUgJFba+s/gYwKYFOl+/GmA== 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 90B6A5315B for ; Sun, 21 Jan 2024 19:23:36 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rRcS7-0003ut-50; Sun, 21 Jan 2024 13:21:51 -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 1rRcS3-0003nb-6K for emacs-orgmode@gnu.org; Sun, 21 Jan 2024 13:21:47 -0500 Received: from mx0a-0021c101.pphosted.com ([205.220.162.138]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rRcS0-0001XC-Gw for emacs-orgmode@gnu.org; Sun, 21 Jan 2024 13:21:46 -0500 Received: from pps.filterd (m0195925.ppops.net [127.0.0.1]) by mx0a-0021c101.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 40LElVXk002720; Sun, 21 Jan 2024 12:21:39 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mcw.edu; h=from :to:cc:subject:date:message-id:references:in-reply-to :content-type:mime-version; s=11132019PPKEY; bh=JnaF4LAK8TPN45G4 by2edHKPadmag98u0V5xGsiujII=; b=UqJ9tV9UpLGd8bh9PRHPNiyKa5VCyop3 hF2yLNQIdVBLUJz+dAIKUjeb3U1nwpb5DccnORMSUgxIlUA1cflWZRBMokhFeRnD coa+tvt6G/NB2vVQ4mnqBSe9363cGbrLqiSB80GFRXj34ToQWKyKXJvZl552F79t lDA38lmzjAGqMQCSZ0exrHZpcnNNFgI2iJcw6vvCN9QCZHx7MKtyW1YaaEGmZy1d Rt9lKeFUBblGvOC+bz3qKVDtvNGya1HQVxdpu+RtIiV/Cf8JQsKL4owPJYjlBlRM 01wpjB0g94DHxONSRfa8rURBd49vnevIsUMv0IKLVdUWNGcz74YPtQ== Received: from nam12-mw2-obe.outbound.protection.outlook.com (mail-mw2nam12lp2040.outbound.protection.outlook.com [104.47.66.40]) by mx0a-0021c101.pphosted.com (PPS) with ESMTPS id 3vram2jycr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 21 Jan 2024 12:21:39 -0600 (CST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dhoOi/V7v9oWJM/3YIF51Efu+9fQYJq9GUuKjwpWivfJOVVW7q/DPgtck3jOtqM6u021fdZtTZpycI8uDUUF3VB/J77Yay/VW/1GM9CQHtfdjtlraD90l/efdRuVxbWF1XBc2vfNcnjbl4Kvw/jjcPSq3afO4qsh+emkWxjaLwKhMvlqQrwJBp4nwEU63Ojh+EqtfesQdxLZmOMXCYG37nG5nXQTX+crVA4RoL1KEiJ+vofqDqhOHPJgKJOXPnVBz7MBHEcBdIrgzAKD6N3++gNU/6Lmzj/aZWQcEk8UTrMZVsjpbV+dHWXd3nP1k2V6Y6106jR9tfBsw1qZhPtwyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=JnaF4LAK8TPN45G4by2edHKPadmag98u0V5xGsiujII=; b=GX73Dr56BFw2b02GaluuawNllbblNhddSeckouKFsKe896J0tzDllBANDJP5eqTjYeVdN1CDZNcFHvs0VXCgdo3ZbCi4aKpWG5OVGAwhjoHm25ybwG8ziE6H2a4KFA/Hm2j8ktcekdefnPHZYUaeoW4As6c6vTblWPWG7AYeC+1i0r2eAKJZ8rldN/YTDwAl9dAKZvm8HAk7ms+fe03yy9H6a4FXru77mzDtoBFGtkjaKeUDBRrx80QOwJnDedS1lBScrq5e2DOpaYJW2Pt1Z9tQnpMUrcwkBN9HmgYSYH3rLBhaQDWcSD/rJ/sWVR+nQCSQjKKkIp3ZWYM7jZlAGQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mcw.edu; dmarc=pass action=none header.from=mcw.edu; dkim=pass header.d=mcw.edu; arc=none Received: from CO6PR01MB7452.prod.exchangelabs.com (2603:10b6:303:143::7) by BL1PR01MB7649.prod.exchangelabs.com (2603:10b6:208:394::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7202.31; Sun, 21 Jan 2024 18:21:37 +0000 Received: from CO6PR01MB7452.prod.exchangelabs.com ([fe80::5e7a:8bb2:b564:78df]) by CO6PR01MB7452.prod.exchangelabs.com ([fe80::5e7a:8bb2:b564:78df%4]) with mapi id 15.20.7202.031; Sun, 21 Jan 2024 18:21:36 +0000 From: "Sparapani, Rodney" To: Ihor Radchenko CC: Jack Kamm , "ESS-core@r-project.org" , Liu Hui , "emacs-orgmode@gnu.org" Subject: Re: [PATCH] Add buffer-local setting to request specific ESS process/session name (was: [PATCH] Set Python shell in Org edit buffer) Thread-Topic: [PATCH] Add buffer-local setting to request specific ESS process/session name (was: [PATCH] Set Python shell in Org edit buffer) Thread-Index: AQHaTF9Sos+qtJUyp0O4ggQILpKZeLDklBhS Date: Sun, 21 Jan 2024 18:21:36 +0000 Message-ID: References: <87sf4bsm1w.fsf@localhost> <87mstw18r4.fsf@gmail.com> <87bkaak0ol.fsf@localhost> <87ttnyz0jv.fsf@gmail.com> <87wmsn6ghw.fsf@localhost> <87o7dxu15h.fsf@gmail.com> <87msthwbfz.fsf@localhost> <87le91t13e.fsf@gmail.com> <87zfxgxb8m.fsf@localhost> <87r0ir2ln8.fsf@gmail.com> <87zfxewewe.fsf@localhost> <87le8x3e0a.fsf@gmail.com> <87cyu9qt4e.fsf@localhost> <877ckhkmtd.fsf@localhost> <871qapkkqt.fsf@localhost> <878r4ihppr.fsf@localhost> In-Reply-To: <878r4ihppr.fsf@localhost> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: CO6PR01MB7452:EE_|BL1PR01MB7649:EE_ x-ms-office365-filtering-correlation-id: 68c4ab17-e5b5-41ee-6f36-08dc1aadcdfa x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: JOlo9dmsuF1IQVZN+npuz4CYEd5MPzqPTwS4qEHA3GfenGttR7Zuil0gk9Ntzr3M61YyLfUwInFBgH+HHwC9QyxiH9sLl5I35AjJljVZVC8lVo9iPn+JIX19HWwYB39xghdz8n3aSe0R3w0RCDtxF1qL6qhUvUBVwn9gNPxctOyYDFxyfre4UBIgI/QI71bThPQv/YJ3m8x/sxTA48IEI1Vu9EOZNXbOxhDh281ZZqhLZkgxFFL2BRxa6BTPzM2VDv9LjnxB2QGRMZaQCvJcwbTlrdd8E0hdK8igHm3XVCzMvyJjsoc8hiWLjtTaLpFhpbcfYk/62mRxcW7C0f7+AAWnrEfdwY3am3XNkyozHg6SkZgKNj/vhrb4PuzPDtYBpxoWAgOfn1ZW/bTEkUl0KYyLKBR9j6AjmyzU+zJL5sY2lkzcEar6RnIs0mBeaxWuvbj78lJhmpTLR2KMyap6xlRgiT6pNj0zzL1ZqjdvptB2bPfZrWVOv5rO4pPWo9sSx7fYnyMdNcjGZI9ScO1ccD0nuaQeW5gXMnMV3QH/XWYwEt4+Uq60GPlLFA0R5O8zok4LJWCUOZ9JyIqS42kcE0W/HfxFi6SbUERmET+6L2x7WNL0sO2nwkOdccRYa5smJbGhI03SKcuxkLVtj5uoTid75vm2O99CDSJ0tpVNJ6WVaM8yYIS9FE54RZHdEk4i x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CO6PR01MB7452.prod.exchangelabs.com; PTR:; CAT:NONE; SFS:(13230031)(366004)(346002)(39850400004)(136003)(396003)(376002)(230922051799003)(230273577357003)(230173577357003)(186009)(1800799012)(64100799003)(451199024)(55016003)(38070700009)(75432002)(5660300002)(91956017)(6916009)(66476007)(66446008)(66556008)(54906003)(76116006)(64756008)(66946007)(2906002)(26005)(6506007)(71200400001)(7696005)(478600001)(316002)(786003)(8676002)(4326008)(8936002)(9686003)(53546011)(52536014)(122000001)(41320700001)(83380400001)(38100700002)(86362001)(33656002)(41300700001)(552734003); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?Windows-1252?Q?wltxg2ovpT+w0R+Oj+d53PGSIsVIYUQbaQ1NWnq6vMf0Y2CH3CkKcNNI?= =?Windows-1252?Q?Y+M9PpElJCd6ysSgZ4pDwfvCjxhZh9d6zsn9GYhi63Eh+N9N9Fi2fvY0?= =?Windows-1252?Q?KSyZ/FHRZkfgRZnBgymCrW4DUCl36XZ+eGC8i6nURyR3O69TWCG5ePjo?= =?Windows-1252?Q?hY0bzeKPtkc5mmcmZ9QUMkI28j1w1Xh+yNdS2fl5/IZWmIQDXOe6btA9?= =?Windows-1252?Q?y/BMKlUFgOcuzBkFe7mZ8Ls7pbrRpoI6MJdK+Xi7E/jN+xS/3axWRyZ/?= =?Windows-1252?Q?ZrmLpyK6alv0eOnMYR1KKamZYiHHEj28M1mLwbxOZP+7OKqSY4JHjLmb?= =?Windows-1252?Q?dHUQJjGi+U7cu2t1IxLY3MoEIgMZtyqQ1X8PQ6NFmoRW5HoKEYa+exih?= =?Windows-1252?Q?gqZOIjsDeEvLqOazqUgDVjmYYBXJsfavW59tHCuef5iQrPvbXE2DGVkS?= =?Windows-1252?Q?A69RV6Syv0Sng+Frx3wwr9cRlmzQ/XjcB26zKbAhgUquy0uIIrc3uKE0?= =?Windows-1252?Q?CL9e00ZEMkgjh69XZRGLhiJMM2BfinuPT4eakopU0h42ycvONqOHrOe8?= =?Windows-1252?Q?ITSgeYM499FoOKByGfIj7Maq3NUMDECgIN4PJx3QVsQpAFc01vh6gxqg?= =?Windows-1252?Q?feldSRPBH8C4LIjt74t2abl/iozWmXpJ8ILtWuSpOgMb/DgRhFYwjgn0?= =?Windows-1252?Q?i0/cenFwVdSeBbE7oncWthrfDYE7d3Ic/CFp/gJ0VJ+c5H5HW2T+Hk+T?= =?Windows-1252?Q?ONYza6ki72ocxPETCYWzNR9uu19vWiivMGtD5VyQJIAfVShfazO2aLlm?= =?Windows-1252?Q?QRHuHZ67kSvctqnIPUz8mQhO8kBlFcbcyDZ7dtD64ebQMY81pWW/8yRD?= =?Windows-1252?Q?9FK5sa4dh0NVOI8KTfYwdgTxVyo0ykcHs6aFCRnDzxR99a1vy3gcjY6E?= =?Windows-1252?Q?pGg1XHP2Jlcn2qDbtvMuDJTnTsEoCktePApY6OaMBJPOX2oeZf53koYB?= =?Windows-1252?Q?AHOOrTRXWsrOqVU2h2RlsWzUr+XM0XeA0WRAPwwCxMFWYsWOxJ/e2Vso?= =?Windows-1252?Q?uHBvK1aXzQ4HabmcNsmxKuHVUazw6wIRhkkHirXNk2gngmXjU5vAEC5/?= =?Windows-1252?Q?xsKWBl+Dpx30FgM5ezRI9teYaECdbnA9Gn88ZgfVQ17nfRdXwzS3noyp?= =?Windows-1252?Q?+aTaAzXoZmA6ic08H0A3kgaT8l1SxT4jsvFhCdcMYJls3jLcWQSpZSfl?= =?Windows-1252?Q?BDz/IKciQbX7CzJlo37l6mgpSClZHJSOIKnC2p+PP6FXHCgLEYiXs46y?= =?Windows-1252?Q?Dd6xelwK7mAxzT2vEttZQnuOLdlCtMLQnrMP89xNiT4xyY/bLZ2GVHHo?= =?Windows-1252?Q?8MjV/ngSNYs0+Swzq1f4SP4k9BGHKjKkYgfb28FdPTe7qCVK37JP08hO?= =?Windows-1252?Q?EPPqM5K10UrS84tZcR6EZ+5OPkv8/DhIeTw0XTHmWee9ZNE1GH/tbD5K?= =?Windows-1252?Q?SEjhbYG2Ka7eGbdZzmAxP6CZTbPSFvySPsGlVAkGiT4jy2BIWf+noSIW?= =?Windows-1252?Q?xbbS246FjzsYxBEXfMSmX0WsEIfayCBB9/lwl3yImN7C+W6bBwy8FcYN?= =?Windows-1252?Q?V23RaaD+fzortit4VUIYUYK05qxlu/qLKjw26sl2k+l34PHIpduQO56y?= =?Windows-1252?Q?3ZP+MM4fiEaBqeSIZCbVuv6S9ge4Nj2A?= Content-Type: multipart/alternative; boundary="_000_CO6PR01MB74523720EFFF4A782CEB1E04CB762CO6PR01MB7452prod_" MIME-Version: 1.0 X-OriginatorOrg: mcw.edu X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CO6PR01MB7452.prod.exchangelabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: 68c4ab17-e5b5-41ee-6f36-08dc1aadcdfa X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Jan 2024 18:21:36.6994 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 9963652a-ab0a-4f1b-994a-b49e83d90f0e X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: O6iXE5gFGFXAj2bS/OcKR05MFLYAEWqRP8cGa1v/c7+38HLBmtavru2JD4Lv0M6dEytcQ+fluZw9EiQnI1OCbg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL1PR01MB7649 X-Proofpoint-GUID: wffdBmZal0_9dhhPQQVrKVg1fL5k9YwV X-Proofpoint-ORIG-GUID: wffdBmZal0_9dhhPQQVrKVg1fL5k9YwV X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-01-21_01,2024-01-19_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 clxscore=1015 impostorscore=0 adultscore=0 lowpriorityscore=0 spamscore=0 bulkscore=0 suspectscore=0 phishscore=0 mlxlogscore=999 priorityscore=1501 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2311290000 definitions=main-2401210143 Received-SPF: pass client-ip=205.220.162.138; envelope-from=rsparapa@mcw.edu; helo=mx0a-0021c101.pphosted.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, HTML_MESSAGE=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: -11.00 X-Migadu-Scanner: mx13.migadu.com X-Spam-Score: -11.00 X-Migadu-Queue-Id: 90B6A5315B X-TUID: kmFS0rDRTNAC --_000_CO6PR01MB74523720EFFF4A782CEB1E04CB762CO6PR01MB7452prod_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Hi Idor: I=92ve test that and it works for me per your prescription below. And, I have committed it to the ESS git repo. Thanks! 1. create and open test.R file containing x =3D "foo" 2. M-: (setq-local ess-gen-proc-buffer-name-function (lambda (_) "session1"= )) 3. M-x ess-eval-line 4. Observe "session1" R comint buffer displayed 5. create and open test2.R file containing y =3D "bar" 6. M-: (setq-local ess-gen-proc-buffer-name-function (lambda (_) "session2"= )) 7. M-x ess-eval-line 8. Observe that the line still goes to "session2" -- Rodney Sparapani, Associate Professor of Biostatistics, He/Him/His Vice President, Wisconsin Chapter of the American Statistical Association Institute for Health and Equity, Division of Biostatistics Medical College of Wisconsin, Milwaukee Campus If this is outside of working hours, then please respond when convenient. From: Ihor Radchenko Date: Sunday, January 21, 2024 at 5:45 AM To: Sparapani, Rodney Cc: Jack Kamm , ESS-core@r-project.org , Liu Hui , emacs-orgmode@gnu.org Subject: [PATCH] Add buffer-local setting to request specific ESS process/s= ession name (was: [PATCH] Set Python shell in Org edit buffer) ATTENTION: This email originated from a sender outside of MCW. Use caution = when clicking on links or opening attachments. ________________________________ Ihor Radchenko writes: > We recently discovered `ess-gen-proc-buffer-name-function', but it does > not work as we expected, unfortunately. (which is either because we > misunderstand something or because there is a bug). I am attaching tentative patch that will make `ess-request-a-process' obey `ess-gen-proc-buffer-name-function'. --_000_CO6PR01MB74523720EFFF4A782CEB1E04CB762CO6PR01MB7452prod_ Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable

Hi Idor:=

 

I=92ve test that an= d it works for me per your prescription below.

And, I have committ= ed it to the ESS git repo.  Thanks!

 

1. create and open = test.R file containing
   x =3D "foo"
2. M-: (setq-local ess-gen-proc-buffer-name-function (lambda (_) "sess= ion1"))
3. M-x ess-eval-line
4. Observe "session1" R comint buffer displayed
5. create and open test2.R file containing
   y =3D "bar"
6. M-: (setq-local ess-gen-proc-buffer-name-function (lambda (_) "sess= ion2"))
7. M-x ess-eval-line
8. Observe that the line still goes to "session2"

 

-- = ;

Rodney = Sparapani, Associate Professor of Biostatistics, He/Him/His

Vice Pr= esident, Wisconsin Chapter of the American Statistical Association

Institu= te for Health and Equity, Division of Biostatistics

Medical= College of Wisconsin, Milwaukee Campus

&n= bsp;

If this= is outside of working hours, then please respond when convenient.

 

From: Ihor Radchenko <yantar92@posteo.net>
Date: Sunday, January 21, 2024 at 5:45 AM
To: Sparapani, Rodney <rsparapa@mcw.edu>
Cc: Jack Kamm <jackkamm@gmail.com>, ESS-core@r-project.org <= ;ESS-core@r-project.org>, Liu Hui <liuhui1610@gmail.com>, emacs-or= gmode@gnu.org <emacs-orgmode@gnu.org>
Subject: [PATCH] Add buffer-local setting to request specific ESS pr= ocess/session name (was: [PATCH] Set Python shell in Org edit buffer)<= /o:p>

ATTENTION: This email originated from a sender outside of MCW. = Use caution when clicking on links or opening attachments.
________________________________

Ihor Radchenko <yantar92@posteo.net> writes:

> We recently discovered `ess-gen-proc-buffer-name-function', but it doe= s
> not work as we expected, unfortunately. (which is either because we > misunderstand something or because there is a bug).

I am attaching tentative patch that will make `ess-request-a-process'
obey `ess-gen-proc-buffer-name-function'.

--_000_CO6PR01MB74523720EFFF4A782CEB1E04CB762CO6PR01MB7452prod_--