From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: Include files to be used in literate programming Date: Fri, 17 Sep 2010 08:51:40 -0400 Message-ID: <8762y45ujc.fsf@gmail.com> References: <4A6B29B6-07EA-46F0-99E9-718F93DAE558@me.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=60436 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OwbfR-0007II-31 for emacs-orgmode@gnu.org; Fri, 17 Sep 2010 10:11:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OwbfP-0007UG-I6 for emacs-orgmode@gnu.org; Fri, 17 Sep 2010 10:11:56 -0400 Received: from mail-yw0-f41.google.com ([209.85.213.41]:50930) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OwbfP-0007UB-Fq for emacs-orgmode@gnu.org; Fri, 17 Sep 2010 10:11:55 -0400 Received: by ywl5 with SMTP id 5so1131491ywl.0 for ; Fri, 17 Sep 2010 07:11:55 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Giorgio Valoti Cc: emacs-orgmode@gnu.org Hi Giorgio, This is currently not possible as we're not currently expanding #+include links during tangling. I agree this would be useful behavior. This seems to be related to a recent theme on the mailing list of unifying tangling with the rest of the Org-mode export functionality. Once/if tangling were treated as an export target, then things like the expansion of #+include lines would come for free. Thanks for bringing this up, this will be an important point to keep in mind while figuring out the future of tangling. Best -- Eric Giorgio Valoti writes: > Hi all, > I=E2=80=99ve just switched from OmniFocus and began using Org mode. But I= also > discovered that it can be used for literate programming and I=E2=80=99d l= ike > to ask if is there a way to use an included file in the tangling > phase. In other words, I have a file which includes a commons.org > file, like this: > > =3D=3D=3D commons.org contents =3D=3D=3D > * Variabili comuni > :PROPERTIES: > :END: > #+SRCNAME: entity-name > #+BEGIN_SRC :noweb yes > nome_tabella > #+END_SRC > > > =3D=3D=3D main.org contents =3D=3D=3D > #+INCLUDE: "commons.org" > > * Sezione in SQL > :PROPERTIES: > :END: > #+SRCNAME: sql-module > #+BEGIN_SRC sql :tangle module.sql :noweb yes > select * > from table <>; > #+END_SRC > > <> should come from the commons but it=E2=80=99s not. > > Is there a way to expand values from included files? > > Thank you in advance. > > -- > Giorgio Valoti > > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode