From: Nicolas Goaziou <n.goaziou@gmail.com>
To: "Andreas Röhler" <andreas.roehler@easy-emacs.de>
Cc: emacs-orgmode@gnu.org
Subject: Re: How to prevent tabs from turning into spaces in source-code export?
Date: Thu, 30 May 2013 17:24:53 +0200 [thread overview]
Message-ID: <87zjvcebi2.fsf@gmail.com> (raw)
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")
Hello,
Andreas Röhler <andreas.roehler@easy-emacs.de> 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,
--
Nicolas Goaziou
prev parent reply other threads:[~2013-05-30 15:24 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-30 11:19 How to prevent tabs from turning into spaces in source-code export? James Harkins
2013-05-30 13:22 ` Nicolas Goaziou
2013-05-30 13:46 ` Andreas Röhler
2013-05-30 15:24 ` Nicolas Goaziou [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87zjvcebi2.fsf@gmail.com \
--to=n.goaziou@gmail.com \
--cc=andreas.roehler@easy-emacs.de \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).