|
From: | Frederick Giasson |
Subject: | Re: [O] ob-clojure: possible to display results as soon as something is written to STDOUT? |
Date: | Wed, 6 Apr 2016 08:57:36 -0400 |
User-agent: | Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.1 |
Hi Nicolas,
However, I am not sure neither how generic such a solution could be, and what would still be required to implement in each OB plugin. My (very little) experience so far is the Python prototype that John wrote, and then my analysis of the Clojure OB plugin. As I was explaining in this blog post, things are quite different between the two. In Python, it appears that one has to run a sub-process, in Clojure this is not necessary since we benefit the nREPL that handle that.The link I gave is a first approximation of the generic behaviour. Basically, we could spawn a new Emacs process which could then evaluation the block synchronously.
Ok good.
One difficulty is to grab the "closure" of the block. Another one is to collect and insert the results back into the buffer without being disruptive. The thread above gave hints about that second point.
Humm, from the page you provided, I don't see any threads, but just the initial message, am I looking at the right thing?
Thanks, Fred
[Prev in Thread] | Current Thread | [Next in Thread] |