From mboxrd@z Thu Jan 1 00:00:00 1970 From: Erik Iverson Subject: Re: [babel] `org-babel-tangle-w-comments' controls comment insertion in tangled code Date: Fri, 28 May 2010 13:41:08 -0500 Message-ID: <4C000E44.9050307@ccbr.umn.edu> References: <87sk5c8497.fsf@gmail.com> <4BFFE4A7.9070300@ccbr.umn.edu> <878w746mul.fsf@gmail.com> <4BFFEE4F.5010608@ccbr.umn.edu> <88DCAA98-9A9A-4010-807F-2430121BAF22@tsdye.com> 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=35218 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OI4Uc-0008D8-Hi for emacs-orgmode@gnu.org; Fri, 28 May 2010 14:41:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OI4Ub-0000uX-DX for emacs-orgmode@gnu.org; Fri, 28 May 2010 14:41:14 -0400 Received: from walleye.ccbr.umn.edu ([128.101.116.11]:1910) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OI4Ub-0000uL-6j for emacs-orgmode@gnu.org; Fri, 28 May 2010 14:41:13 -0400 In-Reply-To: <88DCAA98-9A9A-4010-807F-2430121BAF22@tsdye.com> 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: "Thomas S. Dye" Cc: Org Mode 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 out. > > Another way to get pieces of the org-mode file into the source file as > comments might be with a little helper function, > org-babel-copy-subtree-to-commented-code. The source blocks could be > named so the literate programming facilities of org-babel could work > with them. I'm not following this; could you provide a minimal pseudo-example of how you see this working in practice? Thanks! Erik