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:48:58 -0500 Message-ID: <90a049ce-df0a-41ca-9a5e-617953d20e54@email.android.com> References: <4DBDFE55.7080303@sift.info> <17693.1304299983@alphaville.americas.hpqcorp.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----YXXBG4DNJ4EGQPXP5GH3A096K4EXQI" Return-path: Received: from eggs.gnu.org ([140.186.70.92]:38765) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QGiFo-0007jO-UZ for emacs-orgmode@gnu.org; Sun, 01 May 2011 21:48:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QGiFn-0000lQ-Ps for emacs-orgmode@gnu.org; Sun, 01 May 2011 21:48:52 -0400 Received: from mpls.sift.info ([75.146.46.193]:51951) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QGiFn-0000lI-Hu for emacs-orgmode@gnu.org; Sun, 01 May 2011 21:48:51 -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 ------YXXBG4DNJ4EGQPXP5GH3A096K4EXQI Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 make sure it worked befo= re I copied it into the included file and forgot to remove it from the ma= ster file.) Best, R --=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 ------YXXBG4DNJ4EGQPXP5GH3A096K4EXQI Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 in= cluded file.

(I tested the source block in the master file to make sure it worked befo= re I copied it into the included file and forgot to remove it from the ma= ster file.)

Best,
R
--
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
------YXXBG4DNJ4EGQPXP5GH3A096K4EXQI--