From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: Re: question on org-element-interpret-data and when it works Date: Sat, 03 Mar 2018 14:39:07 +0100 Message-ID: <87zi3p9t38.fsf@gmail.com> References: <87fu5hbd0k.fsf@gmail.com> <87lgf9gwe7.fsf@nicolasgoaziou.fr> <874llxb9cf.fsf@gmail.com> <87bmg5guro.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47484) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1es7Nl-0001BJ-HV for emacs-orgmode@gnu.org; Sat, 03 Mar 2018 08:39:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1es7Ni-0004KD-CZ for emacs-orgmode@gnu.org; Sat, 03 Mar 2018 08:39:25 -0500 Received: from [195.159.176.226] (port=38331 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1es7Ni-0004Jv-5q for emacs-orgmode@gnu.org; Sat, 03 Mar 2018 08:39:22 -0500 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1es7Lc-0003pJ-IQ for emacs-orgmode@gnu.org; Sat, 03 Mar 2018 14:37:12 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org Nicolas Goaziou writes: > Thorsten Jolitz 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