[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Evaluating inline source blocks on export issue
From: |
Nick Dokos |
Subject: |
Re: [O] Evaluating inline source blocks on export issue |
Date: |
Wed, 23 Jul 2014 21:24:47 -0400 |
User-agent: |
Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.3.50 (gnu/linux) |
Grant Rettke <address@hidden> 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