Does this answer your question?
http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-lisp.html#sec-3-2
I usually set up Scheme and R to keep a single buffer around with
Racket or R running in them. I do work in there outside of org just
like I do inside of org; figure stuff out and rely on
I think it saves state, and remembers what has been done, at least as
long as emacs is open. If you close emacs, it will forget everything,
and you would have to rerun each block. You could tangle (or selectively
tangle) the blocks out, to get an emacs-lisp file, which might then be a
library you w
If I'm creating an org file in a buffer which has source blocks for, say,
Lisp, then I can "run" these blocks of Lisp code and Babel will fill in the
"answer" just below in my buffer. Good. As advertised. But what is really
happening to this code? Does Babel invoke a Lisp REPL once, do the code,
pr