[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] de-tangle function?
From: |
Rainer M. Krug |
Subject: |
Re: [O] de-tangle function? |
Date: |
Fri, 31 May 2013 09:12:15 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
<#secure method=pgpmime mode=sign>
"Sebastien Vauban" <address@hidden>
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