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, 20 Feb 2012 12:43:20 +0100 Message-ID: <20120220114320.GA8866@client195-190.wlan.hu-berlin.de> References: <20120209124619.GA29989@kenny.local> <87haysuo20.fsf@gmx.com> <20120215191245.GA20893@client194-112.wlan.hu-berlin.de> <87ty2orw7b.fsf@gmx.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([140.186.70.92]:40276) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RzReX-0003wd-5U for emacs-orgmode@gnu.org; Mon, 20 Feb 2012 06:43:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RzReR-0001Bk-C4 for emacs-orgmode@gnu.org; Mon, 20 Feb 2012 06:43:33 -0500 Received: from mail-bk0-f41.google.com ([209.85.214.41]:53228) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RzReR-0001BW-3g for emacs-orgmode@gnu.org; Mon, 20 Feb 2012 06:43:27 -0500 Received: by bkty12 with SMTP id y12so5412092bkt.0 for ; Mon, 20 Feb 2012 03:43:25 -0800 (PST) Content-Disposition: inline In-Reply-To: <87ty2orw7b.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: > Viktor Rosenfeld writes: > > > Hi Eric, > > > > thanks for your input. I just pulled the latest code from git and while > > my original example works, the following does not: > > > > :PROPERTIES: > > :var: foo=1 > > :var+: bar=2 > > :var+: baz=3 > > :END: > > > > #+BEGIN_SRC sh > > echo foo: $foo > > echo bar: $bar > > echo baz: $baz > > #+END_SRC > > > > Thanks for reporting, I've just pushed up a fix for this bug. Thanks for your fix. The above example now works for me. However, I've noticed a problem with inheriting var properties. They are inherited in a child task only if the child task itself has no var property. Is this the intended behavior? See the example below. 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: | |