From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Evaluating inline source blocks on export issue Date: Wed, 23 Jul 2014 21:24:47 -0400 Message-ID: <87lhrja6qo.fsf@gmail.com> References: <87sils9rf7.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54754) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XA7mq-0004o2-FN for emacs-orgmode@gnu.org; Wed, 23 Jul 2014 21:25:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XA7mk-0001lI-1B for emacs-orgmode@gnu.org; Wed, 23 Jul 2014 21:25:36 -0400 Received: from plane.gmane.org ([80.91.229.3]:36672) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XA7mj-0001l8-S6 for emacs-orgmode@gnu.org; Wed, 23 Jul 2014 21:25:29 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XA7md-0002rz-GP for emacs-orgmode@gnu.org; Thu, 24 Jul 2014 03:25:23 +0200 Received: from pool-98-110-160-12.bstnma.fios.verizon.net ([98.110.160.12]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 24 Jul 2014 03:25:23 +0200 Received: from ndokos by pool-98-110-160-12.bstnma.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 24 Jul 2014 03:25:23 +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: emacs-orgmode@gnu.org Grant Rettke writes: > Thanks for looking Thomas and Nick. > > When I set this and export > > ,---- > | (setq org-export-babel-evaluate t) > `---- > > I get the expected result of > > ,---- > | Here is a `16', stuck in the middle of some prose. > `---- > > But when I do this and export > > ,---- > | (setq org-export-babel-evaluate 'inline-only) > `---- > > I get this output which is not what I expected > > ,---- > | Here is a , stuck in the middle of some prose. > `---- > > I thought that I was enabling inline code block execution correctly > and making the inline call correctly. > > How does it look should it be doing what I had wanted? > I don't think you can: the `type' (see below) of the inline code is not `inline' as one might think at first, but `lob', presumably because call_foo is defined in the library-of-babel. The relevant code is in ob-exp.el:org-babel-exp-results: ,---- | ... | (when (and (or (eq org-export-babel-evaluate t) | (and (eq type 'inline) | (eq org-export-babel-evaluate 'inline-only))) | (not (and hash (equal hash (org-babel-current-result-hash))))) | ... `---- -- Nick