emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric Schulte <schulte.eric@gmail.com>
To: Carsten Dominik <carsten.dominik@gmail.com>
Cc: Eric Abrahamsen <eric@ericabrahamsen.net>,
	Orgmode Mailing List <emacs-orgmode@gnu.org>,
	Gary Oberbrunner <garyo@oberbrunner.com>
Subject: Re: Org-mode as a metalanguage: calling SQL "functions"
Date: Wed, 03 Apr 2013 07:09:35 -0600	[thread overview]
Message-ID: <87k3ojpwsd.fsf@gmail.com> (raw)
In-Reply-To: 16857F81-04F6-4F71-96C2-E9FBBD36BCA0@gmail.com

Carsten Dominik <carsten.dominik@gmail.com> writes:

> On 2.4.2013, at 23:54, Eric Schulte <schulte.eric@gmail.com> wrote:
>
>> Gary Oberbrunner <garyo@oberbrunner.com> 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

  reply	other threads:[~2013-04-03 13:30 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-01 19:28 Org-mode as a metalanguage: calling SQL "functions" Gary Oberbrunner
2013-04-01 20:41 ` Mike Gauland
2013-04-02  1:19 ` Eric Abrahamsen
2013-04-02  1:45   ` Eric Schulte
2013-04-02  2:46     ` Eric Abrahamsen
2013-04-02  2:54     ` Gary Oberbrunner
2013-04-02 21:54       ` Eric Schulte
2013-04-03  5:50         ` Andreas Röhler
2013-04-03  5:54         ` Carsten Dominik
2013-04-03 13:09           ` Eric Schulte [this message]
2013-04-04 12:26             ` Sebastien Vauban
2013-04-04 12:49               ` Eric Schulte
2013-04-04 20:10                 ` Sebastien Vauban
2013-04-05 15:43                   ` Gary Oberbrunner
2013-04-05 16:31                     ` Eric Schulte
2013-04-05 17:51                       ` Andreas Röhler
2013-04-06 20:44                       ` Bastien

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87k3ojpwsd.fsf@gmail.com \
    --to=schulte.eric@gmail.com \
    --cc=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=eric@ericabrahamsen.net \
    --cc=garyo@oberbrunner.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).