From: Marco Wahl <marcowahlsoft@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Tangling include files
Date: Wed, 23 Nov 2016 10:47:44 +0100 [thread overview]
Message-ID: <84bmx6le7z.fsf@gmail.com> (raw)
In-Reply-To: CAMUwPhztQyLa_TFC+_=vOitAm75ATBNYwfJsWEMe_zg4Zk_nyg@mail.gmail.com
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
next prev parent reply other threads:[~2016-11-23 9:48 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-23 8:24 Tangling include files Harry Butterworth
2016-11-23 9:47 ` Marco Wahl [this message]
2016-11-24 4:00 ` Harry Butterworth
2016-11-24 5:22 ` Charles C. Berry
2016-11-24 9:00 ` Robert Klein
2016-11-24 17:56 ` Charles C. Berry
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=84bmx6le7z.fsf@gmail.com \
--to=marcowahlsoft@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).