From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: [Babel] detangle Date: Fri, 29 Oct 2010 09:01:48 -0600 Message-ID: <87eib9t543.fsf@gmail.com> References: <87ocadv2ib.fsf@gmail.com> <87wrp16pem.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=45398 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PBqSp-0007pg-Ey for emacs-orgmode@gnu.org; Fri, 29 Oct 2010 11:01:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PBqSn-0005x0-S5 for emacs-orgmode@gnu.org; Fri, 29 Oct 2010 11:01:55 -0400 Received: from mail-px0-f169.google.com ([209.85.212.169]:42246) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PBqSn-0005wl-Ho for emacs-orgmode@gnu.org; Fri, 29 Oct 2010 11:01:53 -0400 Received: by pxi12 with SMTP id 12so142537pxi.0 for ; Fri, 29 Oct 2010 08:01:52 -0700 (PDT) In-Reply-To: <87wrp16pem.fsf@ucl.ac.uk> (Eric S. Fraga's message of "Fri, 29 Oct 2010 15:32:01 +0100") 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: Org Mode Hi Eric, The bug you mentioned should have been fixed by yesterday's commit ,----[c6565eaa43d398f6771edd59c2bfe7ca54e4a93e] | commit c6565eaa43d398f6771edd59c2bfe7ca54e4a93e | Author: Eric Schulte | Date: Fri Oct 29 01:37:28 2010 -0600 | | fixed typos in tangle comment link format strings | | * lisp/ob-tangle.el (org-babel-tangle-comment-format-beg): fix typo | (org-babel-tangle-comment-format-end): fix typo `---- is it possible you haven't "make clean && make"'d your repo since the last push? Best -- Eric Eric S Fraga writes: > "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