From mboxrd@z Thu Jan 1 00:00:00 1970 From: Roger Mason Subject: Re: Preserve tabs in tangled babel output Date: Wed, 11 Mar 2015 13:35:39 -0230 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37621) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YVj8i-00015x-T9 for emacs-orgmode@gnu.org; Wed, 11 Mar 2015 12:05:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YVj8f-0005dJ-8m for emacs-orgmode@gnu.org; Wed, 11 Mar 2015 12:05:44 -0400 Received: from nina.ucs.mun.ca ([134.153.232.76]:36795) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YVj8f-0005ct-0p for emacs-orgmode@gnu.org; Wed, 11 Mar 2015 12:05:41 -0400 Received: from cryptoperthite.esd.mun.ca.esd.mun.ca (cryptoperthite.esd.mun.ca [134.153.37.33]) by nina.ucs.mun.ca (8.13.1/8.13.1) with ESMTP id t2BG5dvt005566 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Wed, 11 Mar 2015 13:35:39 -0230 In-Reply-To: (John Kitchin's message of "Wed, 11 Mar 2015 11:09:50 -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: emacs-orgmode@gnu.org Thank you Charles Berry and John Kitchin for your replies. John Kitchin writes: > I have org-src-preserve-indentation set to t. > > Charles C. Berry writes: > >> On Wed, 11 Mar 2015, Roger Mason wrote: >> >>> Hello, >>> >>> This code: >>> >>> #+BEGIN_SRC makefile :tangle Makefile >>> hello: hello.f90 >>> gfortran hello.f90 >>> >>> execute: hello >>> ./a.out >>> >>> clean: >>> rm -f a.out *.o >>> #+END_SRC >>> >>> (stolen from John Kitchin) produces a Makefile with spaces instead of >>> tabs. I created the content in makefile mode, with tabs, but emacs >>> untabifies the output. How can I prevent this? >> >> Use the `-i' results switch: >> >> #+BEGIN_SRC makefile -i :tangle Makefile >> >> or set `org-src-preserve-indentation' non-nil. The -i switch did not work for me but setting org-src-preserve-indentation did. Thanks again, Roger