From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sebastien Vauban" Subject: Re: [ANN] BREAKING CHANGE -- removing #+BABEL file-wide property lines Date: Sat, 22 Oct 2011 09:08:13 +0200 Message-ID: <80zkgtv6zm.fsf@somewhere.org> References: <87pqhrih3s.fsf@gmail.com> <30891.1319141196@alphaville.dokosmarshall.org> <87fwinifqu.fsf@gmail.com> <32184.1319143892@alphaville.dokosmarshall.org> <87zkgvgxe7.fsf@gmail.com> <1405.1319147324@alphaville.dokosmarshall.org> <87zkgvfhra.fsf@gmail.com> <2127.1319148505@alphaville.dokosmarshall.org> <87vcrjfgt1.fsf@gmail.com> <80sjmmvm60.fsf@somewhere.org> <4EA129DB.4070006@christianmoe.com> <8762ji5jr6.fsf@gmail.com> <4EA1D4F9.5010302@christianmoe.com> <4ea1de9c.67b4ec0a.553d.122a@mx.google.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: 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-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hi Darlan, Darlan Cavalcante Moreira wrote: > It's excellent that now babel understands multiple values in the "var" > property (I was one of the people that wanted this), but "There Is One More > Thing". > > Would it be feasible to inherit variables from parent sub-trees? > Effectively, I'd like to append new values in lower level sub-trees, but > AFAIK setting the var property in a sub-tree will still replace the value > set in the parent sub-tree. #+PROPERTY: var foo="level0" * Overview Global vars and local-to-this-subtree vars seem correctly handled. Effectively, vars set in higher level trees are not passed correctly to the code block. * Test code :PROPERTIES: :var: bar="level1" :END: ** Using the different vars :PROPERTIES: :var: baz="level2" :END: #+srcname: test #+begin_src sh :var foo="valueforthiscodeblock" echo $foo echo $bar echo $baz #+end_src #+results: test | valueforthiscodeblock | | | | level2 | As you can see, the "bar" variable is unknown to the code block. Best regards, Seb -- Sebastien Vauban