From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rick Frankel Subject: [BUG] :colnames not applied to #+call input Date: Fri, 28 Jun 2013 13:23:35 -0400 Message-ID: <3b90682f4749fc6cd9a5db0981f7f20a@mail.rickster.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39843) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UscOY-0001if-84 for emacs-orgmode@gnu.org; Fri, 28 Jun 2013 13:23:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UscOU-0001MG-R3 for emacs-orgmode@gnu.org; Fri, 28 Jun 2013 13:23:38 -0400 Received: from [204.62.15.78] (port=51991 helo=mail.rickster.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UscOU-0001M7-N0 for emacs-orgmode@gnu.org; Fri, 28 Jun 2013 13:23:34 -0400 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: emacs-orgmode it seems that the :colnames header is not being respected on parsing the input to a `#+call:' line containing arguments, but is being applied to the output! For example: #+BEGIN_SRC org * Identity #+name: table | a | b | c | |---+---+---| | 1 | 2 | 3 | #+name: identity #+BEGIN_SRC emacs-lisp :var table=table :colnames yes (mapcar 'identity table) #+END_SRC #+RESULTS: identity | a | b | c | |---+---+---| | 1 | 2 | 3 | #+call: identity() #+RESULTS: identity() | a | b | c | |---+---+---| | 1 | 2 | 3 | #+call: identity(table=table) #+RESULTS: identity(table=table) | a | b | c | |---+---+---| | a | b | c | |---+---+---| | 1 | 2 | 3 | * Mapping #+name: map #+BEGIN_SRC emacs-lisp :var table=table :colnames yes (mapcar (lambda (row) (mapcar 'identity row)) table) #+END_SRC #+RESULTS: map | a | b | c | |---+---+---| | 1 | 2 | 3 | #+call: map() #+RESULTS: map() | a | b | c | |---+---+---| | 1 | 2 | 3 | All the following generate the error: /Wrong type argument: sequencep, hline/ because the header and hline are not stripped from the input. #+call: map(table=table) #+call: map(table=table) :colnames yes #+call: map[:colnames yes](table=table) :colnames yes #+END_SRC