From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: Comments in tangled source Date: Sat, 04 Sep 2010 09:04:36 -0600 Message-ID: <87k4n1czxa.fsf@gmail.com> References: <4C81C753.9020708@ccbr.umn.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=34828 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OruIt-00061g-Cl for emacs-orgmode@gnu.org; Sat, 04 Sep 2010 11:05:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OruIo-0007Nt-28 for emacs-orgmode@gnu.org; Sat, 04 Sep 2010 11:05:13 -0400 Received: from mail-pw0-f41.google.com ([209.85.160.41]:60528) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OruIn-0007Nm-SB for emacs-orgmode@gnu.org; Sat, 04 Sep 2010 11:05:10 -0400 Received: by pwj6 with SMTP id 6so1046558pwj.0 for ; Sat, 04 Sep 2010 08:05:08 -0700 (PDT) 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: Erik Iverson Cc: aditya siram , emacs-orgmode@gnu.org Erik Iverson writes: > 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. > While HTML or PDF documentation would probably still be preferable, I've just pushed up a first pass implementation of the functionality described above. Please see the following for details http://eschulte.github.com/babel-dev/DONE-tangle-entire-org-mode-file-in-comments.html The functionality described by the OP should now be possible by using the ":comments org" header argument. Cheers -- Eric