From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: [feature request] tangle on org-special-edit Date: Thu, 21 Jul 2011 11:19:16 -0600 Message-ID: <87sjpzzgm0.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:47867) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qjx4n-0001Xv-J7 for emacs-orgmode@gnu.org; Thu, 21 Jul 2011 13:30:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qjx4m-0004rE-A6 for emacs-orgmode@gnu.org; Thu, 21 Jul 2011 13:30:21 -0400 Received: from mail-pz0-f49.google.com ([209.85.210.49]:53016) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qjx4m-0004hT-2p for emacs-orgmode@gnu.org; Thu, 21 Jul 2011 13:30:20 -0400 Received: by mail-pz0-f49.google.com with SMTP id 33so1910509pzk.8 for ; Thu, 21 Jul 2011 10:30:19 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Dirk Scharff Cc: emacs-orgmode@gnu.org Dirk Scharff writes: > Hello, > > Org-mode provides the function to edit code blocks in their languages > native environment. If you want do literate programming you'll end up > with web-syntax (<> ) in the > environment org-special-edit started. > > I'd like to purpose, that before opening the special language > environment, the code-block should be tangled to a temporary > file. Then a buffer should be stated with that file loaded in its > native language environment. If you'd do that the code would really be > executable and therefore debuggable and analyzable with the tools the > programming language provides. > > You'll have to keep track on the tangled code blocks then. I think > some info in comments should do the trick. I uploaded a mockup of what > I mean here: http://dl.getdropbox.com/u/3503145/org-feature-mockup.pdf > Hi Dirk, If you would like to pop to a code block *with* the noweb references expanded try the `org-babel-expand-src-block' command, which is bound to "C-c C-v v". This view of code blocks is not editable however because there would be no way to propagate edits back into the original code blocks -- consider an edit taking placed on the boundary between two code blocks, or multiple nested noweb references. There has been some interest in propagating changes back from tangled code to Org-mode blocks (search these list archives for the term "detangle") however such functionality is currently not implemented -- an `org-babel-detangle' function does exist but is not fully functional. Best -- Eric -- Eric Schulte http://cs.unm.edu/~eschulte/