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:02:40 +0100 Message-ID: <874llxb9cf.fsf@gmail.com> References: <87fu5hbd0k.fsf@gmail.com> <87lgf9gwe7.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42754) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1es6oZ-00087k-4d for emacs-orgmode@gnu.org; Sat, 03 Mar 2018 08:03:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1es6oV-0003rc-4n for emacs-orgmode@gnu.org; Sat, 03 Mar 2018 08:03:03 -0500 Received: from [195.159.176.226] (port=43863 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1es6oU-0003qx-VH for emacs-orgmode@gnu.org; Sat, 03 Mar 2018 08:02:59 -0500 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1es6mO-00075z-9X for emacs-orgmode@gnu.org; Sat, 03 Mar 2018 14:00:48 +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: Hello, > Thorsten Jolitz writes: > >> (funny enough, some org elements have 'value' as their content, others >> 'content'). > > Could you point out where there is such discrepancy in "org-element.el"? 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.") `---- PS should probably read "... without interpreted content" in the first defconst -- cheers, Thorsten