Jack, > On Sep 7, 2020, at 6:06 PM, Jack Kamm <jackk...@gmail.com> wrote: > > Hi Chuck, > >> I can confirm that this works on my setup in each of the scenarios in which >> `default-directory' got set correctly in the session buffer. >> >> At some point, my default-directory got reset to drop the tramp prefix >> "/scp:/user@host:" in one session after faithfully running the src block >> several times. I am unable to sort out why or even reproduce this. > > Thanks for taking the time to test again. If you have any further > feedback at any point, please don't hesitate. >
Thanks. This seems like it will help me. Also, I wonder if the `:results value' case can be handled in a similar manner, viz. - (let ((tmp-file (org-babel-temp-file "R-"))) + (let ((tmp-file (with-current-buffer session (org-babel-temp-file "R-")))) Best, Chuck