emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Johannes Brauer <brauer@nordakademie.de>
To: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: questionable result of Clojure code execution in org babel
Date: Thu, 8 Aug 2019 16:31:34 +0000	[thread overview]
Message-ID: <8D056E9D-3188-4FFF-9ED6-5B27DFEADCC4@nordakademie.de> (raw)

[-- Attachment #1: Type: text/plain, Size: 1193 bytes --]

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 appears.
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 following 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 responses. 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


[-- Attachment #2: Type: text/html, Size: 11294 bytes --]

                 reply	other threads:[~2019-08-08 16:31 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to=8D056E9D-3188-4FFF-9ED6-5B27DFEADCC4@nordakademie.de \
    --to=brauer@nordakademie.de \
    --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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).