From mboxrd@z Thu Jan 1 00:00:00 1970 From: Harry Butterworth Subject: Re: Tangling include files Date: Thu, 24 Nov 2016 12:00:49 +0800 Message-ID: References: <84bmx6le7z.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=94eb2c070180144a710542040d81 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34243) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c9lDP-0000yR-W2 for emacs-orgmode@gnu.org; Wed, 23 Nov 2016 23:00:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c9lDP-0001H2-44 for emacs-orgmode@gnu.org; Wed, 23 Nov 2016 23:00:52 -0500 Received: from mail-qk0-x22b.google.com ([2607:f8b0:400d:c09::22b]:36536) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c9lDO-0001Gm-Uu for emacs-orgmode@gnu.org; Wed, 23 Nov 2016 23:00:51 -0500 Received: by mail-qk0-x22b.google.com with SMTP id n21so37450585qka.3 for ; Wed, 23 Nov 2016 20:00:50 -0800 (PST) In-Reply-To: <84bmx6le7z.fsf@gmail.com> 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: Marco Wahl Cc: emacs-orgmode@gnu.org --94eb2c070180144a710542040d81 Content-Type: text/plain; charset=UTF-8 I tried org-org-export-to-org which puts everything into a single document but it strips the :tangle parameters out so a subsequent tangle doesn't generate any source code. On 23 November 2016 at 17:47, Marco Wahl wrote: > Hi! > > > 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. > > Quick thought: what about exporting the top level document as Org and > then tangle the resulting (one big) .org file? > > > HTH > > Morco > > > --94eb2c070180144a710542040d81 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I tried org-org-export-to-org which puts everything into a= single document but it strips the :tangle parameters out so a subsequent t= angle doesn't generate any source code.

On 23 November 2016 at 17:47, Marco Wah= l <marcowahlsoft@gmail.com> wrote:
Hi!

>=C2=A0 =C2=A0 =C2=A0I am attempting to switch from FunnelWeb to Org for= literate
> programming.=C2=A0 I'm stuck because I can't work out how to i= nclude .org files
> and then tangle everything.=C2=A0 A tangle in the top level file only = seems to
> tangle the contents of that file and not the contents of the included = files.
>
>=C2=A0 =C2=A0 =C2=A0I did find something on this topic in a mailing lis= t from several years
> back but the workaround posted there seems to be out of date.
>
>=C2=A0 =C2=A0 =C2=A0I don't want to put all my source code into one= big .org file.=C2=A0 With
> FunnelWeb, I would organize source code for public classes into an
> interface file and an implementation file and private classes into a s= ingle
> file so the resulting document could have a section documenting the pu= blic
> 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 implementa= tion
> 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 ne= cessary.

Quick thought: what about exporting the top level document as O= rg and
then tangle the resulting (one big) .org file?


HTH

=C2=A0 =C2=A0 =C2=A0 =C2=A0 Morco



--94eb2c070180144a710542040d81--