From c49616a7cccc51c3d3b5f3fda0db2594834b86f6 Mon Sep 17 00:00:00 2001 From: Frederick Giasson Date: Mon, 7 Nov 2016 14:08:03 -0500 Subject: [PATCH 2/2] Update ORG-NEWS to mention the new :show-process feature for Org-babel-clojure --- etc/ORG-NEWS | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/etc/ORG-NEWS b/etc/ORG-NEWS index a360e35..95c97a7 100644 --- a/etc/ORG-NEWS +++ b/etc/ORG-NEWS @@ -27,6 +27,38 @@ into ** New features *** Horizontal rules are no longer ignored in LaTeX table math mode +*** Org-babel-clojure :show-process + +A new block code header has been created for Org-babel-clojure that enables +developers to output the process of an ongoing process into a new window/buffer. + +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 :show-process + (dotimes [n 10] + (println n ".") + (Thread/sleep 500)) +#+END_SRC +#+end_example + +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'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 +the code will be displayed in the results section. + * Version 9.0 -- 1.9.5.msysgit.0