From 89c8ff0e8784d1ccafc1a6fa5ede8d22bbb667b8 Mon Sep 17 00:00:00 2001 From: Frederick Giasson Date: Mon, 7 Nov 2016 14:09:30 -0500 Subject: [PATCH] Adding documentation for the new :show-process header option for Org-babel-clojure --- org-contrib/babel/languages/ob-doc-clojure.org | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/org-contrib/babel/languages/ob-doc-clojure.org b/org-contrib/babel/languages/ob-doc-clojure.org index 9f1b8b1..670e7aa 100644 --- a/org-contrib/babel/languages/ob-doc-clojure.org +++ b/org-contrib/babel/languages/ob-doc-clojure.org @@ -145,26 +145,29 @@ Another source for information on options is this page at Worg: Next, a similar process for executing code will be used with Clojure. -* Using Asynchronous Evaluations -Org-babel-clojure does support asynchronous evaluation of the code blocks. To -evaluate some code asynchronously, you only have to specify the =:async= option +* Show Process Of Code Block Execution +You can tell Org-babel-clojure to output the process of a running code block. + +To show that output you only have to specify the =:show-process= option in the code block's header like this: #+begin_example -#+BEGIN_SRC clojure :results output :async +#+BEGIN_SRC clojure :results output :show-process (dotimes [n 10] (println n ".") (Thread/sleep 500)) #+END_SRC #+end_example -If =:async= is specified that way, then when you will run the code using -=C-c C-c= then a new window will open in Emacs. Everything that is output +If =:show-process= is specified that way, then when you will run the code using +=C-c C-c= a new window will open in Emacs. Everything that is output by the REPL will immediately be added to that new window. When the processing of the code is finished, then the window and its buffer will be closed and the results will be reported in the -=#+RESULTS= section. Note that the =:results= parameter like normally. If +=#+RESULTS= section. + +Note that the =:results= parameter's behavior is *not* changed. If =silent= is specified, then no result will be displayed. If =output= is specified then all the output from the window will appears in the results section. If =value= is specified, then only the last returned value of -- 1.9.5.msysgit.0