From: Thorsten Jolitz <tjolitz@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: question on org-element-interpret-data and when it works
Date: Sat, 03 Mar 2018 14:39:07 +0100 [thread overview]
Message-ID: <87zi3p9t38.fsf@gmail.com> (raw)
In-Reply-To: 87bmg5guro.fsf@nicolasgoaziou.fr
Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:
> Thorsten Jolitz <tjolitz@gmail.com> writes:
>
>> I have defined these two constants in org-dp.el to work around this
>> discrepancy (and to know which elements do not have interpreted content
>> at all):
>>
>> ,----
>> | (defconst org-dp-no-content-elems
>> | (list 'babel-call 'clock 'comment 'comment-block 'diary-sexp
>> | 'example-block 'fixed-width 'horizontal-rule 'keyword
>> | 'latex-environment 'node-property 'planning 'src-block)
>> | "List of Org elements without interpreted .")
>> |
>> | (defconst org-dp-value-blocks
>> | (list 'comment-block 'example-block 'src-block)
>> | "List of Org block that have a :value instead of contents.")
>> `----
>
> I don't understand where you think there is a discrepancy here.
You used the word 'discrepancy', I simply needed to know for each org
element what is interpreted and what not. And some have a content,
others a :value. 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.
This is no critique, and no problem, and please don't change it (since
it would be a breaking change in this context).
With the org-dp tempo-templates, its no problem for org-dp users either,
since these are smart: they offer you a content arg (cont) to fill, if
it makes sense, they hide it, if not. And for some block types they
offer the :value parameter, since it is interpreted.
So I don't see any problem, just something an org-dp user probably
should be aware of.
--
cheers,
Thorsten
next prev parent reply other threads:[~2018-03-03 13:39 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 [this message]
2018-03-03 14:06 ` Nicolas Goaziou
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=87zi3p9t38.fsf@gmail.com \
--to=tjolitz@gmail.com \
--cc=emacs-orgmode@gnu.org \
/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).