From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Davison Subject: Re: TAB character in source code blocks Date: Thu, 09 Sep 2010 13:15:10 -0400 Message-ID: <87d3smbzz5.fsf@stats.ox.ac.uk> References: <4C88F494.1080509@ccbr.umn.edu> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=37879 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OtkiV-0008VN-BD for emacs-orgmode@gnu.org; Thu, 09 Sep 2010 13:15:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OtkiT-0000xm-W3 for emacs-orgmode@gnu.org; Thu, 09 Sep 2010 13:15:19 -0400 Received: from markov.stats.ox.ac.uk ([163.1.210.1]:37314) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OtkiT-0000xP-Pd for emacs-orgmode@gnu.org; Thu, 09 Sep 2010 13:15:17 -0400 In-Reply-To: <4C88F494.1080509@ccbr.umn.edu> (Erik Iverson's message of "Thu, 09 Sep 2010 09:52:04 -0500") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Erik Iverson Cc: emacs-orgmode Erik Iverson writes: > Hello, > > I'm using org source blocks to write a Makefile. > > #+begin_src makefile :tangle Makefile > target: dependencies > command > #+end_src > > At least in GNU make, commands must start with a TAB. > > However, after I close the code edit buffer with C-c ', > the resulting whitespace in the org-mode buffer, and thus > the tangled Makefile, is spaces and not a tab. > > I haven't looked into what's causing this yet, wondering > if anyone else has come across this already and found > a solution? Hi Erik, (setq org-src-preserve-indentation t) should do it. It does have some other effects so let us know if you have difficulty separating wanted and unwanted effects. Dan > > Thanks, > Erik > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode