From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marco Wahl Subject: Re: Tangling include files Date: Wed, 23 Nov 2016 10:47:44 +0100 Message-ID: <84bmx6le7z.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42695) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c9U9n-00057V-S6 for emacs-orgmode@gnu.org; Wed, 23 Nov 2016 04:48:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c9U9k-0001wm-Q3 for emacs-orgmode@gnu.org; Wed, 23 Nov 2016 04:47:59 -0500 Received: from [195.159.176.226] (port=48278 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c9U9k-0001wG-JI for emacs-orgmode@gnu.org; Wed, 23 Nov 2016 04:47:56 -0500 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1c9U9c-0000NL-5p for emacs-orgmode@gnu.org; Wed, 23 Nov 2016 10:47:48 +0100 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 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