emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Re: appearance of list as results from evaluating code blocks
@ 2021-06-24 14:23 Johannes Brauer
  2021-06-24 16:28 ` John Kitchin
  0 siblings, 1 reply; 13+ messages in thread
From: Johannes Brauer @ 2021-06-24 14:23 UTC (permalink / raw)
  To: gmauer@gmail.com; +Cc: orgmode

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

What about :results code
The default is a elisp code block so you get syntax coloring

That works fore lisp:

  #+begin_src elisp :results code
(list 1 2 (+ 1 2))
  #+end_src

  #+RESULTS:
  #+begin_src elisp
  (1 2 3)
  #+end_src

But with Clojure I get

  #+begin_src clojure :results code
(list 1 2 (+ 1 2))
  #+end_src

  #+RESULTS:
  #+begin_src clojure
  nil
  #+end_src


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

^ permalink raw reply	[flat|nested] 13+ messages in thread
* appearance of list as results from evaluating code blocks
@ 2021-06-23 19:27 Johannes Brauer
  2021-06-23 19:43 ` Juan Manuel Macías
  0 siblings, 1 reply; 13+ messages in thread
From: Johannes Brauer @ 2021-06-23 19:27 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

Hi!
Evaluating a code block containing a list expression using org-babel for elisp or Clojure, for example
(list 1 2 3)
I get
 #+RESULTS:
  | 1 | 2 | 3 |
I would prefer
 #+RESULTS:
  ( 1  2  3 )

Is it possible to get this.

I am using
Aquamacs 3.5nightly  GNU Emacs 25.3.50.1 (x86_64-apple-darwin19.6.0, NS appkit-1894.60 Version 10.15.7 (Build 19H2))
macOs 11.4
Org mode version 9.3.7

Johannes



^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2021-06-26  8:02 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-06-24 14:23 appearance of list as results from evaluating code blocks Johannes Brauer
2021-06-24 16:28 ` John Kitchin
2021-06-24 17:47   ` Johannes Brauer
2021-06-25 16:16     ` John Kitchin
2021-06-26  7:48       ` Tim Cross
  -- strict thread matches above, loose matches on Subject: below --
2021-06-23 19:27 Johannes Brauer
2021-06-23 19:43 ` Juan Manuel Macías
2021-06-23 20:03   ` Johannes Brauer
2021-06-23 21:13     ` Rodrigo Morales
2021-06-23 21:14     ` Rodrigo Morales
2021-06-23 21:24       ` George Mauer
2021-06-24 10:46       ` Johannes Brauer
2021-06-24 11:28         ` Eric S Fraga

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).