emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] Bugs/features of accumulating property values when used with ent


From: Eric Schulte
Subject: Re: [O] Bugs/features of accumulating property values when used with entries (concretely: in org-contacts)
Date: Wed, 28 Dec 2011 11:47:22 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux)

Christoph LANGE <address@hidden> writes:

> Hi Seb,
>
> thanks for your help!
>
> 2011-12-26 15:50 Sebastien Vauban:
>>> Christoph LANGE<address@hidden>  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:    address@hidden
>>>>    :EMAIL+:   address@hidden
>>>>    :END:
>>>>
>>>> I would have expected (org-entry-get (point) "EMAIL" t) to evaluate to, 
>>>> well,
>>>>
>>>> at least "address@hidden address@hidden" (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 address@hidden

* Contact Name
   :PROPERTIES:
   :EMAIL+:   address@hidden
   :END:

#+begin_src emacs-lisp
  (org-entry-get (point) "email" 'inherit)
#+end_src

#+results:
: address@hidden address@hidden

* 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/

reply via email to

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