From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thomas S. Dye" Subject: Re: source code block export no expansion Date: Tue, 7 Dec 2010 08:37:19 -1000 Message-ID: <2062CE38-02AE-48AE-A36E-92605E973FCB@tsdye.com> References: <4CFE7126.8090304@med.uni-goettingen.de> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=54527 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQ2Pp-0004Jm-4l for emacs-orgmode@gnu.org; Tue, 07 Dec 2010 13:38:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PQ2Pn-0005JM-V2 for emacs-orgmode@gnu.org; Tue, 07 Dec 2010 13:37:29 -0500 Received: from cpoproxy3-pub.bluehost.com ([67.222.54.6]:36286) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1PQ2Pn-0005J7-O9 for emacs-orgmode@gnu.org; Tue, 07 Dec 2010 13:37:27 -0500 In-Reply-To: <4CFE7126.8090304@med.uni-goettingen.de> 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: Andreas Leha Cc: emacs-orgmode@gnu.org Aloha Andreas, Perhaps :noweb tangle will do what you want. hth, Tom On Dec 7, 2010, at 7:38 AM, Andreas Leha wrote: > Hi all, > > I have a question about exporting source code blocks. Say, I have > several modules (mod1, mod2), that build a bigger part (part1) of my > program, e.g.: > > > #+srcname: mod1 > #+begin_src R :tangle no :export code > print("mod1") > #+end_src > > #+srcname: mod2 > #+begin_src R :tangle no :export code > print("mod2") > #+end_src > > #+srcname: part1 > #+begin_src R :noweb yes :tangle yes :export code :session *R* > <> > <> > #+end_src > > > Now during the tangling I would like to tangle just the full part1 - > with noweb links being expanded. Also during execution the noweb > links > should be expanded. This is not a problem. > > But at the same time, during the export I'd like to export all three > code snippets, but I'd prefer the noweb links not to be expanded. Is > that possible? > > Thanks in advance, > Andreas > > _______________________________________________ > 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