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, 30 Mar 2016 13:06:14 -0400 Message-ID: <56FC0786.4050108@fgiasson.com> References: <56FABF0C.5030808@fgiasson.com> <87mvpgnun2.fsf@ucl.ac.uk> <56FBC0EA.6080000@fgiasson.com> <56FBDDB4.90904@fgiasson.com> <56FBE840.8080700@fgiasson.com> 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]:48526) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1alJZR-0004Ls-Gv for emacs-orgmode@gnu.org; Wed, 30 Mar 2016 13:06:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1alJZO-0004K1-2S for emacs-orgmode@gnu.org; Wed, 30 Mar 2016 13:06:17 -0400 Received: from s052.panelboxmanager.com ([72.55.186.33]:60150) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1alJZN-0004JV-T4 for emacs-orgmode@gnu.org; Wed, 30 Mar 2016 13:06:13 -0400 Received: from mailnull by s052.panelboxmanager.com with sa-checked (Exim 4.86_1) (envelope-from ) id 1alJZL-000hwW-I0 for emacs-orgmode@gnu.org; Wed, 30 Mar 2016 13:06:11 -0400 In-Reply-To: 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: John Kitchin Cc: emacs-orgmode@gnu.org Hi Jon, > You can see a commented out version for shell blocks here: > https://github.com/jkitchin/jmax/blob/master/jmax-org.el#L936 > > It looks like I just redefined the org-babel-execute:sh function after > it was loaded. That may not be recommended good practice, but it works > ;) > > I am not sure why it is commented out, maybe because I don't use it alot > and its not well tested. > > You could always bind your own key sequence instead of C-c C-c. Yes this is right, probably better/easier/cleaner I am almost here with my code. In fact, it is quite different than yours since the nrepl does async communication. So far, I am really just using the Buffer in a new window idea from your code since I don't need to do anything with external files. Will keep you updated! Thanks, Fred