emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] About commit named "Allow multi-line properties to be specified


From: Christian Moe
Subject: Re: [O] About commit named "Allow multi-line properties to be specified in property blocks"
Date: Mon, 31 Oct 2011 22:33:31 +0100
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:5.0) Gecko/20110624 Thunderbird/5.0

On 10/31/11 9:49 PM, Nicolas Goaziou wrote:
#+begin_src org
#+property: :var foo=1
#+property: :var bar=2
#+property: :var baz=3
#+property: :var qux=4
#+end_src

Two problems:

1) You need to drop the colons before var.

2) The outcome is not what you expect.

----

#+property: var foo=1
#+property: var bar=2
#+property: var baz=3
#+property: var qux=4

#+begin_src perl :results output
  print "foo is $foo, bar is $bar, baz is $baz, qux is $qux"
#+end_src

#+results:
: foo is 1, bar is , baz is , qux is

----

Because as things currently work, further assignments to the same property (var) by subsequent #+PROPERTY lines are ignored. (Whereas further assignments to the same property in property drawers further down an outline tree will `overwrite' assignments higher up.)

Yours,
Christian



reply via email to

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