From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sebastien Vauban" Subject: Re: Bugs/features of accumulating property values when used with entries (concretely: in org-contacts) Date: Mon, 26 Dec 2011 15:50:40 +0100 Message-ID: <80d3bbv133.fsf@somewhere.org> References: <4EEB55A4.7090900@googlemail.com> <8762h3h104.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 Bastien, Christoph and Eric, Bastien wrote: > Christoph LANGE 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: foo-8kAbNik00GA@public.gmane.org >> :EMAIL+: bar-mlkRCKUPihU@public.gmane.org >> :END: >> >> I would have expected (org-entry-get (point) "EMAIL" t) to evaluate to, = well, >> at least "foo-8kAbNik00GA@public.gmane.org bar-mlkRCKUPihU@public.gmane.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 no= t yet >> supported in this context (well, if it was ever _intended_=E2=80=A6): > > 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=3D7 :var+: baz=3D3 :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 --=20 Sebastien Vauban