Liu Hui <liuhui1...@gmail.com> writes: >> 2. Check the new variable and attempt to run >> `org-babel-<lang>-associate-session' in org-src-mode definition. > > I think associating the edit buffer with some session doesn't require > starting the session, which is at least feasible for ob-python. When > editing python src block, users can use C-c C-p to start the session > themselves for evaluating code. So it would be nice to allow a value > of 'associate in the customization, which means just running > `org-babel-<lang>-associate-session'.
I think we have a misunderstanding here. Didn't we just discuss that C-c C-p in python is not equivalent to `org-babel-python-initiate-session'? Also, by "start a new session" I meant "start a new session if there is none running already; if a session is already running, unconditionally associate Org Src buffer with that running session". -- 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>