From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Bug: Using CALL to evaluate elisp blocks does not show table headers [8.3.4 (release_8.3.4-686-g18b766 @ ~/org-mode/org-mode/lisp/)] Date: Sun, 03 Apr 2016 10:57:08 +0200 Message-ID: <87pou7134r.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47169) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1amdoK-0008W0-1c for emacs-orgmode@gnu.org; Sun, 03 Apr 2016 04:55:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1amdoG-0001Tv-09 for emacs-orgmode@gnu.org; Sun, 03 Apr 2016 04:55:07 -0400 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:51935) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1amdoF-0001To-QD for emacs-orgmode@gnu.org; Sun, 03 Apr 2016 04:55:03 -0400 In-Reply-To: (Shlomi Vaknin's message of "Mon, 28 Mar 2016 16:55:24 -0700") 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: Shlomi Vaknin Cc: emacs-orgmode@gnu.org Hello, Shlomi Vaknin writes: > I have an elisp source block that builds a table from some computation. > When trying to #+CALL that block, the table header (before the 'hline) is > simply not shown. Here is a simple reproduce on my system: > > ---------------------------------------------- > #+name: test > #+BEGIN_SRC elisp > (list (list 'a 'b 'c 'd) 'hline (list 1 2 3 4) (list 3 4 5 6)) > #+END_SRC > > #+RESULTS: test > | a | b | c | d | > |---+---+---+---| 1 | 2 | 3 | 4 | 3 | 4 | 5 | 6 | > > > #+CALL: test() > #+RESULTS: > | 1 | 2 | 3 | 4 | 3 | 4 | 5 | 6 | > > #+CALL: test() :results raw > #+RESULTS: > ((1 2 3 4) (3 4 5 6)) > ---------------------------------------------- > > What am I doing wrong? ;) Nothing. Actually, CALL lines do not work as one would expect. At first, the CALL line evaluates the called block with the provided arguments and stores the result. So far so good. But then, it evaluates the result as emacs-lisp data. So the final output inherits all the idiosyncrasies from Babel Emacs lisp. E.g., quoting the manual (info "(org) rownames"), Note that Emacs Lisp code blocks ignore the =E2=80=98:rownames=E2=80=99 h= eader argument entirely given the ease with which tables with row names may be handled directly in Emacs Lisp. Unless I'm missing something obvious, the last step of the process should be omitted. I will look into it in the next days. Regards, --=20 Nicolas Goaziou