From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: (Maybe) enhance `org-element-src-block-interpreter'? Date: Thu, 07 Aug 2014 14:14:40 +0200 Message-ID: <871tsso5sf.fsf@nicolasgoaziou.fr> References: <87tx5qvrl4.fsf@gmail.com> <87oavywal0.fsf@gmail.com> <87fvha81zd.fsf@gmail.com> <87egwt26o3.fsf@nicolasgoaziou.fr> <87wqal7rl8.fsf@gmail.com> <87wqalztmj.fsf@nicolasgoaziou.fr> <87oavx7lgy.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54009) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XFMaF-0005C4-5c for emacs-orgmode@gnu.org; Thu, 07 Aug 2014 08:14:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XFMa2-0007GC-5T for emacs-orgmode@gnu.org; Thu, 07 Aug 2014 08:14:15 -0400 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:53194) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XFMa2-0007Ct-0K for emacs-orgmode@gnu.org; Thu, 07 Aug 2014 08:14:02 -0400 In-Reply-To: <87oavx7lgy.fsf@gmail.com> (Thorsten Jolitz's message of "Wed, 06 Aug 2014 16:15:41 +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 Thorsten Jolitz writes: > I definitely would have used `org-element-put-property' to modify a > 'local' parse-tree too, but I can just as well directly use `plist-put' > on the raw plist in its cdr - would that be the correct way? You shouldn't do this. Local value is cached and `org-element-put-property' is destructive. You might break cache. Applying `org-element-put-property' on a copy of the returned value is OK, though. Regards, -- Nicolas Goaziou