From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [Babel] org-babel-execute-buffer gives different results than org-babel-exp-non-block-elements Date: Fri, 23 Aug 2013 10:11:20 +0200 Message-ID: <87k3jckes7.fsf@gmail.com> References: <87y57twot4.fsf@gmail.com> <87ppt5wjn1.fsf@gmail.com> <87siy1jpff.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56774) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VCmSi-0002by-NR for emacs-orgmode@gnu.org; Fri, 23 Aug 2013 04:11:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VCmSa-00045M-4a for emacs-orgmode@gnu.org; Fri, 23 Aug 2013 04:11:16 -0400 Received: from mail-we0-x234.google.com ([2a00:1450:400c:c03::234]:62801) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VCmSZ-00045F-Uz for emacs-orgmode@gnu.org; Fri, 23 Aug 2013 04:11:08 -0400 Received: by mail-we0-f180.google.com with SMTP id q58so240276wes.39 for ; Fri, 23 Aug 2013 01:11:07 -0700 (PDT) In-Reply-To: (Nicolas Girard's message of "Fri, 23 Aug 2013 01:20:09 +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: Nicolas Girard Cc: emacs-orgmode Nicolas Girard writes: >> `org-babel-exp-non-block-elements' and `org-babel-exp-process-buffer' >> could probably check if code still exists before trying to remove (and >> replace) it. >> > > Yeah, I don't know how much work it would represent but it seems much > more appropriate that my hack-ish solution. It might be tricky to set up. I'm not even sure Babel is meant for these cases (where evaluating code removes its source). Another possibility is to have a "side-effect only" behaviour for export where code block is not removed nor replaced. ":exports none" could be a candidate for this. Maybe Eric Schulte has an opinion on it. Regards, -- Nicolas Goaziou