emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] BUG: coderef labels not stripped when tangling


From: Sebastien Vauban
Subject: Re: [O] BUG: coderef labels not stripped when tangling
Date: Thu, 24 Jan 2013 10:27:17 +0100
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.2.92 (windows-nt)

Hello Michael,

Michael Alan Dorman wrote:
> Using Org-mode to write in a literate style is a lot of fun.  When I
> read about coderef labels, they seemed likely to make it even better.
>
> The only problem is that they aren't stripped during tangling. If you
> tangle this:
>
> #+BEGIN_SRC sh -n -r :noweb tangle :shebang #!/bin/sh :tangle tangle-test.sh
> echo "Working" (ref:working) 
> #+END_SRC
>
> You end up with:
>
>     #!/bin/sh
>
>     echo "Working" (ref:working)
>
> That seems like a bug.

Or a feature, with the consequence that you should put those refs as comments
(with the appropriate syntax in your language).

But, yes, those comments stay as well in your tangled code, which you may not
like.

Best regards,
  Seb

-- 
Sebastien Vauban




reply via email to

[Prev in Thread] Current Thread [Next in Thread]