From mboxrd@z Thu Jan 1 00:00:00 1970 From: Harry Butterworth Subject: Tangling include files Date: Wed, 23 Nov 2016 16:24:35 +0800 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11479f90829d910541f39e81 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54305) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c9SrA-00011M-SP for emacs-orgmode@gnu.org; Wed, 23 Nov 2016 03:24:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c9Sr6-0004aQ-T4 for emacs-orgmode@gnu.org; Wed, 23 Nov 2016 03:24:40 -0500 Received: from mail-qk0-x235.google.com ([2607:f8b0:400d:c09::235]:35874) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c9Sr6-0004Zx-OO for emacs-orgmode@gnu.org; Wed, 23 Nov 2016 03:24:36 -0500 Received: by mail-qk0-x235.google.com with SMTP id n21so6328512qka.3 for ; Wed, 23 Nov 2016 00:24:36 -0800 (PST) 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" To: emacs-orgmode@gnu.org --001a11479f90829d910541f39e81 Content-Type: text/plain; charset=UTF-8 Hi Folks, I am attempting to switch from FunnelWeb to Org for literate programming. I'm stuck because I can't work out how to include .org files and then tangle everything. A tangle in the top level file only seems to tangle the contents of that file and not the contents of the included files. I did find something on this topic in a mailing list from several years back but the workaround posted there seems to be out of date. I don't want to put all my source code into one big .org file. With FunnelWeb, I would organize source code for public classes into an interface file and an implementation file and private classes into a single file so the resulting document could have a section documenting the public API followed by the implementation. So the top level document would end up something like this: include X_int include Y_int include Z_int include X include Y include Z include P include Q include R It looks to me like there have been some changes around the implementation of INCLUDE in Org, I'm wondering if tangling include files is now supported and if so, how to do it. My installed Org version is 8.2.4 but obviously I'll upgrade if necessary. Thanks Harry --001a11479f90829d910541f39e81 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Folks,

=C2=A0=C2=A0=C2=A0 I am a= ttempting to switch from FunnelWeb to Org for literate programming.=C2=A0 I= 'm stuck because I can't work out how to include .org files and the= n tangle everything.=C2=A0 A tangle in the top level file only seems to tan= gle the contents of that file and not the contents of the included files.
=C2=A0=C2=A0=C2=A0 I did find something on this topic in a mailing li= st from several years back but the workaround posted there seems to be out = of date.

=C2=A0=C2=A0=C2=A0 I don't want to put all m= y source code into one big .org file.=C2=A0 With FunnelWeb, I would organiz= e source code for public classes into an interface file and an implementati= on file and private classes into a single file so the resulting document co= uld have a section documenting the public API followed by the implementatio= n.

So the top level document would end up something like = this:

include X_int
include Y_in= t
include Z_int
include X
<= div>include Y
include Z
include P
include Q
include R

It looks to me like th= ere have been some changes around the implementation of INCLUDE in Org, I&#= 39;m wondering if tangling include files is now supported and if so, how to= do it.

My installed Org version is 8.2.4 but obviously I= 'll upgrade if necessary.

Thanks

Ha= rry
--001a11479f90829d910541f39e81--