From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: Literate Programming - Continue a Source Block? Date: Fri, 10 Jun 2011 14:00:29 -0600 Message-ID: <8739jhv4ma.fsf@gmail.com> References: <87pqmokh6d.fsf@fester.com> <80k4cw22uf.fsf@somewhere.org> <87fwnkjqoh.fsf@fester.com> <87mxhsnmcf.fsf@gmail.com> <877h8wj9za.fsf@fester.com> <877h8tv6yh.fsf@gmail.com> <87oc25mqqq.fsf@Rainer.invalid> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:49253) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QV7sl-0002Ue-AS for emacs-orgmode@gnu.org; Fri, 10 Jun 2011 16:00:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QV7sj-0003iR-9w for emacs-orgmode@gnu.org; Fri, 10 Jun 2011 16:00:39 -0400 Received: from mail-pz0-f41.google.com ([209.85.210.41]:45939) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QV7si-0003i9-Vx for emacs-orgmode@gnu.org; Fri, 10 Jun 2011 16:00:37 -0400 Received: by pzk4 with SMTP id 4so1678165pzk.0 for ; Fri, 10 Jun 2011 13:00:35 -0700 (PDT) In-Reply-To: <87oc25mqqq.fsf@Rainer.invalid> (Achim Gratz's message of "Fri, 10 Jun 2011 21:27:25 +0200") 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: Achim Gratz Cc: emacs-orgmode@gnu.org Achim Gratz writes: > Eric Schulte writes: > >> append the bodies of all blocks of the same name are appended >> during tangling > > Shouldn't this be called "concat(enate)" or "collate"? I think "append" is just as clear as concatenate, and collate implies shuffling which is not happening. > Or, since several blocks with the same name seem a bit dubious, would > it not be cleaner to have an index part to the block name and a range > expression for the concatenation during tangling? I might want to > tangle them in different order than their appearance in the source, > for instance. > I'm wary of adding too much duplicate functionality. It is already possible to organize the tangling of many named code blocks using noweb reference expansion (a feature which I've used myself on real projects in the past). This existing method allows for unique block names and for arbitrary tangling order. Simplicity is the only reason that the new name-based appending behavior was implemented, simplicity which (in my opinion) is lost when the user defines a naming and sorting schema. Cheers -- Eric > > > Achim. -- Eric Schulte http://cs.unm.edu/~eschulte/