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: Thu, 29 Dec 2011 09:03:54 +0100 Message-ID: <80ehvnyfbp.fsf@somewhere.org> References: <4EEB55A4.7090900@googlemail.com> <8762h3h104.fsf@gnu.org> <80d3bbv133.fsf@somewhere.org> <4EFB5D1E.3080109@jacobs-university.de> <874nwkcz45.fsf@gmx.com> 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 Christophe, Eric and Thomas, Eric Schulte wrote: > Christoph LANGE writes: >> 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-8kAbNik00GA@public.gmane.org >>>>> :EMAIL+: bar-mlkRCKUPihU@public.gmane.org >>>>> :END: >>>>> >>>>> I would have expected (org-entry-get (point) "EMAIL" t) to evaluate t= o, 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= 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. > [...] > > * 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. I would say so (that it's a bug), as doing it on a file-basis (within the "same property block") is well supported: #+PROPERTY: FOO 1 #+PROPERTY: FOO+ 2 * Contact Name #+begin_src emacs-lisp (org-entry-get (point) "FOO" 'inherit) #+end_src #+results: : 1 2 >>> =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. Sorry for insinuating it otherwise. And thanks for the correction! Best regards, Seb --=20 Sebastien Vauban