From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: [babel] Bugs for Emacs Lisp code blocks Date: Sun, 07 Apr 2013 07:29:27 -0600 Message-ID: <871uamo4e9.fsf@gmail.com> References: <868v4v1x6k.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:47162) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UOpfd-0000x0-Ge for emacs-orgmode@gnu.org; Sun, 07 Apr 2013 09:30:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UOpfb-0006o8-6z for emacs-orgmode@gnu.org; Sun, 07 Apr 2013 09:30:09 -0400 Received: from mail-pa0-f51.google.com ([209.85.220.51]:39175) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UOpfb-0006nu-1p for emacs-orgmode@gnu.org; Sun, 07 Apr 2013 09:30:07 -0400 Received: by mail-pa0-f51.google.com with SMTP id jh10so2789033pab.38 for ; Sun, 07 Apr 2013 06:30:06 -0700 (PDT) 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: Sebastien Vauban Cc: emacs-orgmode@gnu.org Hi Seb, Emacs Lisp is an exception in terms of colname processing, it has default header arguments set to pass column names through to the code block, where the processing may be done trivially in Emacs Lisp. > #+name: input > | id | var1 | > |------+------| > | obs1 | foo | > | obs2 | bar | [...] > #+name: ELisp-echo-1 > #+begin_src emacs-lisp :var data=input :colnames yes :exports results > data > #+end_src [...] > * Call at export time > > #+call: ELisp-echo-1(data=input) > > I get: > > | id | var1 | > | id | var1 | > | obs1 | foo | > | obs2 | bar | > > Not at all what I was expecting... Agreed, I've just pushed up a fix, so the following now works. #+name: input | id | var1 | |------+------| | obs1 | foo | | obs2 | bar | #+name: ELisp-echo-1 #+begin_src emacs-lisp :var data=input :exports results data #+end_src #+call: ELisp-echo-1(data=input) #+RESULTS: ELisp-echo-1(data=input) | id | var1 | |------+------| | obs1 | foo | | obs2 | bar | Thanks for pointing this out. -- Eric Schulte http://cs.unm.edu/~eschulte