all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Bastien <bastien.guerry@wikimedia.fr>
To: Rainer M Krug <r.m.krug@gmail.com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Multiple var definitions in :PROPERTIES: block?
Date: Sat, 12 Feb 2011 13:35:10 +0100	[thread overview]
Message-ID: <87pqqxqtrb.fsf@altern.org> (raw)
In-Reply-To: <4D515FA1.20607@gmail.com> (Rainer M. Krug's message of "Tue, 08 Feb 2011 16:22:09 +0100")

Hi Rainer,

Rainer M Krug <r.m.krug@gmail.com> writes:

> assuming the following:
>
> * Test case with two var definitions in :PROPERTIES: drawer:
> :PROPERTIES:
> :tangle: var.sh
> :var: FIRST="test13"
> :var: SECOND="test14"
> :END:
> #+begin_src sh
>   echo $FIRST
>   echo $SECOND
> #+end_src
>
> #+results:
> : test13
>
> Only the first one is defined and exported into the code. 

I can reproduce this, but I'm not familiar with Babel enough to try to
fix it.

By the way, wouldn't "set" sound more natural than "var"? 

I feel like 

  :var: FIRST="test13" 

is more redundant than 

  :set: FIRST="test13"

... not a big deal of course, and I'm aware :var is also used as a
begin_src parameter.

-- 
 Bastien

      reply	other threads:[~2011-02-12 13:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-08 15:22 Multiple var definitions in :PROPERTIES: block? Rainer M Krug
2011-02-12 12:35 ` Bastien [this message]

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

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

  git send-email \
    --in-reply-to=87pqqxqtrb.fsf@altern.org \
    --to=bastien.guerry@wikimedia.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=r.m.krug@gmail.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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.