From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avdi Grimm Subject: Re: Literate Programming - Continue a Source Block? Date: Fri, 10 Jun 2011 00:55:25 -0400 Message-ID: References: <87pqmokh6d.fsf@fester.com> <80k4cw22uf.fsf@somewhere.org> <87fwnkjqoh.fsf@fester.com> <87mxhsnmcf.fsf@gmail.com> <877h8wj9za.fsf@fester.com> Reply-To: avdi@avdi.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:60464) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QUtl4-0001Np-Tw for emacs-orgmode@gnu.org; Fri, 10 Jun 2011 00:55:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QUtl3-0000k1-T3 for emacs-orgmode@gnu.org; Fri, 10 Jun 2011 00:55:46 -0400 Received: from mail-qw0-f41.google.com ([209.85.216.41]:55602) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QUtl3-0000jw-Nu for emacs-orgmode@gnu.org; Fri, 10 Jun 2011 00:55:45 -0400 Received: by qwa26 with SMTP id 26so1447418qwa.0 for ; Thu, 09 Jun 2011 21:55:45 -0700 (PDT) In-Reply-To: <877h8wj9za.fsf@fester.com> 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@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Neeum Zawan Cc: emacs-orgmode@gnu.org On Wed, Jun 8, 2011 at 5:20 PM, Neeum Zawan wrote: > n this case, yes. In a real programming project, it could be a number > of them. For example, I may have a code block dedicated to > imports/includes which I want to be on the top of the file - and I may > have to append to that when adding a new feature. Ooh! Ooh! Me too! I was just wanting this the other day. I wanted to be able to do: #+srcname: requires #+begin_src ruby require 'library_a' #+end_src ... #+srcname: requires #+begin_src ruby require 'library_b' #+end_src And then tie it all together with: #+begin_src ruby :tangle foo.rb <> #+end But no such luck. <> just picked up the most recent block with that srcname, IIRC. -- Avdi Grimm http://avdi.org