From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: [Babel] Preserving tabs in code blocks Date: Fri, 26 Aug 2011 06:14:44 -0400 Message-ID: <87ei0832ej.fsf@norang.ca> References: <87mxex2cwe.fsf@norang.ca> <5393.1314331918@alphaville.dokosmarshall.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:56548) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QwtR3-0004tR-Ag for emacs-orgmode@gnu.org; Fri, 26 Aug 2011 06:14:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QwtR1-0003L1-OL for emacs-orgmode@gnu.org; Fri, 26 Aug 2011 06:14:49 -0400 Received: from mho-03-ewr.mailhop.org ([204.13.248.66]:43576 helo=mho-01-ewr.mailhop.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QwtR1-0003Kr-Iw for emacs-orgmode@gnu.org; Fri, 26 Aug 2011 06:14:47 -0400 In-Reply-To: <5393.1314331918@alphaville.dokosmarshall.org> (Nick Dokos's message of "Fri, 26 Aug 2011 00:11:58 -0400") 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: nicholas.dokos@hp.com Cc: emacs-orgmode@gnu.org Nick Dokos writes: > Bernt Hansen wrote: > >> I want to include the contents of a file which requires TABS between >> fields in a #+begin_src ... #+end_src block. >> >> When I use C-c ' to edit the block the TABS are all converted back to >> spaces. I want to be able to tangle the file and preserve the TABS >> which are required as input to some tool chain. >> >> Is there some mode I can use to preserve the TABS? > Try setting org-src-preserve-indentation to t. If you change the default > value of indent-tabs-mode to nil (as I do), then you might have problems > in any case: inserted tabs will be changed to spaces. But if you have it > left at the default t, then I think this works. Thanks Nick! That works great :) Regards, Bernt