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 13:42:26 -0600 Message-ID: <87d2u65dr1.fsf@gmail.com> References: <868v4v1x6k.fsf@somewhere.org> <871uamo4e9.fsf@gmail.com> <86d2u6z6kg.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:42365) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UOvUX-00019x-Er for emacs-orgmode@gnu.org; Sun, 07 Apr 2013 15:43:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UOvUR-0003Cn-R0 for emacs-orgmode@gnu.org; Sun, 07 Apr 2013 15:43:05 -0400 Received: from mail-da0-x233.google.com ([2607:f8b0:400e:c00::233]:50224) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UOvUR-0003CW-KW for emacs-orgmode@gnu.org; Sun, 07 Apr 2013 15:42:59 -0400 Received: by mail-da0-f51.google.com with SMTP id g27so2305081dan.10 for ; Sun, 07 Apr 2013 12:42:58 -0700 (PDT) In-Reply-To: <86d2u6z6kg.fsf@somewhere.org> (Sebastien Vauban's message of "Sun, 07 Apr 2013 17:47:11 +0200") 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 "Sebastien Vauban" writes: > Hi Eric, > > Eric Schulte wrote: >> 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. > > OK, but I don't understand the precedence of header arguments. I thought that > a header argument given on the code block preempted all the other values > (system-wide default for all languages, language defaults, file-wide > arguments, and subtree arguments). > > Why isn't this true here as well? > That is what is happening here, although combinations of :hlines and :colnames can be tricky. Especially weird, is that if you want to *unset* a header argument which is set at a higher level, you need to set it to '(), as in ":colnames '()". Cheers, > >>> * 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. > > Here, I understand that the #+call line uses the default header argument set > on the language. So, that seems right to me as well... > > Thanks. > > Best regards, > Seb -- Eric Schulte http://cs.unm.edu/~eschulte