emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric Schulte <eric.schulte@gmx.com>
To: Tom Regner <tom@goochesa.de>
Cc: emacs-orgmode@gnu.org
Subject: Re: string joining accumulated noweb references Was: (no subject)
Date: Mon, 23 Jan 2012 19:49:28 -0700	[thread overview]
Message-ID: <87ehupq0g7.fsf_-_@gmx.com> (raw)
In-Reply-To: <87k44hampv.fsf@tomsdiner.org> (Tom Regner's message of "Tue, 24 Jan 2012 02:55:08 +0100")

Tom Regner <tom@goochesa.de> writes:

> Eric Schulte <eric.schulte@gmx.com> 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
>   <<subtree>>
> #+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/

  reply	other threads:[~2012-01-24  2:49 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-23 12:00 (no subject) Tom Regner
2012-01-23 16:34 ` Tom Regner
2012-01-23 20:31 ` Eric Schulte
2012-01-24  1:55   ` Tom Regner
2012-01-24  2:49     ` Eric Schulte [this message]
2012-01-24  4:46       ` string joining accumulated noweb references Tom Regner
2012-01-24  6:24       ` Achim Gratz
2012-01-24  7:04         ` Eric Schulte

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ehupq0g7.fsf_-_@gmx.com \
    --to=eric.schulte@gmx.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=tom@goochesa.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).