[Ecls-list] Repl loop running in another thread and non blocking?

Chris Bagley chris.bagley at gmail.com
Fri Nov 2 11:43:04 UTC 2012


@Peter: I can't remember where I stole it from but this works for me under
sbcl. I haven't tried in ECL yet.

(defun update-swank ()
  "Called from within the main loop, this keep the lisp repl
   working while code runs"

  (base-macros:continuable
    (let ((connection (or swank::*emacs-connection*
			  (swank::default-connection))))
      (when connection
	(swank::handle-requests connection t)))))



On 2 November 2012 08:54, Juan Jose Garcia-Ripoll <
juanjose.garciaripoll at gmail.com> wrote:

> On Fri, Nov 2, 2012 at 12:26 AM, Peter Enerccio <enerccio at gmail.com>wrote:
>
>> Is it possible to have repl not block and wait for error instead being
>> available during the runtime of application?
>> Right now, I have something similar made artificially but there are
>> numerous errors when error actually happens in the stuff I evaluated.
>>
>
> I am sorry I do not totally follow what you want to do
>
> Juanjo
>
> --
> Instituto de Física Fundamental, CSIC
> c/ Serrano, 113b, Madrid 28006 (Spain)
> http://juanjose.garciaripoll.googlepages.com
>
>
> ------------------------------------------------------------------------------
> LogMeIn Central: Instant, anywhere, Remote PC access and management.
> Stay in control, update software, and manage PCs from one command center
> Diagnose problems and improve visibility into emerging IT issues
> Automate, monitor and manage. Do more in less time with Central
> http://p.sf.net/sfu/logmein12331_d2d
> _______________________________________________
> Ecls-list mailing list
> Ecls-list at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ecls-list
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/ecl-devel/attachments/20121102/13923087/attachment.html>


More information about the ecl-devel mailing list