From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Charles C. Berry" Subject: Re: org-export-babel-evaluate and header arguments Date: Wed, 9 Mar 2016 19:25:34 -0800 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46326) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1adrEO-0006qh-5Y for emacs-orgmode@gnu.org; Wed, 09 Mar 2016 22:25:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1adrEH-0001JD-Av for emacs-orgmode@gnu.org; Wed, 09 Mar 2016 22:25:44 -0500 Received: from iport-acv5-out.ucsd.edu ([132.239.0.10]:4097) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1adrEG-0001J5-Ru for emacs-orgmode@gnu.org; Wed, 09 Mar 2016 22:25:37 -0500 In-Reply-To: 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: Anthony Cowley Cc: emacs-orgmode On Wed, 9 Mar 2016, Anthony Cowley wrote: > > If I have org-export-babel-evaluate set to nil, source blocks are not > evaluated on export. However, if a source block has a :var header > argument that calls another source block, I am prompted if the callee > should be evaluated. > > Given that the caller is not to be evaluated, I'm not sure I see a > reason for the :var to be evaluated. What gives here is that `org-babel-get-src-block-info' needs to develop all the header arguments regardless of evaluation of the code block, so :var gets handled. > Is there a way I can disable this argument evaluation? Something like: :var a=(and org-export-babel-evaluate (org-sbe "abc")) See C-h f org-sbe RET HTH, Chuck