From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Org mode and "shunt" exporters? Date: Fri, 13 Dec 2013 20:05:56 +0100 Message-ID: <877gb8woyz.fsf@gmail.com> References: <87zjoe7mf2.fsf@gmail.com> <87k3fdu7dm.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48954) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VrY44-0007tY-EN for emacs-orgmode@gnu.org; Fri, 13 Dec 2013 14:06:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VrY3x-0001l0-8B for emacs-orgmode@gnu.org; Fri, 13 Dec 2013 14:06:20 -0500 Received: from mail-ea0-f169.google.com ([209.85.215.169]:61933) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VrY3x-0001ki-1j for emacs-orgmode@gnu.org; Fri, 13 Dec 2013 14:06:13 -0500 Received: by mail-ea0-f169.google.com with SMTP id l9so905746eaj.14 for ; Fri, 13 Dec 2013 11:05:37 -0800 (PST) In-Reply-To: (Brett Viren's message of "Fri, 13 Dec 2013 13:26:57 -0500") 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: Brett Viren Cc: emacs-orgmode@gnu.org, Eric Schulte Hello, Brett Viren writes: > However this method only works for a very simple org document. I'm > successfully filtering out the :parent properties of (most of) the > elements but as soon as my document produces a plain text element like: > > #("Text" 0 4 (:parent #1)) > > then two problems occcur: > > First, I'm simply failing to see how to set this :parent property to nil > like I do with the others. Like any other construct, with `org-element-put-property'. > (let* ((tree (org-element-parse-buffer 'object nil))) > (org-element-map tree org-element-all-elements You're only mapping over elements. You need to add `org-element-all-objects' and `plain-text'. Regards, -- Nicolas Goaziou