From mboxrd@z Thu Jan 1 00:00:00 1970 From: Torsten Wagner Subject: Re: [babel] noweb does not work (as expected) Date: Tue, 10 Nov 2009 10:40:50 +0900 Message-ID: <200911101040.50959.torsten.wagner@googlemail.com> References: <200911091247.48775.torsten.wagner@googlemail.com> <200911091638.17208.torsten.wagner@googlemail.com> <2B2D9FBC-E90A-47EC-B4AA-9460A9E5CD40@tsdye.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N7fj9-00061W-5m for emacs-orgmode@gnu.org; Mon, 09 Nov 2009 20:40:59 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N7fj3-00060W-PZ for emacs-orgmode@gnu.org; Mon, 09 Nov 2009 20:40:58 -0500 Received: from [199.232.76.173] (port=34979 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N7fj3-00060T-Mp for emacs-orgmode@gnu.org; Mon, 09 Nov 2009 20:40:53 -0500 Received: from mail-gx0-f224.google.com ([209.85.217.224]:43854) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N7fj3-0003nL-CZ for emacs-orgmode@gnu.org; Mon, 09 Nov 2009 20:40:53 -0500 Received: by gxk24 with SMTP id 24so6527172gxk.6 for ; Mon, 09 Nov 2009 17:40:52 -0800 (PST) In-Reply-To: <2B2D9FBC-E90A-47EC-B4AA-9460A9E5CD40@tsdye.com> 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: "Thomas S. Dye" , Org Mode Mailing List > Hi Torsten, Hi Tom, > It's not clear to me what outcome you desire. Tangling should result > in a source file that can serve as input to a compiler or > interpreter. The combination of :noweb and :session lets you write > literate programs that are sent directly to an interpreter, which > presumably creates some useful output along the way (my example makes > some graphs after a lot of data reshaping), but might be used just to > set up an environment in the interpreter, which then can be > manipulated directly in the session buffer. Actually I'm looking for a way to execute several of my source code buffers in a comfortable and semiautomatic way to do exactly what you described. Joggling around with my measurement data... bend badly statistics until it fit to my world ;) and finally create a plot, table or even a single number. The blocks should be aware of each other (same session) and I like to have a single local place to control the order in which the source code blocks are executed and be able to tweak around with some variables or add quickly. Thus, this sound really like :noweb and :session will do this. However, sometimes I would prefer to see the code all tangled together in one chunk. This might be esp. interesting for several purposes. a) Give the pure code to someone else, b) Make a somehow stand-alone-version without org-babel e.g. to execute it over and over again on another org-babel free machine, c) Debugging and bug searching might be easier since you can clearly see the interfaces between the source code blocks without to much org-mode in between. I guess at the moment I could create two blocks ... one :noweb, :nosession for the interactive work on the project and one with :tangle which put all this together into a single file. I never tried :tangle and :noweb together. Actually, they should not conflict so fare. However, at the worg-page all options are given as mutual exclusive. I will give at a trial... as soon as I make my file working under both methods. Best regards, Torsten