On 2025-10-10 Fri 16:50, Ihor Radchenko <[email protected]> wrote:
> Titus von der Malsburg <[email protected]> writes:
>
>> I have contacts in the following format (simplified):
>>
>> * John Doe
>> :PROPERTIES:
>> :EMAIL: [email protected]
>> :EMAIL: [email protected]
>> :END:
>>
>> Is this actually legal org-mode?  The syntax specification on worg
>> doesn’t say that properties need to be unique.  However, when I use
>> `org-entry-properties', I only get the first e-mail.
>
> Syntax-wise, properties do not have to be unique.
> What you are asking about is not syntax, but rather Org mode's behavior
> in Emacs.
>
> We have a non-syntax convention that EMAIL: ... EMAIL+: ...
> properties are concatenated (according to `org-property-separators')
> What is done for duplicate properties is not defined explicitly.
> The current implementation is not even consistent with this:
> org-entry-properties returns the first property and org-entry-get
> returns the last.
>
>> Related question: Has the community converged on a standardized
>> org-contacts format?  I couldn’t find anything 
>
> The best I know is org-contacts package.
> See https://repo.or.cz/org-contacts.git/blob/HEAD:/org-contacts.el

Thank you for the response, Ihor.  It seems that multiple instances of a
property are not forbidden.  Would it then make sense to change
org-entry-properties such that it returns all instances of a property,
not just the first?  That would be more consistent with its
documentation (“Get all properties of the current entry.”) and less
arbitrary (why the first?) than the current implementation.

  Titus


Reply via email to