From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph LANGE Subject: Re: Bugs/features of accumulating property values when used with entries (concretely: in org-contacts) Date: Wed, 28 Dec 2011 19:17:02 +0100 Message-ID: <4EFB5D1E.3080109@jacobs-university.de> References: <4EEB55A4.7090900@googlemail.com> <8762h3h104.fsf@gnu.org> <80d3bbv133.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:38566) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rfy3p-0003sf-O9 for emacs-orgmode@gnu.org; Wed, 28 Dec 2011 13:17:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rfy3o-0006qX-Mk for emacs-orgmode@gnu.org; Wed, 28 Dec 2011 13:17:09 -0500 Received: from mail-ee0-f41.google.com ([74.125.83.41]:32916) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rfy3o-0006qM-IO for emacs-orgmode@gnu.org; Wed, 28 Dec 2011 13:17:08 -0500 Received: by eekc41 with SMTP id c41so13224226eek.0 for ; Wed, 28 Dec 2011 10:17:07 -0800 (PST) In-Reply-To: <80d3bbv133.fsf@somewhere.org> 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@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Sebastien Vauban Cc: emacs-orgmode@gnu.org Hi Seb, thanks for your help! 2011-12-26 15:50 Sebastien Vauban: >> Christoph LANGE 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: foo@bar.org >>> :EMAIL+: bar@baz.org >>> :END: >>> >>> I would have expected (org-entry-get (point) "EMAIL" t) to evaluate to, well, >>> >>> at least "foo@bar.org bar@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_…): > > … 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. If it is intended to be limited to the "var" property, then at least the documentation ("Property syntax") needs fixing, as it states generally: > If you want to add to the value of an existing property, append a > `+' to the property name. But thanks a lot for pointing this out: > I know, however, multivalued properties are sort of already well supported. > > See http://orgmode.org/manual/Using-the-property-API.html for more info. Cheers, Christoph -- Christoph Lange, http://www.facebook.com/ch.lange, Skype duke4701