emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Setting multiple variables for code blocks in one property drawe


From: Viktor Rosenfeld
Subject: Re: [O] Setting multiple variables for code blocks in one property drawer
Date: Mon, 27 Feb 2012 08:00:29 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

Hi Eric,

Eric Schulte wrote:

> However try replacing
> > :var: foo="a"
> with
> > :var+: foo="a"
> which is valid and should work for your use case below.

I'm not sure if I understood you correctly, but even if I replace "var"
with "var+" in the child's property drawer, the value of bar that is set
in the parent task is not available in the child task.

Cheers,
Viktor

> 
> There are still some lingering issues with inheritance and Org-mode
> properties which I may try to address one of these days.
> 
> Cheers,
> 
> >
> > Cheers,
> > Viktor
> >
> > * Parent task
> > :PROPERTIES:
> > :var: foo="1"
> > :var+: bar="2"
> > :END:
> > ** Child task without own properties
> >
> > #+BEGIN_SRC sh
> > echo foo: $foo
> > echo bar: $bar
> > #+END_SRC
> >
> > #+RESULTS:
> > | foo: | 1 |
> > | bar: | 2 |
> >
> > ** Child task with own properties
> > :PROPERTIES:
> > :var: foo="a"
> > :END:
> >
> > #+BEGIN_SRC sh
> > echo foo: $foo
> > echo bar: $bar
> > #+END_SRC
> >
> > #+RESULTS:
> > | foo: | a |
> > | bar: |   |
> >
> >
> 
> -- 
> Eric Schulte
> http://cs.unm.edu/~eschulte/
> 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]