From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: How to prevent tabs from turning into spaces in source-code export? Date: Thu, 30 May 2013 17:24:53 +0200 Message-ID: <87zjvcebi2.fsf@gmail.com> References: <87k3mgfvr3.fsf@gmail.com> <51A7581D.2010203@easy-emacs.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:38108) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ui4ik-0004w8-LL for emacs-orgmode@gnu.org; Thu, 30 May 2013 11:24:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ui4if-0001VX-Sk for emacs-orgmode@gnu.org; Thu, 30 May 2013 11:24:54 -0400 Received: from mail-wg0-x22d.google.com ([2a00:1450:400c:c00::22d]:44717) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ui4if-0001VR-Mz for emacs-orgmode@gnu.org; Thu, 30 May 2013 11:24:49 -0400 Received: by mail-wg0-f45.google.com with SMTP id n12so356921wgh.0 for ; Thu, 30 May 2013 08:24:49 -0700 (PDT) In-Reply-To: <51A7581D.2010203@easy-emacs.de> ("Andreas \=\?utf-8\?Q\?R\=C3\=B6h\?\= \=\?utf-8\?Q\?ler\=22's\?\= message of "Thu, 30 May 2013 15:46:05 +0200") 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: Andreas =?utf-8?Q?R=C3=B6hler?= Cc: emacs-orgmode@gnu.org Hello, Andreas R=C3=B6hler writes: > as indentation might be provided by TAB and whitespace chars likewise, > what about following setting of `indent-tabs-mode'? It is indeed possible to propagate `indent-tabs-mode' value to the original buffer's copy where export happens, but it will not be enough to guaranty that indentation related TAB characters are preserved (e.g., if relative indentation falls below `tab-width' value although global one was above). The only way to make sure TAB will be preserved is to set `org-src-preserve-indentation' to a non-nil value (or, locally, to use "-i" switch). Regards, --=20 Nicolas Goaziou