[Top][All Lists]
[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: |
Sebastien Vauban |
Subject: |
Re: [O] Bugs/features of accumulating property values when used with entries (concretely: in org-contacts) |
Date: |
Mon, 26 Dec 2011 15:50:40 +0100 |
User-agent: |
Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.91 (windows-nt) |
Hi Bastien, Christoph and Eric,
Bastien wrote:
> Christoph LANGE <address@hidden> writes:
>
>> 1. font lock (aka syntax highlighting) does not yet
>> recognize :PROPERTY+:
>
> I just fixed this, thanks.
>
>> 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_…):
>
> I let Eric answer this -- I'm not familiar enough with accumulating
> properties.
I'll try to answer that one, under the supervision of the guru...
Well, the following works:
:PROPERTIES:
:var: foo=7
:var+: baz=3
:END:
so your syntax looks correct, but AFAIK the `+' is only supported at this
stage for the `var' property: you can't take any property and add a `+' to
transform it in an accumulative property.
Whether this should be restricted by default or open by default, I have no
opinion at this stage.
I know, however, multivalued properties are sort of already well supported.
See http://orgmode.org/manual/Using-the-property-API.html for more info.
Best regards,
Seb
--
Sebastien Vauban