|
From: | Charles C. Berry |
Subject: | [O] [PATCH] was Re: [BUG] babel eval of emacs-lisp: orgtbl-to-orgtbl: Wrong type argument: listp, t |
Date: | Tue, 24 Feb 2015 15:36:01 -0800 |
User-agent: | Alpine 2.00 (OSX 1167 2008-08-23) |
On Tue, 24 Feb 2015, Nicolas Goaziou wrote:
John Kitchin <address@hidden> writes:Fabulous! Thanks!BTW, #+BEGIN_SRC emacs-lisp '((a (b))) #+END_SRC #+RESULTS: foo | a | (b) | Shouldn't we also return lists deeper than 2 levels as strings? Does it even make sense to try formatting them into a table?
My vote is no - it doesn't make sense. Let the user pick `:results list' or `:results pp' after it returns a string.
BTW, the string produced when a list cannot be rendered as a table ought to be removable.
The patch makes such strings removable. i.e. #+BEGIN_SRC emacs-lisp org-babel-load-languages #+END_SRCwill have the ": " prefix or #+begin/end_example delimiters to allow later removal like this:
#+RESULTS: : ((R . t) (latex . t) ... (sql) ... HTH, Chuck
0001-ob-core.el-examplify-list-made-into-strings.patch
Description: make stringified lists removable
[Prev in Thread] | Current Thread | [Next in Thread] |