[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Set Python shell in Org edit buffer
From: |
Ihor Radchenko |
Subject: |
Re: [PATCH] Set Python shell in Org edit buffer |
Date: |
Fri, 05 Jan 2024 14:00:48 +0000 |
Jack Kamm <jackkamm@gmail.com> 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.
For now, I changed ob-R and ob-julia to use
`ess-gen-proc-buffer-name-function'. This is indeed cleaner.
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=b6643884c
With this, I am wondering what would be more appropriate place to set
`ess-gen-proc-buffer-name-function' - `org-babel-edit-prep:R' or
`org-babel-R-associate-session'. Same for python and other backends.
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
- Re: [PATCH] Add buffer-local setting to request specific ESS process/session name (was: [PATCH] Set Python shell in Org edit buffer), (continued)
- Re: [PATCH] Set Python shell in Org edit buffer, Ihor Radchenko, 2024/01/10
- Re: [PATCH] Set Python shell in Org edit buffer, Jack Kamm, 2024/01/14
- Re: [PATCH] Set Python shell in Org edit buffer, Ihor Radchenko, 2024/01/16
- Re: [PATCH] Set Python shell in Org edit buffer, Jack Kamm, 2024/01/16
- Re: [PATCH] Set Python shell in Org edit buffer, Ihor Radchenko, 2024/01/28
- Re: [PATCH] Set Python shell in Org edit buffer, Jack Kamm, 2024/01/28
Re: [PATCH] Set Python shell in Org edit buffer, Christopher M. Miles, 2024/01/11
Re: [PATCH] Set Python shell in Org edit buffer,
Ihor Radchenko <=
Re: [PATCH] Set Python shell in Org edit buffer, Ihor Radchenko, 2024/01/28