From mboxrd@z Thu Jan 1 00:00:00 1970 From: Erik Iverson Subject: Re: Comments in tangled source Date: Fri, 03 Sep 2010 23:13:07 -0500 Message-ID: <4C81C753.9020708@ccbr.umn.edu> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=33485 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ork6D-0001cw-NE for emacs-orgmode@gnu.org; Sat, 04 Sep 2010 00:11:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ork6C-0001EV-KZ for emacs-orgmode@gnu.org; Sat, 04 Sep 2010 00:11:29 -0400 Received: from pegasus.biostat.wisc.edu ([144.92.73.35]:33442) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ork6C-0001EF-FH for emacs-orgmode@gnu.org; Sat, 04 Sep 2010 00:11:28 -0400 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: aditya siram Cc: emacs-orgmode@gnu.org On 09/03/2010 10:54 PM, aditya siram wrote: > Hi all, > I have a heading like this : > * Root > Comments about root. > #+begin_src haskell :noweb yes :comments yes :tangle Main.hs > main = print "hello world" > #+end_src > > When I tangle the file, I would expect the "Comments about root" to be a > comment above the source like so: > > -- Comments about root > main = print "hello world" > > but I don't get this. What am I doing wrong? As far as I know, that's not what ":comments" is for. It just references which chunk it came from. I proposed this very feature, see http://eschulte.github.com/babel-dev/PROPOSED-tangle-entire-org-mode-file-in-comments.html and the associated gmane thread linked from there... I assume you know about the code export features that could generate very nice annotated code in HTML or PDF.