<pre><div><span>Woops I forgot the continuable macro:<br><br>(</span><span>defmacro</span> <span>continuable</span> <span>(</span><span>&body</span> <span>body</span><span>)</span></div>
<div> <span>"Helper macro that we can use to allow us to continue from an</span></div><div><span> error. Remember to hit C in slime or pick the restart so </span></div>
<div><span> errors don't kill the app."</span></div><div> <span>`</span><span>(</span><span>restart-case</span> </div><div>
<span>(</span><span>progn</span> <span>,@</span><span>body</span><span>)</span></div><div> <span>(</span><span>continue</span> <span>()</span> <span>:report</span> <span>"Continue"</span><span>)))</span></div>
</pre><div class="gmail_extra"><br><br><div class="gmail_quote">On 2 November 2012 11:43, Chris Bagley <span dir="ltr"><<a href="mailto:chris.bagley@gmail.com" target="_blank">chris.bagley@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">@Peter: I can't remember where I stole it from but this works for me under sbcl. I haven't tried in ECL yet.<br>
<br><div class="gmail_extra"><pre><div><span>(</span><span>defun</span> <span>update-swank</span> <span>()</span></div>
<div> <span>"Called from within the main loop, this keep the lisp repl</span></div><div><span> working while code runs"</span></div><div>
<span>(</span><span>base-macros:continuable</span></div><div> <span>(</span><span>let</span> <span>((</span><span>connection</span> <span>(</span><span>or</span> <span>swank::*emacs-connection*</span></div>
<div> <span>(</span><span>swank::default-connection</span><span>))))</span></div><div> <span>(</span><span>when</span> <span>connection</span></div>
<div> <span>(</span><span>swank::handle-requests</span> <span>connection</span> <span>t</span><span>)))))</span></div></pre><br><br><div class="gmail_quote"><div><div>
On 2 November 2012 08:54, Juan Jose Garcia-Ripoll <span dir="ltr"><<a href="mailto:juanjose.garciaripoll@gmail.com" target="_blank">juanjose.garciaripoll@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div><div>
<div class="gmail_extra"><div>On Fri, Nov 2, 2012 at 12:26 AM, Peter Enerccio <span dir="ltr"><<a href="mailto:enerccio@gmail.com" target="_blank">enerccio@gmail.com</a>></span> wrote:<br><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>Is it possible to have repl not block and wait for error instead being available during the runtime of application?<br>Right now, I have something similar made artificially but there are numerous errors when error actually happens in the stuff I evaluated.<br>
</div></blockquote></div><br></div>I am sorry I do not totally follow what you want to do</div><div class="gmail_extra"><br></div><div class="gmail_extra">Juanjo<span><font color="#888888"><br clear="all"><div><br>
</div>-- <br>Instituto de Física Fundamental, CSIC<br>
c/ Serrano, 113b, Madrid 28006 (Spain) <br><a href="http://juanjose.garciaripoll.googlepages.com" target="_blank">http://juanjose.garciaripoll.googlepages.com</a><br>
</font></span></div>
<br></div></div>------------------------------------------------------------------------------<br>
LogMeIn Central: Instant, anywhere, Remote PC access and management.<br>
Stay in control, update software, and manage PCs from one command center<br>
Diagnose problems and improve visibility into emerging IT issues<br>
Automate, monitor and manage. Do more in less time with Central<br>
<a href="http://p.sf.net/sfu/logmein12331_d2d" target="_blank">http://p.sf.net/sfu/logmein12331_d2d</a><br>_______________________________________________<br>
Ecls-list mailing list<br>
<a href="mailto:Ecls-list@lists.sourceforge.net" target="_blank">Ecls-list@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/ecls-list" target="_blank">https://lists.sourceforge.net/lists/listinfo/ecls-list</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>