all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Frederick Giasson <fred@fgiasson.com>
To: emacs-orgmode@gnu.org
Subject: Re: [PATCH] new :async feature for org-babel-clojure
Date: Wed, 27 Apr 2016 08:00:37 -0400	[thread overview]
Message-ID: <9479db14-ec40-6d1b-605a-da757b01ec50@fgiasson.com> (raw)
In-Reply-To: <87h9eomb14.fsf@saiph.selenimh>

Hi Nicolas,

>
>> 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.).

Yeah, will have to take some more time to check that, I probably have 
much to learn regarding Elisp itself first.

Rethinking about that, would it not be better to remove the confusion by 
changing the terminology I used: ":async"? What it really is is to have 
feedback of the underlying process, and not really an asynchronous process.

I thought about two possibilities:

   (1) creating two new results options: :output-process and 
:value-process. Which means that we output the underlying process of a 
:output or :value :results
   (2) renaming :async by :show-process or something similar.

Then we take the time to check how a real asynchronous system can be put 
in place.

Thoughts?

Thanks,

Fred


>
>
> Regards,
>

      reply	other threads:[~2016-04-27 12:00 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-29 17:38 [PATCH] expose nrepl's timeout setting in ob-clojure.el Frederick Giasson
2016-04-06  9:43 ` Nicolas Goaziou
2016-04-06 14:48   ` Frederick Giasson
2016-04-10  8:20     ` Nicolas Goaziou
2016-04-11 14:03       ` Frederick Giasson
2016-04-12 20:18         ` Nicolas Goaziou
2016-04-13 20:15           ` Frederick Giasson
2016-04-06 16:27   ` [PATCH] new :async feature for org-babel-clojure Frederick Giasson
2016-04-20 12:17     ` Frederick Giasson
2016-04-20 21:59       ` Nicolas Goaziou
2016-04-21 12:34         ` Frederick Giasson
2016-04-26 19:21           ` Nicolas Goaziou
2016-04-27 12:00             ` Frederick Giasson [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9479db14-ec40-6d1b-605a-da757b01ec50@fgiasson.com \
    --to=fred@fgiasson.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.