From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Thorsten Jolitz <tjolitz@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: question on org-element-interpret-data and when it works
Date: Sat, 03 Mar 2018 15:06:06 +0100 [thread overview]
Message-ID: <877eqtgsoh.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <87zi3p9t38.fsf@gmail.com> (Thorsten Jolitz's message of "Sat, 03 Mar 2018 14:39:07 +0100")
Thorsten Jolitz <tjolitz@gmail.com> writes:
> You used the word 'discrepancy',
True. I inferred it from
(funny enough, some org elements have 'value' as their content, others
'content').
which, IMO, sounds like it is a surprising fact.
> I simply needed to know for each org
> element what is interpreted and what not. And some have a content,
> others a :value.
As in every AST, some nodes are terminal (no contents), and some are not
(contents).
This distinction is made in `org-element-greater-elements', i.e.,
non-terminal elements. See also `org-element-recursive-objects' for
non-terminal objects.
> So if I pass 'Hello World' as content to an example
> block, nothing happens, if I pass it via :value, it appears as the
> blocks ... well, content.
Contents imply Org syntax. This would defeat the purpose of an example
block.
next prev parent reply other threads:[~2018-03-03 14:06 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-26 0:12 question on org-element-interpret-data and when it works John Kitchin
2018-02-26 10:10 ` Nicolas Goaziou
2018-03-03 11:43 ` Thorsten Jolitz
2018-03-03 12:45 ` Nicolas Goaziou
2018-03-03 13:02 ` Thorsten Jolitz
2018-03-03 13:20 ` Nicolas Goaziou
2018-03-03 13:39 ` Thorsten Jolitz
2018-03-03 14:06 ` Nicolas Goaziou [this message]
2018-03-03 14:47 ` Thorsten Jolitz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877eqtgsoh.fsf@nicolasgoaziou.fr \
--to=mail@nicolasgoaziou.fr \
--cc=emacs-orgmode@gnu.org \
--cc=tjolitz@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).