How to save process threads when using source code blocks in org-mode's babel?

Mirko Vukovic mirko.vukovic at gmail.com
Mon Apr 4 21:28:06 UTC 2016


Hello,

This is on Windows, on a several months old Slime.

I am using org-mode's babel with the lisp module to document a data
analysis project.

In one of the first code blocks I initialize a stream that communicates
with GNUPlot. Subsequent blocks (BEGIN_SRC...END_SRC) send plot commands,
one plot per code block.

In a slime session, I can generate multiple plots communicating with that
one stream.

But in the org-mode, after successfully creating the first plot, the
subsequent ones raise the error that the stream is private to a thread.  So
I have to restart GNUplot for each plot.

In a previous email exchange on the list (unrelated to org-mode) it was
pointed out that executing code via REPL in Slime uses a different thread
then executing code from a lisp buffer.  I assume something like that is
going on here as well.

So, is there a way for me to store the process thread which invoked
GNUplot, and use that one for execution of subsequent code blocks?

Thanks,

Mirko
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/slime-devel/attachments/20160404/e1b6f3cd/attachment.html>


More information about the slime-devel mailing list