emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rainer@krugs.de (Rainer M. Krug)
To: emacs-orgmode@gnu.org
Subject: Re: de-tangle function?
Date: Fri, 31 May 2013 09:12:15 +0200	[thread overview]
Message-ID: <87obbrbp2o.fsf@krugs.de> (raw)
In-Reply-To: 86a9ncxxqp.fsf@somewhere.org


<#secure method=pgpmime mode=sign>

"Sebastien Vauban" <sva-news@mygooglest.com>
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

      parent reply	other threads:[~2013-05-31  7:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-30 14:49 de-tangle function? Rainer M. Krug
2013-05-30 16:01 ` Sebastien Vauban
2013-05-30 19:31   ` Rasmus
2013-05-31  7:13     ` Rainer M. Krug
2013-05-31  7:12   ` Rainer M. Krug [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87obbrbp2o.fsf@krugs.de \
    --to=rainer@krugs.de \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).