From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: org-babel (org-babel-detangle) Date: Wed, 13 Apr 2011 10:50:32 -0600 Message-ID: <874o62m6xz.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:39775) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QA3H7-00032Q-95 for emacs-orgmode@gnu.org; Wed, 13 Apr 2011 12:50:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QA3H5-0002M2-If for emacs-orgmode@gnu.org; Wed, 13 Apr 2011 12:50:41 -0400 Received: from mail-iy0-f169.google.com ([209.85.210.169]:41023) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QA3H5-0002Lw-EI for emacs-orgmode@gnu.org; Wed, 13 Apr 2011 12:50:39 -0400 Received: by iyh42 with SMTP id 42so1068650iyh.0 for ; Wed, 13 Apr 2011 09:50:38 -0700 (PDT) In-Reply-To: (Mohamed HIBTI's message of "Wed, 13 Apr 2011 13:16:06 +0000 (UTC)") 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: Mohamed HIBTI Cc: emacs-orgmode@gnu.org Hi Mohamed, You have a small typo in your header arguments, ":comment" should be ":comments". After that change then code block should be tangled wrapped in comments, and then Babel can use these comments to jump back to the original org-mode file. That said, the detangle mechanisms are in need of some work, specifically regarding their use of the Org-mode's link resolution, which doesn't currently make it possible to programmatically jump to the results of a link. So, until some time is spent fixing up the detangling machinery inside of Babel, you may not find detangling to be extremely robust. Best -- Eric Mohamed HIBTI writes: > Dear all, > I have a problem with detangling org-babel fragments. > May be this is because XML is not a supported feature/or I use it in a wrong way. > Any help is welcome. > > My org-file is below. I can tangle this file to obtain the XML file but > when I try to jump to org I get the message "not in tangled code". > > *** TODO Question that needs validation > :PROPERTIES: > :ID: 2788f65d-5613-40c1-80ae-ae966f4bb398 > :END: > #+BEGIN_SRC XML :tangle ./sample04.xml :comment yes > > > > > > > > > > > > > #+END_SRC > > Best regards, > > Mohamed > > > -- Eric Schulte http://cs.unm.edu/~eschulte/