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 the single memory state. That is the typical development workflow. On Fri, Feb 20, 2015 at 6:54 AM, Lawrence Bottorff <borg...@gmail.com> wrote: > 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, > print out the results my buffer and go away? Or is this invoked REPL somehow > persistent, able to remember what has happened before? > > With regular Lisp and SLIME, you have a buffer where you write your code > next to a running REPL that handles the code when you ask it to. It keeps > "state" and your program grows. But this arrangement is not really literate > programming. Maybe good comments are possible, but it's not orgmode literate > programming. > > But then again, if Babel doesn't support REPL "state," then what am I > gaining? Please enlighten me. . . . > > > LB -- Grant Rettke g...@wisdomandwonder.com | http://www.wisdomandwonder.com/ “Wisdom begins in wonder.” --Socrates ((λ (x) (x x)) (λ (x) (x x))) “Life has become immeasurably better since I have been forced to stop taking it seriously.” --Thompson