From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: Is it possible to do literate programming without org-babel? Date: Fri, 03 Dec 2010 07:33:16 -0700 Message-ID: <87vd3a2ad8.fsf@gmail.com> References: <4CF8EC16.40500@gmail.com> <87bp53q6fm.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=49496 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1POWin-0000lr-T3 for emacs-orgmode@gnu.org; Fri, 03 Dec 2010 09:34:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1POWim-0001lK-Db for emacs-orgmode@gnu.org; Fri, 03 Dec 2010 09:34:49 -0500 Received: from mail-gw0-f41.google.com ([74.125.83.41]:38525) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1POWim-0001lF-80 for emacs-orgmode@gnu.org; Fri, 03 Dec 2010 09:34:48 -0500 Received: by gwj22 with SMTP id 22so3225318gwj.0 for ; Fri, 03 Dec 2010 06:34:47 -0800 (PST) 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: Eric S Fraga Cc: emacs-orgmode@gnu.org, "I.S." If your collaborators don't mind the existence of some Org-mode specific comments in the .py file, you can tangle with comments on and then use the `org-babel-detangle' function to bring changes in the source file back into your Org-mode buffer. In this way it should be possible for you to collaborate without leaving Org-mode. Best -- Eric Eric S Fraga writes: > "I.S." writes: > >> Dear Experts, >> >> I think org-babel is great and use it when I can. But on larger >> projects where some people are not emacs users, it may not be feasible >> for the master file to be an org-mode file. >> >> Do you have any suggestions on using literate programming techniques >> when the source code must be in a .py file? >> >> One thing I have tried is switching to org-mode when I want to write >> comments, create links, etc. and do that in org-mode and then switch >> back to python mode. This actually works reasonably well but it's >> annoying to switch modess. >> >> Any better ideas? > > This probably is not going to help you but I have the same problem. > > What I do, *when* the project is one in which I am the main lead, is to > keep using org mode, without switching modes, but when I need to share > something with my collaborator, I *tangle* all the code and send him > both the code and the org document. This means that he can run the > code. However, the code has no comments in it... > > Of course, incorporating any changes my collaborator makes back into the > org document is annoying but manageable.