From mboxrd@z Thu Jan 1 00:00:00 1970 From: Frederick Giasson Subject: Re: ob-clojure: possible to display results as soon as something is written to STDOUT? Date: Wed, 6 Apr 2016 08:57:36 -0400 Message-ID: <570507C0.5000401@fgiasson.com> References: <56FABF0C.5030808@fgiasson.com> <87mvpgnun2.fsf@ucl.ac.uk> <56FBC0EA.6080000@fgiasson.com> <56FBDDB4.90904@fgiasson.com> <56FBE840.8080700@fgiasson.com> <5703C0FE.1060206@fgiasson.com> <87vb3vdtxd.fsf@nicolasgoaziou.fr> <5704FCAF.2060801@fgiasson.com> <87d1q2dhyz.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59259) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ann1Q-00018x-Mk for emacs-orgmode@gnu.org; Wed, 06 Apr 2016 08:57:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ann1N-0002Pq-HC for emacs-orgmode@gnu.org; Wed, 06 Apr 2016 08:57:24 -0400 Received: from s052.panelboxmanager.com ([72.55.186.33]:58075) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ann1N-0002Pk-Ci for emacs-orgmode@gnu.org; Wed, 06 Apr 2016 08:57:21 -0400 Received: from mailnull by s052.panelboxmanager.com with sa-checked (Exim 4.86_1) (envelope-from ) id 1ann1K-003i3w-UB for emacs-orgmode@gnu.org; Wed, 06 Apr 2016 08:57:19 -0400 Received: from modemcable161.56-23-96.mc.videotron.ca ([96.23.56.161]:65493 helo=[192.168.0.13]) by s052.panelboxmanager.com with esmtpsa (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.86_1) (envelope-from ) id 1ann1K-003i3a-Lg for emacs-orgmode@gnu.org; Wed, 06 Apr 2016 08:57:18 -0400 In-Reply-To: <87d1q2dhyz.fsf@nicolasgoaziou.fr> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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