From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Two potentially useful functions for org-element Date: Fri, 08 Aug 2014 10:03:37 +0200 Message-ID: <87egwro1ba.fsf@nicolasgoaziou.fr> References: <87wqalql21.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59140) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XFf8j-00013E-5E for emacs-orgmode@gnu.org; Fri, 08 Aug 2014 04:03:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XFf8Y-000295-QD for emacs-orgmode@gnu.org; Fri, 08 Aug 2014 04:03:05 -0400 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:32785) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XFf8Y-00028y-Ju for emacs-orgmode@gnu.org; Fri, 08 Aug 2014 04:02:54 -0400 In-Reply-To: <87wqalql21.fsf@gmail.com> (Thorsten Jolitz's message of "Thu, 07 Aug 2014 01:01:58 +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: Thorsten Jolitz Cc: emacs-orgmode@gnu.org Hello, Thorsten Jolitz writes: > now that I understand the 'org-element API' a bit better, I think that > the following two functions can be very useful for creating and > modifying Org elements without the usual point movements, regexp > searches and string operations in a buffer: Element isn't really meant to provide tools to modify the buffer. It is only a parser, i.e. buffer to parse tree transformation. The reciprocal, i.e., modifying a parse tree in order to alter the buffer may belong to another library. IIRC, this is the goal of "org-sync" (from GSOC 2012). You may want to look into it. Regards, -- Nicolas Goaziou