Hi Idor: I’ve 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 = "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 = "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 <[email protected]> Date: Sunday, January 21, 2024 at 5:45 AM To: Sparapani, Rodney <[email protected]> Cc: Jack Kamm <[email protected]>, [email protected] <[email protected]>, Liu Hui <[email protected]>, [email protected] <[email protected]> Subject: [PATCH] Add buffer-local setting to request specific ESS process/session 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 <[email protected]> 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'.
