Christoph LANGE <ch.la...@jacobs-university.de> writes: > Hi Seb, > > thanks for your help! > > 2011-12-26 15:50 Sebastien Vauban: >>> Christoph LANGE<ch.la...@jacobs-university.de> writes: >>>> 2. accumulation doesn't work within the same entry; details follow: >>>> >>>> So when I changed the above contact entry to >>>> >>>> * Contact Name >>>> :PROPERTIES: >>>> :EMAIL: f...@bar.org >>>> :EMAIL+: b...@baz.org >>>> :END: >>>> >>>> I would have expected (org-entry-get (point) "EMAIL" t) to evaluate to, >>>> well, >>>> >>>> at least "f...@bar.org b...@baz.org" (and in some later version of org-mode >>>> >>>> maybe to a two-item list, for even easier automated processing). But I got >>>> >>>> the following unexpected results, which indicate that accumulation is not >>>> yet >>>> >>>> supported in this context (well, if it was ever _intended_…):
See the attached file for an example of working property inheritance.
#+Property: EMAIL f...@bar.org * Contact Name :PROPERTIES: :EMAIL+: b...@baz.org :END: #+begin_src emacs-lisp (org-entry-get (point) "email" 'inherit) #+end_src #+results: : f...@bar.org b...@baz.org * Contact Name :PROPERTIES: :FOO: 1 :FOO+: 2 :END: #+begin_src emacs-lisp (org-entry-get (point) "FOO" 'inherit) #+end_src #+results: : 1
While it is not possible to accumulate two properties from within the same block, property accumulation does successfully add to the inherited values of variables. I don't know if it should be possible to accumulate properties within the same property block. I would imagine so, in which case the behavior should be considered a bug. >> >> … AFAIK the `+' is only supported at this stage for the `var' >>property: you can't take any property and add a `+' to >> FALSE, the "var" property is in no way special when it comes to property inheritance. All properties are treated equally. Best, -- Eric Schulte http://cs.unm.edu/~eschulte/