From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer@krugs.de (Rainer M. Krug) Subject: Re: de-tangle function? Date: Fri, 31 May 2013 09:12:15 +0200 Message-ID: <87obbrbp2o.fsf@krugs.de> References: <87vc60y13d.fsf@krugs.de> <86a9ncxxqp.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50834) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UiJVl-0008I5-AE for emacs-orgmode@gnu.org; Fri, 31 May 2013 03:12:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UiJVj-0007qb-Q6 for emacs-orgmode@gnu.org; Fri, 31 May 2013 03:12:29 -0400 Received: from plane.gmane.org ([80.91.229.3]:37529) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UiJVj-0007qP-K3 for emacs-orgmode@gnu.org; Fri, 31 May 2013 03:12:27 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UiJVh-0002su-VB for emacs-orgmode@gnu.org; Fri, 31 May 2013 09:12:25 +0200 Received: from arn78-1-88-186-171-7.fbx.proxad.net ([88.186.171.7]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 31 May 2013 09:12:25 +0200 Received: from Rainer by arn78-1-88-186-171-7.fbx.proxad.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 31 May 2013 09:12:25 +0200 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: emacs-orgmode@gnu.org <#secure method=pgpmime mode=sign> "Sebastien Vauban" writes: > Hi Rainer, > > Rainer M. Krug wrote: >> I remember something about a de-tangle function, which re-imports the >> source code blocks into the org file is previously tangled with comments >> et al, but I can't find that function any more. >> >> Is it still there? > > M-x org-babel-detangle How did I miss that???????????? > >> Does it work reliably? > > You need the code blocks to be wrapped into comments for it to work. > > Regarding reliability, it does work well on small examples. I remember having > had really bad results with my huge .emacs file, but hadn't any time to debug > the problem -- try to reproduce -- at that time. > > So, when you do it, please keep a backup of your original Org file. It's > safer. Pity - then I can't use it. I have a long org file which tangles in many .R files and in many cases one file spans across many blocks. I have to trust it when using it at this stage. But as Eric has improved the org-babel-tangle-jump-to-org function, I will use that one in debugging. > > But, if there are bugs, they should be clearly identified, and fixed... I agree - but unfortunately at the moment I won't be able to help here. Cheers, Rainer > > Best regards, > Seb -- Rainer M. Krug