From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: Preserve tabs in tangled babel output Date: Wed, 11 Mar 2015 11:09:50 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51711) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YViGj-0008Hp-OU for emacs-orgmode@gnu.org; Wed, 11 Mar 2015 11:09:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YViGg-0002fL-Gr for emacs-orgmode@gnu.org; Wed, 11 Mar 2015 11:09:57 -0400 Received: from smtp.andrew.cmu.edu ([128.2.105.202]:33038) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YViGg-0002dx-Cx for emacs-orgmode@gnu.org; Wed, 11 Mar 2015 11:09:54 -0400 In-reply-to: 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: "Charles C. Berry" Cc: Roger Mason , emacs-orgmode@gnu.org 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. > > HTH, > > Chuck -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu