From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Hannon Subject: Re: Losing tabs when tangling or editing Date: Wed, 30 May 2012 00:19:23 -0700 (PDT) Message-ID: <1338362363.35616.YahooMailNeo@web161904.mail.bf1.yahoo.com> References: <1337807919.11721.YahooMailNeo@web161904.mail.bf1.yahoo.com> <1338239656.10918.YahooMailNeo@web161905.mail.bf1.yahoo.com> <87mx4qjx6n.fsf@norang.ca> Reply-To: Michael Hannon Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:44701) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SZdBq-0006y6-5d for emacs-orgmode@gnu.org; Wed, 30 May 2012 03:19:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SZdBl-0002dC-48 for emacs-orgmode@gnu.org; Wed, 30 May 2012 03:19:29 -0400 Received: from nm23-vm0.bullet.mail.bf1.yahoo.com ([98.139.212.191]:36446) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1SZdBk-0002cu-S7 for emacs-orgmode@gnu.org; Wed, 30 May 2012 03:19:25 -0400 In-Reply-To: <87mx4qjx6n.fsf@norang.ca> 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: Bernt Hansen Cc: Org-Mode List , "Thomas S. Dye" Bernt Hansen wrote:=0A=0A>Michael Hannon writes:=0A>=0A>>=0A>> I was hoping that there might be some kind of c= ustomization possible:=0A>>=0A>>=A0=A0=A0=A0 (setq leave-the-bleeping-tabs-= alone t)=0A>=0A> (setq org-src-preserve-indentation t)=0A>=0A> maybe?=0A>= =0A=0AWoo hoo!=A0 Thanks, Bernt.=A0 This seems to work.=A0 See the appended= for a=0Asuccessful test run.=0A=0A-- Mike=0A=0A$ cat hw.org=A0=A0=A0 #####= ### Org-mode file with additional elisp statement=0A* test preservation of = tabs when tangling=0A=0A#+BEGIN_SRC emacs-lisp=0A=0A(setq org-src-preserve-= indentation t)=0A=0A#+END_SRC=0A=0A#+RESULTS:=0A: t=0A=0A#+BEGIN_SRC sh :ta= ngle Makefile.tangled=0A=0Ahw:=A0=A0 =A0hw.cpp=0A=A0=A0 =A0g++ -o hw hw.cpp= =0A=0A=A0 =0A#+END_SRC=0A=0A$ grep -P "\t" Makefile.tangled=A0=A0=A0 ######= ## found some tabs!=0Ahw:=A0=A0 =A0hw.cpp=0A=A0=A0 =A0g++ -o hw hw.cpp=0A= =0A$ make -f Makefile.tangled=A0=A0=A0 ######## no complaints from make=0Ag= ++ -o hw hw.cpp=0A=0A$ ./hw=A0=A0=A0 ######## the newly-compiled program ru= ns=0AHello, world!