From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: Org-mode as a metalanguage: calling SQL "functions" Date: Wed, 03 Apr 2013 07:09:35 -0600 Message-ID: <87k3ojpwsd.fsf@gmail.com> References: <87vc85raoh.fsf@ericabrahamsen.net> <87y5d1itxx.fsf@gmail.com> <87mwtgr346.fsf@gmail.com> <16857F81-04F6-4F71-96C2-E9FBBD36BCA0@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:35245) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNNla-0005Dj-2w for emacs-orgmode@gnu.org; Wed, 03 Apr 2013 09:30:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UNNlR-0002c2-GQ for emacs-orgmode@gnu.org; Wed, 03 Apr 2013 09:30:17 -0400 Received: from mail-ia0-x22a.google.com ([2607:f8b0:4001:c02::22a]:50332) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNNlR-0002bh-A6 for emacs-orgmode@gnu.org; Wed, 03 Apr 2013 09:30:09 -0400 Received: by mail-ia0-f170.google.com with SMTP id h8so1254434iaa.1 for ; Wed, 03 Apr 2013 06:30:08 -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: Carsten Dominik Cc: Eric Abrahamsen , Orgmode Mailing List , Gary Oberbrunner Carsten Dominik writes: > On 2.4.2013, at 23:54, Eric Schulte wrote: > >> Gary Oberbrunner writes: >> >>> Aha -- you have to use the :var syntax on the begin_src line, not the >>> params-in-parens syntax on the name line. Your version works: >>> >>> #+name: example-block >>> #+begin_src sh :var input="" >>> echo "input is $input" >>> #+end_src >>> >>> but this doesn't: >>> >>> #+name: example-block(input="") >>> #+begin_src sh >>> echo "input is $input" >>> #+end_src >>> >>> The doc seems to say it should work the same, in >>> http://orgmode.org/manual/var.html (see "Alternate Argument Syntax"). >>> >> >> At this point I'm not sure if the documentation or the code should be >> amended. I've personally never liked the args-in-block-name syntax, but >> I don't recall if we formally decided to abandon it, or if it has simply >> been broken in a recent commit. > > I am not sure if I have any say here, but I agree that the args in > name notation looks not as good and might be considered for > abolishment. > Great, I agree wholeheartedly and I'll update the documentation accordingly (and take a look at lob-ingest to ensure it no longer uses this var-in-name style). Cheers, > > - Carsten -- Eric Schulte http://cs.unm.edu/~eschulte