From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: Bugs/features of accumulating property values when used with entries (concretely: in org-contacts) Date: Wed, 28 Dec 2011 11:47:22 -0700 Message-ID: <874nwkcz45.fsf@gmx.com> References: <4EEB55A4.7090900@googlemail.com> <8762h3h104.fsf@gnu.org> <80d3bbv133.fsf@somewhere.org> <4EFB5D1E.3080109@jacobs-university.de> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([140.186.70.92]:44102) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RfyXH-0006z7-GR for emacs-orgmode@gnu.org; Wed, 28 Dec 2011 13:47:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RfyXF-0004Ae-PX for emacs-orgmode@gnu.org; Wed, 28 Dec 2011 13:47:35 -0500 Received: from mailout-us.gmx.com ([74.208.5.67]:35751 helo=mailout-us.mail.com) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1RfyXF-0004AQ-KJ for emacs-orgmode@gnu.org; Wed, 28 Dec 2011 13:47:33 -0500 In-Reply-To: <4EFB5D1E.3080109@jacobs-university.de> (Christoph LANGE's message of "Wed, 28 Dec 2011 19:17:02 +0100") 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: Christoph LANGE Cc: Sebastien Vauban , emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Christoph LANGE writes: > 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-m= ode >>>> >>>> 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_=E2=80=A6): See the attached file for an example of working property inheritance. --=-=-= Content-Type: text/x-org Content-Disposition: inline; filename=acumulate.org #+Property: EMAIL foo@bar.org * Contact Name :PROPERTIES: :EMAIL+: bar@baz.org :END: #+begin_src emacs-lisp (org-entry-get (point) "email" 'inherit) #+end_src #+results: : foo@bar.org bar@baz.org * Contact Name :PROPERTIES: :FOO: 1 :FOO+: 2 :END: #+begin_src emacs-lisp (org-entry-get (point) "FOO" 'inherit) #+end_src #+results: : 1 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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. >> >> =E2=80=A6 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, --=20 Eric Schulte http://cs.unm.edu/~eschulte/ --=-=-=--