From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Hannon Subject: Losing tabs when tangling or editing Date: Wed, 23 May 2012 14:18:39 -0700 (PDT) Message-ID: <1337807919.11721.YahooMailNeo@web161904.mail.bf1.yahoo.com> 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]:40328) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SXIx9-0007Wc-NX for emacs-orgmode@gnu.org; Wed, 23 May 2012 17:18:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SXIx7-0007Sa-QH for emacs-orgmode@gnu.org; Wed, 23 May 2012 17:18:43 -0400 Received: from nm19.bullet.mail.bf1.yahoo.com ([98.139.212.178]:33890) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1SXIx7-0007SL-HN for emacs-orgmode@gnu.org; Wed, 23 May 2012 17:18:41 -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: Org-Mode List Greetings.=A0 I was trying to set up a little demo in which I included a=0A= Makefile inside a "sh" source-code block in an Org-mode file, then tangled = the=0Afile and ran "make" on the tangled file (either in the actual shell o= r in=0Aanother sh block in Org).=0A=0AIt appears that Org is removing tabs = when it tangles the file, and the lack of=0Atabs causes "make" to complain.= =0A=0AI've appended a toy example which exhibits the problem.=A0 BTW, if I = edit the=0Asource block via C-c ' I also lose the tabs, i.e., even before t= angling.=0A=0AAny thoughts about this?=0A=0AThanks,=0A=0A-- Mike=0A=0A=0A$ = cat Makefile.original =0Ahw:=A0=A0=A0 hw.cpp=0A=A0=A0=A0 g++ -o hw hw.cpp= =0A=0A$ grep -P "\t" Makefile.original =0Ahw:=A0=A0=A0 hw.cpp=0A=A0=A0=A0 g= ++ -o hw hw.cpp=0A=0A$ make -f Makefile.original =0Ag++ -o hw hw.cpp=0A=0A$= ./hw=0AHello, world!=0A=0A$ \rm hw=0A=0A$ cat hw.org=0A* test preservation= of tabs when tangling=0A=0A#+BEGIN_SRC sh :tangle Makefile.tangled=0A=0Ahw= :=A0=A0=A0 hw.cpp=0A=A0=A0=A0 g++ -o hw hw.cpp=0A=0A#+END_SRC=0A=0A$ make -= f Makefile.tangled=0AMakefile.tangled:3: *** missing separator (did you mea= n TAB instead of 8=0Aspaces?).=A0 Stop.