Jack Kamm writes: > On executing any python session block I am getting the following error > which I think is caused by the above: > > Debugger entered--Lisp error: (void-variable buffer-name) That's a mystery. > Also, make shows a byte-compiler warning about this: > > Compiling /home/jack/src/org-mode/2024-01-async-file-results-dir/lisp/ob-core.el... > > In org-babel-session-buffer: > ob-core.el:785:15: Warning: reference to free variable ‘buffer-name’ But this is a real problem. See the attached updated version of the patch set.