* ob-clojure: results quoted nil
@ 2023-05-17 1:59 rab
2023-05-17 9:26 ` Daniel Kraus
0 siblings, 1 reply; 5+ messages in thread
From: rab @ 2023-05-17 1:59 UTC (permalink / raw)
To: emacs-orgmode
Hello!
I am trying to follow examples on a book and I noticed a minor bug that
is literally "bugging" me. :-D
The quoted NIL is not showing on the Result block.
Org mode version 9.6.1 (9.6.1-??-fe92a3ced @
/Users/rafiks/.emacs.d/.local/straight/build-28.2/org/)
#+begin_src clojure :results value
(nil? 1)
(nil? nil)
(if "bears eat beets"
"bears beets Battlestar Galactica")
(if nil
"This won't be the result because nil is falsey"
"nil is falsey")
#+end_src
#+RESULTS:
| false |
| true |
| "bears beets Battlestar Galactica" |
| " is falsey" |
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: ob-clojure: results quoted nil
2023-05-17 1:59 ob-clojure: results quoted nil rab
@ 2023-05-17 9:26 ` Daniel Kraus
2023-05-17 9:45 ` Ihor Radchenko
0 siblings, 1 reply; 5+ messages in thread
From: Daniel Kraus @ 2023-05-17 9:26 UTC (permalink / raw)
To: rab; +Cc: emacs-orgmode
Hi!
rab@devsphoto.com writes:
> The quoted NIL is not showing on the Result block.
>
> Org mode version 9.6.1 (9.6.1-??-fe92a3ced @
> /Users/rafiks/.emacs.d/.local/straight/build-28.2/org/)
>
> #+begin_src clojure :results value
> (nil? 1)
> (nil? nil)
> (if "bears eat beets"
> "bears beets Battlestar Galactica")
> (if nil
> "This won't be the result because nil is falsey"
> "nil is falsey")
> #+end_src
>
> #+RESULTS:
> | false |
> | true |
> | "bears beets Battlestar Galactica" |
> | " is falsey" |
The results you get from a ob-clojure block got re-worked recently.
That `:results value` returned ALL values and not only the last one
was actually a bug.
Can you try again with the latest org (/ob-clojure) version?
You should now only get:
#+RESULTS:
: nil is falsey
Thanks,
Daniel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: ob-clojure: results quoted nil
2023-05-17 9:45 ` Ihor Radchenko
@ 2023-05-17 9:45 ` Daniel Kraus
2023-05-18 10:32 ` Ihor Radchenko
0 siblings, 1 reply; 5+ messages in thread
From: Daniel Kraus @ 2023-05-17 9:45 UTC (permalink / raw)
To: Ihor Radchenko; +Cc: rab, emacs-orgmode
Ihor Radchenko <yantar92@posteo.net> writes:
>> #+RESULTS:
>> : nil is falsey
>
> Even if it is the case, it is still worth checking :results table
> parsing. nils might be slurped when converting output to tables.
Right.
I just double checked the results for value and table results with
different Clojure backends and it worked in all cases (that I tested).
Cheers,
Daniel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: ob-clojure: results quoted nil
2023-05-17 9:26 ` Daniel Kraus
@ 2023-05-17 9:45 ` Ihor Radchenko
2023-05-17 9:45 ` Daniel Kraus
0 siblings, 1 reply; 5+ messages in thread
From: Ihor Radchenko @ 2023-05-17 9:45 UTC (permalink / raw)
To: Daniel Kraus; +Cc: rab, emacs-orgmode
Daniel Kraus <daniel@kraus.my> writes:
> The results you get from a ob-clojure block got re-worked recently.
> That `:results value` returned ALL values and not only the last one
> was actually a bug.
> Can you try again with the latest org (/ob-clojure) version?
> You should now only get:
>
> #+RESULTS:
> : nil is falsey
Even if it is the case, it is still worth checking :results table
parsing. nils might be slurped when converting output to tables.
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: ob-clojure: results quoted nil
2023-05-17 9:45 ` Daniel Kraus
@ 2023-05-18 10:32 ` Ihor Radchenko
0 siblings, 0 replies; 5+ messages in thread
From: Ihor Radchenko @ 2023-05-18 10:32 UTC (permalink / raw)
To: Daniel Kraus; +Cc: rab, emacs-orgmode
Daniel Kraus <daniel@kraus.my> writes:
>> Even if it is the case, it is still worth checking :results table
>> parsing. nils might be slurped when converting output to tables.
>
> Right.
> I just double checked the results for value and table results with
> different Clojure backends and it worked in all cases (that I tested).
Thanks! So, we see no problems here.
Canceled.
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-05-18 10:30 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-17 1:59 ob-clojure: results quoted nil rab
2023-05-17 9:26 ` Daniel Kraus
2023-05-17 9:45 ` Ihor Radchenko
2023-05-17 9:45 ` Daniel Kraus
2023-05-18 10:32 ` Ihor Radchenko
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.