From mboxrd@z Thu Jan 1 00:00:00 1970 From: Viktor Rosenfeld Subject: Re: Setting multiple variables for code blocks in one property drawer Date: Mon, 27 Feb 2012 08:00:29 +0100 Message-ID: <20120227070029.GA24318@kenny.fritz.box> References: <20120209124619.GA29989@kenny.local> <87haysuo20.fsf@gmx.com> <20120215191245.GA20893@client194-112.wlan.hu-berlin.de> <87ty2orw7b.fsf@gmx.com> <20120220114320.GA8866@client195-190.wlan.hu-berlin.de> <87ipiuenjd.fsf@gmx.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([208.118.235.92]:60310) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S1uZY-00020S-Hn for emacs-orgmode@gnu.org; Mon, 27 Feb 2012 02:00:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S1uZX-0004Vn-3L for emacs-orgmode@gnu.org; Mon, 27 Feb 2012 02:00:36 -0500 Received: from mail-bk0-f41.google.com ([209.85.214.41]:51715) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S1uZW-0004VT-Pz for emacs-orgmode@gnu.org; Mon, 27 Feb 2012 02:00:35 -0500 Received: by bkty12 with SMTP id y12so4158222bkt.0 for ; Sun, 26 Feb 2012 23:00:32 -0800 (PST) Content-Disposition: inline In-Reply-To: <87ipiuenjd.fsf@gmx.com> 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: emacs-orgmode@gnu.org 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/ >