From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Charles C. Berry" Subject: [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 Message-ID: References: <86lhjossj6.fsf@me.localhost.invalid> <867fv8sr6v.fsf@me.localhost.invalid> <87d2505xn4.fsf@nicolasgoaziou.fr> <8761ar45kp.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="0-1540264566-1424820962=:1867" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41389) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YQP1O-00015O-I0 for emacs-orgmode@gnu.org; Tue, 24 Feb 2015 18:36:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YQP1J-0007im-I0 for emacs-orgmode@gnu.org; Tue, 24 Feb 2015 18:36:10 -0500 Received: from iport-bcv1-out.ucsd.edu ([132.239.0.119]:39918) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YQP1J-0007ii-5T for emacs-orgmode@gnu.org; Tue, 24 Feb 2015 18:36:05 -0500 In-Reply-To: <8761ar45kp.fsf@nicolasgoaziou.fr> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Nicolas Goaziou Cc: Daniele Pizzolli , emacs-orgmode@gnu.org, John Kitchin This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --0-1540264566-1424820962=:1867 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed On Tue, 24 Feb 2015, Nicolas Goaziou wrote: > John Kitchin 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_SRC will have the ": " prefix or #+begin/end_example delimiters to allow later removal like this: #+RESULTS: : ((R . t) (latex . t) ... (sql) ... HTH, Chuck --0-1540264566-1424820962=:1867 Content-Type: TEXT/PLAIN; charset=US-ASCII; name=0001-ob-core.el-examplify-list-made-into-strings.patch Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: make stringified lists removable Content-Disposition: attachment; filename=0001-ob-core.el-examplify-list-made-into-strings.patch RnJvbSBiMTE3OWE3OWM2ZDcyY2MwYmVhYjZlN2ZkOTc3NGY0OWVhMWJiYmFl IE1vbiBTZXAgMTcgMDA6MDA6MDAgMjAwMQ0KRnJvbTogQ2hhcmxlcyBCZXJy eSA8Y2NiZXJyeUB1Y3NkLmVkdT4NCkRhdGU6IFR1ZSwgMjQgRmViIDIwMTUg MTU6MTI6NTMgLTA4MDANClN1YmplY3Q6IFtQQVRDSF0gb2ItY29yZS5lbDog ZXhhbXBsaWZ5IGxpc3QgbWFkZSBpbnRvIHN0cmluZ3MNCg0KKiBvYi1jb3Jl LmVsIChvcmctYmFiZWwtaW5zZXJ0LXJlc3VsdCk6IFdoZW4gYSBsaXN0IGNh bm5vdCBiZSByZW5kZXJlZA0KICBhcyBhIHRhYmxlIGFuZCBpcyB0dXJuZWQg aW50byBhIHN0cmluZyBtYWtlIGl0IHJlbW92YWJsZSBpZg0KICBgOnJlc3Vs dHMgcmVwbGFjZScgKHRoZSBkZWZhdWx0KSBvciBgOnJlc3VsdHMgdGFibGUn IHdhcyBzcGVjaWZpZWQuDQotLS0NCiBsaXNwL29iLWNvcmUuZWwgfCA1ICsr KystDQogMSBmaWxlIGNoYW5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