From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: How to insert/replace during `org-elemment-map' call? Date: Thu, 07 Aug 2014 15:14:44 +0200 Message-ID: <87k36kmofv.fsf@nicolasgoaziou.fr> References: <87d2cca6aq.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39479) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XFNWH-0000md-Jw for emacs-orgmode@gnu.org; Thu, 07 Aug 2014 09:14:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XFNW7-0003qd-En for emacs-orgmode@gnu.org; Thu, 07 Aug 2014 09:14:13 -0400 Received: from relay5-d.mail.gandi.net ([2001:4b98:c:538::197]:57823) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XFNW7-0003qW-8U for emacs-orgmode@gnu.org; Thu, 07 Aug 2014 09:14:03 -0400 In-Reply-To: <87d2cca6aq.fsf@gmail.com> (Thorsten Jolitz's message of "Thu, 07 Aug 2014 13:27:25 +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: > When I set that argument to non-nil (t or 'append or 'prepend), things > stop working because replacing/appending changes the parsed buffer, > but the :begin and :end properties of the already parsed elements are > not adjusted and I use them e.g. to delete a region. > > Without using the export-framework (which seems overkill in this > case), is there a way to make this work anyway? You can make replacements backwards, i.e., starting from the bottom of the buffer. Regards, -- Nicolas Goaziou