Re: [O] Org babel does not work properly with included files

2011-05-11 Thread Robert Goldman
I would say we can close this bug report as INVALID. AFAICT, the actual problem was happening simply because of the incorrect treatment of missing links during export, which is now fixed. When that got fixed, my issue went away. best, r

Re: [O] Org babel does not work properly with included files

2011-05-05 Thread Robert Goldman
On 5/5/11 May 5 -4:27 PM, Eric Schulte wrote: >>> >>> I'm not sure that the current behavior is a bug. Is it reasonable to >>> place code block parameters into an included file? These parameters >>> would not be successfully found during interactive evaluation, and could >>> only plausibly be use

Re: [O] Org babel does not work properly with included files

2011-05-05 Thread Eric Schulte
>> >> I'm not sure that the current behavior is a bug. Is it reasonable to >> place code block parameters into an included file? These parameters >> would not be successfully found during interactive evaluation, and could >> only plausibly be used during export as you anticipated. > > Aren't the

Re: [O] Org babel does not work properly with included files

2011-05-05 Thread Robert Goldman
On 5/5/11 May 5 -11:56 AM, Eric Schulte wrote: > Robert Goldman writes: > >> Looking over this some more, I see that the challenge is to: >> >> 1. read the file parameters (whatever they are) from the original file >> (hence opening the file from the link) and >> >> 2. read the header parameter

Re: [O] Org babel does not work properly with included files

2011-05-05 Thread Eric Schulte
Robert Goldman writes: > Looking over this some more, I see that the challenge is to: > > 1. read the file parameters (whatever they are) from the original file > (hence opening the file from the link) and > > 2. read the header parameters from the export buffer, since the header > may not actu

Re: [O] Org babel does not work properly with included files

2011-05-01 Thread Robert P. Goldman
Yes. That's right, the single source block was a simplification for the example. It was abstracted from a more complicated case with a dozen or so source blocks in the subordinate filter. But thanks for the suggestion. Hope we can find a fix! Best R -- Sent from my Android phone with K-9 Mail.

Re: [O] Org babel does not work properly with included files

2011-05-01 Thread Nick Dokos
Robert P. Goldman wrote: > Sorry, I think I have created a red herring here by leaving that code blo= > ck in both files. To see what the problem really is, consider the case wh= > ere the source code block appears ONLY in the included file. > > (I tested the source block in the master file to

Re: [O] Org babel does not work properly with included files

2011-05-01 Thread Robert Goldman
Looking over this some more, I see that the challenge is to: 1. read the file parameters (whatever they are) from the original file (hence opening the file from the link) and 2. read the header parameters from the export buffer, since the header may not actually be contained in the original fil

Re: [O] Org babel does not work properly with included files

2011-05-01 Thread Robert P. Goldman
Also note that if you have an included file with MULTIPLE code blocks, this approach won't generalize Best, -- Sent from my Android phone with K-9 Mail. Please excuse my brevity. Nick Dokos wrote: Robert Goldman wrote: foo.org: > * Purpose > > This document is intended to demonstrate th

Re: [O] Org babel does not work properly with included files

2011-05-01 Thread Robert P. Goldman
Sorry, I think I have created a red herring here by leaving that code block in both files. To see what the problem really is, consider the case where the source code block appears ONLY in the included file. (I tested the source block in the master file to make sure it worked before I copied it

Re: [O] Org babel does not work properly with included files

2011-05-01 Thread Nick Dokos
Robert Goldman wrote: foo.org: > * Purpose > > This document is intended to demonstrate that src buffer evaluation in > subsidiary, included files, does not work. > > * Demo > > #+include "~/src/org-test/bar.org" > > bar.org: > * Here's the demo > > #+begin_src sh :exports results :result

[O] Org babel does not work properly with included files

2011-05-01 Thread Robert Goldman
Here's the problem: when org-babel goes to look for parameters when executing a source block, it looks for them in the parent source file, and not in the parent source file with the included materials. Here is the function that goes awry: (defmacro org-babel-exp-in-export-file (lang &rest bo