From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: Re: (Maybe) enhance `org-element-src-block-interpreter'? Date: Wed, 06 Aug 2014 14:03:31 +0200 Message-ID: <87wqal7rl8.fsf@gmail.com> References: <87tx5qvrl4.fsf@gmail.com> <87oavywal0.fsf@gmail.com> <87fvha81zd.fsf@gmail.com> <87egwt26o3.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43630) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XEzwb-0004fH-PR for emacs-orgmode@gnu.org; Wed, 06 Aug 2014 08:03:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XEzwV-0001bV-Nu for emacs-orgmode@gnu.org; Wed, 06 Aug 2014 08:03:49 -0400 Received: from plane.gmane.org ([80.91.229.3]:40220) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XEzwV-0001aW-Do for emacs-orgmode@gnu.org; Wed, 06 Aug 2014 08:03:43 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XEzwU-0005Av-Du for emacs-orgmode@gnu.org; Wed, 06 Aug 2014 14:03:42 +0200 Received: from g231111166.adsl.alicedsl.de ([92.231.111.166]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 06 Aug 2014 14:03:42 +0200 Received: from tjolitz by g231111166.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 06 Aug 2014 14:03:42 +0200 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Nicolas Goaziou writes: Hello, >> Yes, there are other elements and more affiliated keywords. The >> parser (or rather the interpreter(s)) and parts of Org Babel do not >> always deal with them yet. >> >> This was more a 'constructive bug report', not so much an attempt of a >> general fix. I just (partly) fixed this function for myself because I >> needed it ... > > There is no bug here. > > `org-element-src-block-interpreter' is meant to create a src block and > only a src block. `org-element--interpret-affiliated-keyword' is used to > create affiliated keywords (like "#+header"). You shouldn't call any of > these anyway, since `org-element-interpret-data' is the one and only > entry point to interpret parsed data. Try > > > (org-element-interpret-data ptree) I see, thanks. I'm still getting used to the 'org-element API', but it seems to be much easier than I thought: just use `org-element-at-point' and `org-element-interpret-data' in most cases ... -- cheers, Thorsten