emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Tangle won't strip coderef labels?
@ 2013-01-07 16:47 Michael Alan Dorman
  0 siblings, 0 replies; only message in thread
From: Michael Alan Dorman @ 2013-01-07 16:47 UTC (permalink / raw)
  To: emacs-orgmode

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.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-01-07 16:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-07 16:47 Tangle won't strip coderef labels? Michael Alan Dorman

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).