From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Robert P. Goldman" Subject: Re: Org babel does not work properly with included files Date: Sun, 01 May 2011 20:52:40 -0500 Message-ID: References: <4DBDFE55.7080303@sift.info> <17693.1304299983@alphaville.americas.hpqcorp.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----EVQJE8BDTWB8DMW9C1WXV6GD2VHGRA" Return-path: Received: from eggs.gnu.org ([140.186.70.92]:54777) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QGiJO-0008H0-47 for emacs-orgmode@gnu.org; Sun, 01 May 2011 21:52:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QGiJN-0001Hn-14 for emacs-orgmode@gnu.org; Sun, 01 May 2011 21:52:34 -0400 Received: from mpls.sift.info ([75.146.46.193]:55490) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QGiJM-0001Hj-S9 for emacs-orgmode@gnu.org; Sun, 01 May 2011 21:52:32 -0400 In-Reply-To: <17693.1304299983@alphaville.americas.hpqcorp.net> 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: nicholas.dokos@hp.com Cc: Org Mode ------EVQJE8BDTWB8DMW9C1WXV6GD2VHGRA Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Also note that if you have an included file with MULTIPLE code blocks, th= is approach won't generalize.... Best, --=20 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 that src buffer evaluation in > subs= idiary, included files, does not work. > > * Demo > > #+include "~/src/or= g-test/bar.org" > > bar.org: > * Here's the demo > > #+begin_src sh :expo= rts results :results output > echo "foo!" > #+end_src > As a workaround, = try making the headings identical, i.e. bar.org looks like this: --8<----= -----------cut here---------------start------------->8--- * Demo #+begin_= src sh :exports results :results output echo "foo!" #+end_src --8<-------= --------cut here---------------end--------------->8--- Nick=20 ------EVQJE8BDTWB8DMW9C1WXV6GD2VHGRA Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 <nicholas.dokos@hp.com> wro= te:
Robert Goldm= an <rpgoldman@sift.info> wrote: foo.org: > * Purpose >=20 > This document is intended to demonstrate that src buffer evaluation = in > subsidiary, included files, does not work. >=20 > * Demo >=20 > #+include "~/src/org-test/bar.org"=20 >=20 >=20 bar.org: > * Here's the demo >=20 > #+begin_src sh :exports results :results output > echo "foo!" > #+end_src >=20 As a workaround, try making the headings identical, i.e. bar.org looks like this: --8<---------------cut here---------------start------------->8--- * Demo #+begin_src sh :exports results :results output echo "foo!" #+end_src --8<---------------cut here---------------end--------------->8--- Nick
------EVQJE8BDTWB8DMW9C1WXV6GD2VHGRA--