From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [PATCH] new :async feature for org-babel-clojure Date: Tue, 26 Apr 2016 21:21:11 +0200 Message-ID: <87h9eomb14.fsf@saiph.selenimh> References: <56FABD8E.2000705@fgiasson.com> <87twjfcbt6.fsf@nicolasgoaziou.fr> <570538F9.8030307@fgiasson.com> <87a8kohrgi.fsf@nicolasgoaziou.fr> <0bf9b99d-139f-b54d-f3b5-e5e1f1344e4b@fgiasson.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33854) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1av8Xx-0005XH-1W for emacs-orgmode@gnu.org; Tue, 26 Apr 2016 15:21:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1av8Xt-0008Gz-Ri for emacs-orgmode@gnu.org; Tue, 26 Apr 2016 15:21:20 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:42353) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1av8Xt-0008Gu-LR for emacs-orgmode@gnu.org; Tue, 26 Apr 2016 15:21:17 -0400 In-Reply-To: <0bf9b99d-139f-b54d-f3b5-e5e1f1344e4b@fgiasson.com> (Frederick Giasson's message of "Thu, 21 Apr 2016 08:34:29 -0400") 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" To: Frederick Giasson Cc: emacs-orgmode@gnu.org Hello, Frederick Giasson writes: > Right now, async is really more about "feedback" than "asynchronous". > However it has never been clear is it was possible or not, and if so, > how :) > > Any pointers on how this could be done in emacs? You could start a new Emacs evaluating some code in a subprocess, with `start-process' and collect return value. You may want to have a look at `org-export-async-start' or "async.el" library in ELPA. Unfortunately, it is not yet possible to re-use the latter in Org code, since it is unavailable in vanilla Emacs. The hard part, IMO, is to bring the right context in the subprocess (e.g., the environment should be the same, other blocks may be needed, etc.). Regards, -- Nicolas Goaziou