From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sebastien Vauban" Subject: Re: de-tangle function? Date: Thu, 30 May 2013 18:01:50 +0200 Message-ID: <86a9ncxxqp.fsf@somewhere.org> References: <87vc60y13d.fsf@krugs.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: 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-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org 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 > 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. But, if there are bugs, they should be clearly identified, and fixed... Best regards, Seb -- Sebastien Vauban