emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Michael Alan Dorman <mdorman@ironicdesign.com>
To: emacs-orgmode@gnu.org
Subject: Tangle won't strip coderef labels?
Date: Mon, 07 Jan 2013 11:47:09 -0500	[thread overview]
Message-ID: <87mwwlx7n6.fsf@ironicdesign.com> (raw)

I've recently started to use Org-mode to write some small utilities in a
literate style.

I then stumbled upon the docs about coderef labels, which seemed like a
great way to minimize having to basically repeat the content of code in
the documentation about the utility's design.

The only problem is that they aren't stripped during tangling.  So if
you have a doc like:

    #+BEGIN_SRC sh -n -r :noweb tangle :shebang #!/bin/sh :tangle test.sh
    echo "Working" (ref:working) 
    #+END_SRC

When you tangle the doc, you'll end up with:

    #!/bin/sh

    echo "Working" (ref:working)

I'm assuming this isn't intended behavior, since I can't find anything
in the docs about it.

I appreciate any help---I've done some spelunking around the source, but
it's not at all obvious to me how this all fits together, so I'm afraid
I'm not able to offer a patch, assuming it's a bug.

Mike.

                 reply	other threads:[~2013-01-07 16:47 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=87mwwlx7n6.fsf@ironicdesign.com \
    --to=mdorman@ironicdesign.com \
    --cc=emacs-orgmode@gnu.org \
    /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).