From: Viktor Rosenfeld <listuser36@googlemail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Setting multiple variables for code blocks in one property drawer
Date: Mon, 27 Feb 2012 08:00:29 +0100 [thread overview]
Message-ID: <20120227070029.GA24318@kenny.fritz.box> (raw)
In-Reply-To: <87ipiuenjd.fsf@gmx.com>
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/
>
prev parent reply other threads:[~2012-02-27 7:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-09 12:46 Setting multiple variables for code blocks in one property drawer Viktor Rosenfeld
2012-02-15 15:08 ` Eric Schulte
2012-02-15 19:12 ` Viktor Rosenfeld
2012-02-18 15:32 ` Eric Schulte
2012-02-20 11:43 ` Viktor Rosenfeld
2012-02-25 19:11 ` Eric Schulte
2012-02-27 7:00 ` Viktor Rosenfeld [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
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=20120227070029.GA24318@kenny.fritz.box \
--to=listuser36@googlemail.com \
--cc=emacs-orgmode@gnu.org \
/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).