From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Charles C. Berry" Subject: Re: org-export-babel-evaluate and header arguments Date: Thu, 10 Mar 2016 19:30:00 -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]:54035) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aeDmB-0002b3-TF for emacs-orgmode@gnu.org; Thu, 10 Mar 2016 22:30:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aeDm6-0006wR-Qs for emacs-orgmode@gnu.org; Thu, 10 Mar 2016 22:30:07 -0500 Received: from iport-acv3-out.ucsd.edu ([132.239.0.4]:45863) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aeDm6-0006w4-If for emacs-orgmode@gnu.org; Thu, 10 Mar 2016 22:30:02 -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 Thu, 10 Mar 2016, Anthony Cowley wrote: > > Charles C. Berry writes: > >> 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. [snip] >> >>> Is there a way I can disable this argument evaluation? >> >> Something like: >> >> :var a=(and org-export-babel-evaluate (org-sbe "abc")) [snip] > > This works out very well with one minor caveat: > > Setting org-export-babel-evaluate to nil means that C-c C-c no longer > properly evaluates a block with such a header. This means that exporting > must be enabled during development. > Maybe you can get what you want by setting `:eval never-exports' for the buffer. See (info "(org) exports") (info "(org) Header arguments in Org mode properties") HTH, Chuck