emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Erik Iverson <eriki@ccbr.umn.edu>
To: aditya siram <aditya.siram@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Comments in tangled source
Date: Fri, 03 Sep 2010 23:13:07 -0500	[thread overview]
Message-ID: <4C81C753.9020708@ccbr.umn.edu> (raw)
In-Reply-To: <AANLkTimceiK+vitrpRV8e1p86vt1=HFaECwhDAYDMt_D@mail.gmail.com>

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.

  reply	other threads:[~2010-09-04  4:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-04  3:54 Comments in tangled source aditya siram
2010-09-04  4:13 ` Erik Iverson [this message]
2010-09-04 15:04   ` Eric Schulte

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4C81C753.9020708@ccbr.umn.edu \
    --to=eriki@ccbr.umn.edu \
    --cc=aditya.siram@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).