From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastien Vauban Subject: Re: problems with INCLUDE, noweb and tangle Date: Tue, 09 Dec 2014 12:06:49 +0100 Message-ID: <86zjaxaxpy.fsf@example.com> References: <86r3w9yjkx.fsf@me.localhost.invalid> <87fvcpcgml.fsf@nicolasgoaziou.fr> <86h9x5w0s6.fsf@me.localhost.invalid> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: 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-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Daniele Pizzolli wrote: > Hello Nicolas, > > Nicolas Goaziou writes: > >> Hello, >> >> Daniele Pizzolli writes: >> >>> The noweb reference in the included file is not present in tangle (and >>> sometimes also is not present within the results in the buffer). >> >> File inclusion, through INCLUDE keywords, is an export-only feature. > > Thanks for the clarification. I did not noticed that before. I guess > that there is no plan to get this working for the general case, so the > only viable option is using one big .org file. Or use the Library of Babel, if the code you wanna tangle gets eventually used in many different files? =E2=94=8C=E2=94=80=E2=94=80=E2=94=80=E2=94=80 =E2=94=82 14.6 Library of Babel =E2=94=82 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =E2=94=82=20 =E2=94=82 The =E2=80=9CLibrary of Babel=E2=80=9D consists of code blocks = that can be called from =E2=94=82 any Org mode file. Code blocks defined in the =E2=80=9CLibrary= of Babel=E2=80=9D can be =E2=94=82 called remotely as if they were in the current Org mode buffer = (see =E2=94=82 *note Evaluating code blocks:: for information on the syntax of= remote =E2=94=82 code block evaluation). =E2=94=82=20 =E2=94=82 The central repository of code blocks in the =E2=80=9CLibrar= y of Babel=E2=80=9D is =E2=94=82 housed in an Org mode file located in the =E2=80=98contrib=E2= =80=99 directory of Org =E2=94=82 mode. =E2=94=82=20 =E2=94=82 Users can add code blocks they believe to be generally usefu= l to =E2=94=82 their =E2=80=9CLibrary of Babel.=E2=80=9D The code blocks can b= e stored in any Org mode =E2=94=82 file and then loaded into the library with =E2=80=98org-babel-l= ob-ingest=E2=80=99. =E2=94=82=20 =E2=94=82 Code blocks located in any Org mode file can be loaded into = the =E2=94=82 =E2=80=9CLibrary of Babel=E2=80=9D with the =E2=80=98org-babel-= lob-ingest=E2=80=99 function, bound to =E2=94=82 =E2=80=98C-c C-v i=E2=80=99. =E2=94=94=E2=94=80=E2=94=80=E2=94=80=E2=94=80 Best regards, Seb --=20 Sebastien Vauban