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

-- 
Ihor Radchenko // yantar92,
Org mode maintainer,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>

Reply via email to