From mboxrd@z Thu Jan 1 00:00:00 1970 From: Torsten Wagner Subject: Re: [babel]: Some feedback after the first week usage Date: Fri, 6 Nov 2009 10:34:12 +0900 Message-ID: <200911061034.12151.torsten.wagner@googlemail.com> References: <200911051727.44814.torsten.wagner@googlemail.com> <506D0F4E-CEBB-44E7-A23C-2E6643FBED34@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 1N6Dia-0005zd-LF for emacs-orgmode@gnu.org; Thu, 05 Nov 2009 20:34:24 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N6DiV-0005qn-P5 for emacs-orgmode@gnu.org; Thu, 05 Nov 2009 20:34:24 -0500 Received: from [199.232.76.173] (port=54955 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N6DiV-0005qW-JU for emacs-orgmode@gnu.org; Thu, 05 Nov 2009 20:34:19 -0500 Received: from mail-yw0-f194.google.com ([209.85.211.194]:58049) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N6DiV-00038Q-5k for emacs-orgmode@gnu.org; Thu, 05 Nov 2009 20:34:19 -0500 Received: by ywh32 with SMTP id 32so589540ywh.14 for ; Thu, 05 Nov 2009 17:34:18 -0800 (PST) In-Reply-To: <506D0F4E-CEBB-44E7-A23C-2E6643FBED34@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" Cc: Org Mode Mailing List Hi Tom > Would something like run-code-blocks (below) do what you want? I put > a source block like this at the top of my org-babel file, where I can > find it quickly. > > #+srcrname: run-code-blocks > #+begin_src python :noweb > <> > <> > #+end_src > > #+srcname: block-1 > #+begin_src python > a = 1 > a > #+end_src > > #+srcname: block-2 > #+begin_src python > b = 1 > b > #+end_src Actually, that is a very nice and smart idea :) It could be something like a Makefile allowing me to switch on and off different blocks (e.g., for debugging if there is an error somewhere), switch between different blocks (e.g. real data from file and test data set) or even modify temporarily variables in between For example I could write: #+srcrname: run-code-blocks #+begin_src python :noweb # <> # choose between real data <> # and test data # wondering whether it would work with negative values a = -1 <> #+end_src #+srcname: block-1 #+begin_src python a = open("foo.txt","r") a #+end_src #+srcname: block-test #+begin_src python a = 1 a #+end_src #+srcname: block-2 #+begin_src python b = 1 b #+end_src Nice, will try it and many thanks for sharing Greetings Torsten