* Org-element-put-property, bug?
@ 2018-09-04 19:23 Ivan Tadeu Ferreira Antunes Filho
2018-09-10 16:57 ` Nicolas Goaziou
0 siblings, 1 reply; 2+ messages in thread
From: Ivan Tadeu Ferreira Antunes Filho @ 2018-09-04 19:23 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 523 bytes --]
If I put a custom property in a headline, e.g.
(org-element-put-property headline :EXPORT_FILE_NAME "a")
Then, when accessing the org element headline it shows: :EXPORT_FILE_NAME a
However, when I proceed to interpret the data,
(org-element-interpret-data headline)
The custom property does not exist in the properties drawer.
Is there a way of modifying custom properties of a headline by using
org-element, and have the custom properties show up when interpreting the
data?
----
*Ivan Tadeu Ferreira Antunes Filho*
[-- Attachment #2: Type: text/html, Size: 951 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Org-element-put-property, bug?
2018-09-04 19:23 Org-element-put-property, bug? Ivan Tadeu Ferreira Antunes Filho
@ 2018-09-10 16:57 ` Nicolas Goaziou
0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2018-09-10 16:57 UTC (permalink / raw)
To: Ivan Tadeu Ferreira Antunes Filho; +Cc: emacs-orgmode
Hello,
Ivan Tadeu Ferreira Antunes Filho <ivanaf@mit.edu> writes:
> If I put a custom property in a headline, e.g.
> (org-element-put-property headline :EXPORT_FILE_NAME "a")
>
> Then, when accessing the org element headline it shows: :EXPORT_FILE_NAME a
>
> However, when I proceed to interpret the data,
> (org-element-interpret-data headline)
>
> The custom property does not exist in the properties drawer.
Properties in headlines elements are just references to the real
properties. Those are located in node properties elements within
a property drawer element.
> Is there a way of modifying custom properties of a headline by using
> org-element, and have the custom properties show up when interpreting the
> data?
You can modify `property-drawer' and `node-property' elements instead.
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-09-10 16:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-09-04 19:23 Org-element-put-property, bug? Ivan Tadeu Ferreira Antunes Filho
2018-09-10 16:57 ` Nicolas Goaziou
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).