From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: string joining accumulated noweb references Was: (no subject) Date: Mon, 23 Jan 2012 19:49:28 -0700 Message-ID: <87ehupq0g7.fsf_-_@gmx.com> References: <87aa5eqhxz.fsf@gmx.com> <87k44hampv.fsf@tomsdiner.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:52104) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RpWS7-0008Bi-7A for emacs-orgmode@gnu.org; Mon, 23 Jan 2012 21:49:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RpWS5-000836-JM for emacs-orgmode@gnu.org; Mon, 23 Jan 2012 21:49:43 -0500 Received: from mailout-us.gmx.com ([74.208.5.67]:56991) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1RpWS5-000832-DA for emacs-orgmode@gnu.org; Mon, 23 Jan 2012 21:49:41 -0500 In-Reply-To: <87k44hampv.fsf@tomsdiner.org> (Tom Regner's message of "Tue, 24 Jan 2012 02:55:08 +0100") 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: Tom Regner Cc: emacs-orgmode@gnu.org Tom Regner writes: > Eric Schulte writes: > >> I'd rather not change the default silently in this way. > I understand that. My apologies, now that I understand the issue I see that the current behavior is most likely confusing and I agree with your original suggestion to change the default. > Example document: > --------------------------->%-------------------------------- > * Subtree > :PROPERTIES: > :noweb-ref: subtree > :END: > ** Part 1 > #+begin_src sh > Line One > #+end_src sh > ** Part 2 > #+begin_src sh > Line Two > #+end_src sh > * Assamble it > #+begin_src sh :tangle yes :noweb tangle > <> > #+end_src sh I just pushed up a new customization variable named `org-babel-noweb-separator' which is used to join multiple accumulated noweb references like the above. The value defaults to a newline giving the same behavior resulting from your patch but can be set to any string. Thanks for pointing this out, -- Eric Schulte http://cs.unm.edu/~eschulte/