From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: [BUG] babel eval of emacs-lisp: orgtbl-to-orgtbl: Wrong type argument: listp, t Date: Mon, 23 Feb 2015 07:57:44 -0500 Message-ID: References: <86lhjossj6.fsf@me.localhost.invalid> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42280) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YPsa9-0002Ic-G4 for emacs-orgmode@gnu.org; Mon, 23 Feb 2015 07:57:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YPsa6-0008BM-4f for emacs-orgmode@gnu.org; Mon, 23 Feb 2015 07:57:53 -0500 Received: from smtp.andrew.cmu.edu ([128.2.157.39]:54204) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YPsa5-0008BC-W5 for emacs-orgmode@gnu.org; Mon, 23 Feb 2015 07:57:50 -0500 In-reply-to: <86lhjossj6.fsf@me.localhost.invalid> 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: Daniele Pizzolli Cc: emacs-orgmode@gnu.org I am pretty sure this is a long-standing "feature". Try this: #+BEGIN_SRC emacs-lisp :results raw (org-babel-do-load-languages 'org-babel-load-languages '((emacs-lisp . nil) (R . t))) #+END_SRC I have never been able to use a babel block that outputs a list of cons cells without explicitly setting results to raw or code. The problem here is your code evaluates to ((emacs-lisp) (R . t)), and the t somehow gets interpreted like it should be a list, which it is not. So, it cannot be made into a table for output, and you get your error. Changing the header just bypasses this function and outputs the results more directly. Daniele Pizzolli writes: > Hello, > > my attempt to use org-mode for both interactive presentation and final > report was unsuccessful due to a series of bugs and nuisances. > Fortunately I can use the result of tangle. Will report the issues > encountered to the list in the next few days. > > Here is a minor one. > > The following code, taken from [[info:org#Languages]] works if run after > manually selecting it and running with M-x eval-region. But with M-x > org-babel-execute-src-block it triggers an error. The *Messages* buffer > shows: > > #+BEGIN_EXAMPLE > executing Emacs-Lisp code block... > orgtbl-to-orgtbl: Wrong type argument: listp, t > #+END_EXAMPLE > > > #+BEGIN_SRC emacs-lisp > (org-babel-do-load-languages > 'org-babel-load-languages > '((emacs-lisp . nil) > (R . t))) > #+END_SRC > > #+BEGIN_SRC emacs-lisp > (org-version nil t) > #+END_SRC > > #+RESULTS: > : Org-mode version 8.3beta (release_8.3beta-860-ge4da74 @ /home/vagrant/.emacs.d/el-get/org-mode/lisp/) > > Best, > Daniele -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu