emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Add buffer-local setting to request specific ESS process/ses


From: Sparapani, Rodney
Subject: Re: [PATCH] Add buffer-local setting to request specific ESS process/session name (was: [PATCH] Set Python shell in Org edit buffer)
Date: Sun, 21 Jan 2024 18:21:36 +0000

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 <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-orgmode@gnu.org <emacs-orgmode@gnu.org>
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 <yantar92@posteo.net> 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'.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]