From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sebastien Vauban" Subject: Re: BUG: coderef labels not stripped when tangling Date: Thu, 24 Jan 2013 10:27:17 +0100 Message-ID: <86ehhbhqx6.fsf@somewhere.org> References: <87ehhcuk1i.fsf@ironicdesign.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: 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-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org 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