Héctor Galbis Sanchis <hectometrocuadr...@gmail.com> writes: > I noticed that some snippets are not printing the results as I expected. > > From this snippet: > > #+begin_src lisp :results value > (values "Hello") > #+end_src > > The results are: > > #+RESULTS: > : Hello > > But it should be: > > #+RESULTS: > : "Hello"
Org mode consistently strips quotes from result strings. For example, #+begin_src emacs-lisp :results value "Hello" #+end_src #+RESULTS: : Hello #+begin_src python :results value return "Hello" #+end_src #+RESULTS: : Hello > I don’t know if this is the intended behaviour, but I think it should print > the same SLIME or SLY does. That would be a breaking change. For better or worse, Org strips the quotes. I see no good reason to change the existing behavior. > Another snippet that I think is not working as expected is the following > one: > > #+begin_src lisp :results value > (values "Hey" 3) > #+end_src > > The results are: > > #+RESULTS: > : Hey Confirmed. This is because org-babel-execute:lisp assumes that the result can be passed to `read'. However, it looks like CL's multiple values must be handled specially as it is not readable. -- Ihor Radchenko // yantar92, Org mode maintainer, 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>