From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: [Babel] detangle Date: Fri, 29 Oct 2010 15:32:01 +0100 Message-ID: <87wrp16pem.fsf@ucl.ac.uk> References: <87ocadv2ib.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=41166 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PBq00-0007NK-Lf for emacs-orgmode@gnu.org; Fri, 29 Oct 2010 10:32:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PBpzz-0007cd-Lw for emacs-orgmode@gnu.org; Fri, 29 Oct 2010 10:32:08 -0400 Received: from vscane-b.ucl.ac.uk ([144.82.108.141]:63739) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PBpzz-0007cX-Dx for emacs-orgmode@gnu.org; Fri, 29 Oct 2010 10:32:07 -0400 In-Reply-To: <87ocadv2ib.fsf@gmail.com> (Eric Schulte's message of "Fri, 29 Oct 2010 02:15:08 -0600") 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 Schulte Cc: Org Mode "Eric Schulte" writes: > Hi, > > I've just added functions for detangling code from pure source code > files back into code blocks in the org-mode files from whence they were > tangled. Wow. It just gets better all the time!! :-) > This is done by the new `org-babel-detangle' function. > Additionally the new `org-babel-tangle-jump-to-org' function can be used > to navigate from a pure source code file back to the related code block > in the original Org-mode file. > > Both of these new functions require that the code block was tangled with > comments which can be accomplished by setting the :comments header to > "yes". I've tried the first couple of steps: added the comments header and tangled my code, ledger in this case. I've had a looked at the tangled code and I get lines such as this one inserted: : ; [[id:8fe917c4-257f-45f7-839b-68b5772e5443][%sourcename]] Obviously, =%sourcename= should have been replaced by something in the tangling operation as, subsequently, the jump command doesn't work. I assume that the detangling won't work either. Is there something I (or you?) should add to =ob-ledger.el= perhaps? I've not tried any other codes as I don't /tangle/ often. Thanks, eric -- Eric S Fraga GnuPG: 8F5C 279D 3907 E14A 5C29 570D C891 93D8 FFFC F67D