* Bug: [ob-clojure] Surprising evaluation result [9.1.6 (release_9.1.6-491-g70b029 @ /Users/xcy/src/org-mode/lisp/)]
@ 2018-03-01 15:50 Xu Chunyang
2018-03-02 13:29 ` numbchild
0 siblings, 1 reply; 3+ messages in thread
From: Xu Chunyang @ 2018-03-01 15:50 UTC (permalink / raw)
To: emacs-orgmode
Hello all,
I run the following Clojure code with CIDER as the backend. The result
is surprising to me:
#+begin_src clojure
(* 6 7)
(= nil ())
#+end_src
#+RESULTS:
: 42false
As you can see, the result is the concatenation of the value of each
expression. Is it expected? I would like to get only the value of the
last expression, i.e., false.
--
Org release_9.1.7-440-g5e8fa1361
CIDER v0.16.0-83-g88f4fcf
Emacs 27.0.50
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Bug: [ob-clojure] Surprising evaluation result [9.1.6 (release_9.1.6-491-g70b029 @ /Users/xcy/src/org-mode/lisp/)]
2018-03-01 15:50 Bug: [ob-clojure] Surprising evaluation result [9.1.6 (release_9.1.6-491-g70b029 @ /Users/xcy/src/org-mode/lisp/)] Xu Chunyang
@ 2018-03-02 13:29 ` numbchild
2018-03-03 11:16 ` Xu Chunyang
0 siblings, 1 reply; 3+ messages in thread
From: numbchild @ 2018-03-02 13:29 UTC (permalink / raw)
To: Xu Chunyang; +Cc: Org-mode
[-- Attachment #1: Type: text/plain, Size: 960 bytes --]
No, it's not expected result. It should be caused by my commit here
https://code.orgmode.org/bzg/org-mode/pulls/5
Don't know how to workaround this.
[stardiviner] <Hack this world!> GPG key ID: 47C32433
IRC(freeenode): stardiviner Twitter: @numbchild
Key fingerprint = 9BAA 92BC CDDD B9EF 3B36 CB99 B8C4 B8E5 47C3 2433
Blog: http://stardiviner.github.io/
On Thu, Mar 1, 2018 at 11:50 PM, Xu Chunyang <mail@xuchunyang.me> wrote:
> Hello all,
>
> I run the following Clojure code with CIDER as the backend. The result
> is surprising to me:
>
> #+begin_src clojure
> (* 6 7)
> (= nil ())
> #+end_src
>
> #+RESULTS:
> : 42false
>
> As you can see, the result is the concatenation of the value of each
> expression. Is it expected? I would like to get only the value of the
> last expression, i.e., false.
>
>
> --
> Org release_9.1.7-440-g5e8fa1361
> CIDER v0.16.0-83-g88f4fcf
> Emacs 27.0.50
>
>
[-- Attachment #2: Type: text/html, Size: 1841 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Bug: [ob-clojure] Surprising evaluation result [9.1.6 (release_9.1.6-491-g70b029 @ /Users/xcy/src/org-mode/lisp/)]
2018-03-02 13:29 ` numbchild
@ 2018-03-03 11:16 ` Xu Chunyang
0 siblings, 0 replies; 3+ messages in thread
From: Xu Chunyang @ 2018-03-03 11:16 UTC (permalink / raw)
To: numbchild@gmail.com; +Cc: Org-mode
"numbchild@gmail.com" <numbchild@gmail.com> writes:
> No, it's not expected result. It should be caused by my commit here
> https://code.orgmode.org/bzg/org-mode/pulls/5
I don't think so, your pull request is about ob-clojure-literate, while
I am talking about ob-clojure. I want to know what authors of ob-clojure
think about the behavior, is it a Bug?
> Don't know how to workaround this.
As for workaround, I have the following in my init.el
(define-advice org-babel-expand-body:clojure (:filter-return (body) do)
(format "(do %s)" body))
[...]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-03-03 11:16 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-01 15:50 Bug: [ob-clojure] Surprising evaluation result [9.1.6 (release_9.1.6-491-g70b029 @ /Users/xcy/src/org-mode/lisp/)] Xu Chunyang
2018-03-02 13:29 ` numbchild
2018-03-03 11:16 ` Xu Chunyang
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).