<div class="gmail_quote"><br><br>Hi there,<div><br></div><div>first of all Paul and Dave, thanks for replying!!  The question can perhaps be best explained</div><div>with an example:</div><div><br></div><div>repl=> (defun doit-3 (x) </div>

<div>(* 3 x))</div>
<div>repl=> '(some more cool stuff)</div><div>repl=>'(and more and more)</div><div><br></div><div>i keep testing and playing around with functions</div><div>more and more</div><div><br></div><div>I can certainly run my doit-3 function</div>


<div><br></div><div>repl=>(doit-3 4)</div><div>12</div><div>repl=></div><div><br></div><div>and now, I say to myself, - how the heck did I write that doit-3, I forgot, because,</div><div>I wrote it 20 minutes ago, it obviously exists inside REPL because I can execute it...</div>


<div>So, how do I view [dump??] the contents of doit-3 to the screen, or to a file on the</div><div>disk, so I can invoke an editor and modify doit-3 and then reload it??</div><div><br></div><div>I am just interested in learning how to be more productive in a standard software</div>


<div>development cycle.</div><div><br></div><div>Thanks, Alex.</div><div><div></div><div class="h5"><div><br></div><div><br></div><div><br><br><div class="gmail_quote">On Wed, Oct 6, 2010 at 4:59 PM, Paul Tarvydas <span dir="ltr"><<a href="mailto:tarvydas@visualframeworksinc.com" target="_blank">tarvydas@visualframeworksinc.com</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div>> Hi there,<br>
><br>
> A bit of a noob question - let's say that I have an interactive Repl<br>
> session that has been going on for about an hour or so, and all of a<br>
> sudden I wish to modify a defun I wrote a while ago. What is the<br>
> easiest way first to show that code on the console, modify it, and<br>
> load it back into Repl ?<br>
><br>
> I am just trying to come up with a comfortable development environment<br>
> for myself.<br>
<br>
</div></div><div>There is something called "(dribble)" which records a transcript of your session.  I've never used it.<br>
<br>
With LW, I typically use the editor to type into a file (buffer) and compile-load the buffer, or ^E one form or defun.  Undo can get you back to an earlier state.  I find that if I'm experimenting, I do it a function at a time, until I'm happy with it, so I never have to go back a full hour.<br>



<br>
I take it that most free lisp users use emacs+slime.  You split the emacs window into two, one half shows your edit buffer, the other shows a lisp interaction.  A keystroke sends your current form to the interaction and you see the result in the interaction buffer.<br>



<br>
pt<br>
<br>
</div><div><div></div><div>_______________________________________________<br>
toronto-lisp mailing list<br>
<a href="mailto:toronto-lisp@common-lisp.net" target="_blank">toronto-lisp@common-lisp.net</a><br>
<a href="http://common-lisp.net/cgi-bin/mailman/listinfo/toronto-lisp" target="_blank">http://common-lisp.net/cgi-bin/mailman/listinfo/toronto-lisp</a><br>
</div></div></blockquote></div><br></div>
</div></div></div><br>