From mboxrd@z Thu Jan 1 00:00:00 1970 From: Johannes Brauer Subject: questionable result of Clojure code execution in org babel Date: Thu, 8 Aug 2019 16:31:34 +0000 Message-ID: <8D056E9D-3188-4FFF-9ED6-5B27DFEADCC4@nordakademie.de> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_000_8D056E9D31884FFF9ED65B27DFEADCC4nordakademiede_" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:53404) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hvlKL-0001rN-RO for emacs-orgmode@gnu.org; Thu, 08 Aug 2019 12:31:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hvlKK-0006Z1-MQ for emacs-orgmode@gnu.org; Thu, 08 Aug 2019 12:31:45 -0400 Received: from merkur.nordakademie.de ([194.94.98.156]:53384) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hvlKK-0006Kb-C2 for emacs-orgmode@gnu.org; Thu, 08 Aug 2019 12:31:44 -0400 Received: from vpn.dmz.nordakademie.de ([192.168.5.10]) by merkur.nordakademie.de with ESMTP id wJ24vcboXovB6KRW (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NO) for ; Thu, 08 Aug 2019 18:31:35 +0200 (CEST) Content-Language: de-DE 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: "emacs-orgmode@gnu.org" --_000_8D056E9D31884FFF9ED65B27DFEADCC4nordakademiede_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi executing the the following code section in an org-mode file with C-c C-c #+BEGIN_SRC clojure :results value (* 3 5) #+END_SRC I get #+RESULTS: : nil15 instead of #+RESULTS: : 15 Trying the same with emacs-lisp instead of clojure the correct result appea= rs. My versions: ;; org-mode 9.2.5 ;; Aquamacs 3.5 GNU Emacs 25.3.50.1 ;; CIDER 0.21.0 (New York), nREPL 0.6.0 ;; Clojure 1.9.0, Java 11 Peter Hull, (using nrepl-toggle-message-logging) has figured out the follow= ing problem: In org-mode 9.1.9 the sent message looks like: (--> id "8" op "eval" session "a34917da-541a-4d4a-b790-af8e11020c96" time-stamp "2019-08-07 13:18:00.307045105" code "(* 1 2 3 4)" ns "org-babel-clojure.core" ) in 9.2.5 it's (--> id "18" op "eval" session "86281560-e467-47c4-869d-043b03f5c546" time-stamp "2019-08-07 12:23:33.769213028" code "(ns org-babel-clojure.core) (* 1 2 3 4)" ) In the latter we're sending two forms (ns ...) and (* ...) so we get two re= sponses. Previously it sent only one and used the ns key in the message to = set the message. I am not sure if this list ist the right place to post the problem. Johannes --_000_8D056E9D31884FFF9ED65B27DFEADCC4nordakademiede_ Content-Type: text/html; charset="us-ascii" Content-ID: <8494802D8E17E64DB3BBEDC63D0AE35C@nordakademie.de> Content-Transfer-Encoding: quoted-printable Hi

executing the the following code section in an org-mode file with C-c C-c

#+BEG= IN_SRC clojure :results value
(* 3 5)
#+END= _SRC

I get 

 #+RESULTS:
 : n= il15

instead of

 #&#= 43;RESULTS:
 : 1= 5

Trying the same with emacs-lisp instead of clojure the correct result appea= rs.
My versions:
;; org-mode 9.2.5
;; Aquamacs 3.5  GNU Emacs 25.3.50.1
;; CIDER = 0.21.0 (New York), nREPL 0.6.0
;; Clojur= e 1.9.0, Java 11

Peter Hul= l, (u= sing nrepl-toggle-mess= age-logging) has figured out the following problem:
In org-mod= e 9.1.9 the sent message looks like:
(-->
 id 
"8"
 op 
"eval"  session "a34917da-541a-4d4a-b790-af8e11020c96"
 time
-stamp "2019-08-07 13:18:00.307045105"
 code 
"(* 1 2 3 4)"
 ns 
"org-babel-clojure.core"
)

in 9.2.5 i= t's

(-->
 id 
"18"
 op 
"eval"  session "86281560-e467-47c4-869d-043b03f5c546"
 time
-stamp "2019-08-07 12:23:33.769213028"
 code 
"(ns org-babel-clojure.core)
(* 1 2 3 4)"

)

In the la= tter we're sending two forms = (ns ...) and (* ...) so we get two responses. Previously it sent only one and = used the ns key i= n the message to set the message.

I am not = sure if this list ist the right place to post the problem.

Johannes<= /div>
 
--_000_8D056E9D31884FFF9ED65B27DFEADCC4nordakademiede_--