Re: [Orgmode] [babel] `org-babel-tangle-w-comments' controls comment insertion in tangled code

2010-06-16 Thread Eric Schulte
Just to make sure we don't lose these idea, I've posed them up in the babel dev repo http://eschulte.github.com/babel-dev/PROPOSED-tangle-entire-org-mode-file-in-comments.html Best -- Eric "Thomas S. Dye" writes: > Hi Erik, > > I am *not* a programmer so expect considerable chaff for every kern

Re: [Orgmode] [babel] `org-babel-tangle-w-comments' controls comment insertion in tangled code

2010-05-28 Thread Thomas S. Dye
Hi Erik, I am *not* a programmer so expect considerable chaff for every kernel of wheat (no wheat guaranteed). I would pass the function an org-mode link then write out the contents pointed at by the link inside a named code block, with each line preceded by an optional comment character.

Re: [Orgmode] [babel] `org-babel-tangle-w-comments' controls comment insertion in tangled code

2010-05-28 Thread Erik Iverson
Thomas S. Dye wrote: Hi Erik, If the proposed functionality places comments in the source code in whatever order they appear in the org-mode file, then the result will likely frustrate literate programming efforts that rearrange code blocks on tangling. Yes, thank you for pointing that ou

Re: [Orgmode] [babel] `org-babel-tangle-w-comments' controls comment insertion in tangled code

2010-05-28 Thread Thomas S. Dye
Hi Erik, If the proposed functionality places comments in the source code in whatever order they appear in the org-mode file, then the result will likely frustrate literate programming efforts that rearrange code blocks on tangling. Another way to get pieces of the org-mode file into the

Re: [Orgmode] [babel] `org-babel-tangle-w-comments' controls comment insertion in tangled code

2010-05-28 Thread Erik Iverson
One more idea I had was that it might be interesting to be able to maintain properties for headlines that indicate the headline/body should be included as a comment in a specific source file. The reason I say this is that even if I write my code in org-mode, and in effect comment the code using

Re: [Orgmode] [babel] `org-babel-tangle-w-comments' controls comment insertion in tangled code

2010-05-28 Thread Eric Schulte
Hi Erik, explanation below Erik Iverson writes: > Eric Schulte wrote: >> Hi, >> >> The insertion of automatically generated comments in tangled source code >> is now controlled by the new `org-babel-tangle-w-comments' variable. >> Setting this variable to non-nil will allow org-babel to insert

Re: [Orgmode] [babel] `org-babel-tangle-w-comments' controls comment insertion in tangled code

2010-05-28 Thread Erik Iverson
## [[file:~/private/R-org-babel/test.org::*cube%20lets%20go%20to%20the][block-2]] cube <- function(x) { # a test comment x * x * x * x } ## block-2 ends here So, you mean that all three of the comments would no longer appear by default? Or you mean that only my inline function commen

Re: [Orgmode] [babel] `org-babel-tangle-w-comments' controls comment insertion in tangled code

2010-05-28 Thread Erik Iverson
Eric Schulte wrote: Hi, The insertion of automatically generated comments in tangled source code is now controlled by the new `org-babel-tangle-w-comments' variable. Setting this variable to non-nil will allow org-babel to insert comments for those languages with comment support. Can you bri

[Orgmode] [babel] `org-babel-tangle-w-comments' controls comment insertion in tangled code

2010-05-28 Thread Eric Schulte
Hi, The insertion of automatically generated comments in tangled source code is now controlled by the new `org-babel-tangle-w-comments' variable. Setting this variable to non-nil will allow org-babel to insert comments for those languages with comment support. This changes the default behavior.