From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: Org-mode as a metalanguage: calling SQL "functions" Date: Tue, 02 Apr 2013 15:54:08 -0600 Message-ID: <87mwtgr346.fsf@gmail.com> References: <87vc85raoh.fsf@ericabrahamsen.net> <87y5d1itxx.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:44428) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UN9Ub-0005ZV-4j for emacs-orgmode@gnu.org; Tue, 02 Apr 2013 18:15:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UN9UX-0000PK-0F for emacs-orgmode@gnu.org; Tue, 02 Apr 2013 18:15:48 -0400 Received: from mail-pa0-f51.google.com ([209.85.220.51]:47289) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UN9UW-0000P2-HR for emacs-orgmode@gnu.org; Tue, 02 Apr 2013 18:15:44 -0400 Received: by mail-pa0-f51.google.com with SMTP id jh10so527712pab.24 for ; Tue, 02 Apr 2013 15:15:43 -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: Gary Oberbrunner Cc: Eric Abrahamsen , Orgmode Mailing List 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. -- Eric Schulte http://cs.unm.edu/~eschulte