How one can programmatically read and set a buffer-wide org-mode property?
I am aware of this, which points to
(org-entry-put POM "PWE-1" "47")
but it does not seem useful in case of buffer global properties.
If a file has buffer global properties, like,
#+PROPERTY: PWE-1 42 #+PROPERTY: Cite "Silmarillon 1984" #+PROPERTY: my/common-list (1 "two" (1 2 3 5 7))
How could one fetch, for example, the buffer-wide property PWE-1, or any other?
How would one set it, ie, write a different value, say
#+PROPERTY: PWE-1 2197
so that the buffer will keep the updated value as stored in the file, available at next load?
Where could I look up similar information in detail? Is there a detailed list of org-mode's API?