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 15:47:00 +0100 Message-ID: <87lgf99py3.fsf@gmail.com> References: <87fu5hbd0k.fsf@gmail.com> <87lgf9gwe7.fsf@nicolasgoaziou.fr> <874llxb9cf.fsf@gmail.com> <87bmg5guro.fsf@nicolasgoaziou.fr> <87zi3p9t38.fsf@gmail.com> <877eqtgsoh.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58354) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1es8RP-0002zV-CO for emacs-orgmode@gnu.org; Sat, 03 Mar 2018 09:47:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1es8RK-0004Fa-Ec for emacs-orgmode@gnu.org; Sat, 03 Mar 2018 09:47:15 -0500 Received: from [195.159.176.226] (port=47346 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1es8RK-0004E4-6g for emacs-orgmode@gnu.org; Sat, 03 Mar 2018 09:47:10 -0500 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1es8PF-0002Yh-2D for emacs-orgmode@gnu.org; Sat, 03 Mar 2018 15:45:01 +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: > >> 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. Ok, so its just a matter of wording. On the computer science side of things, content seems to be org elements or objects contained in other org elements (like table rows in a table), and on the laymans side of things the text inside of an example block looks very much like the blocks content too (while its technically named 'value' in this case). -- cheers, Thorsten