From: "Eric Schulte" <schulte.eric@gmail.com>
To: Erik Iverson <eriki@ccbr.umn.edu>
Cc: aditya siram <aditya.siram@gmail.com>, emacs-orgmode@gnu.org
Subject: Re: Comments in tangled source
Date: Sat, 04 Sep 2010 09:04:36 -0600 [thread overview]
Message-ID: <87k4n1czxa.fsf@gmail.com> (raw)
In-Reply-To: 4C81C753.9020708@ccbr.umn.edu
Erik Iverson <eriki@ccbr.umn.edu> 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
prev parent reply other threads:[~2010-09-04 15:05 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
2010-09-04 15:04 ` Eric Schulte [this message]
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=87k4n1czxa.fsf@gmail.com \
--to=schulte.eric@gmail.com \
--cc=aditya.siram@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=eriki@ccbr.umn.edu \
/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).