emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Greg Minshall <minshall@umich.edu>
To: Diego Zamboni <diego@zzamboni.org>
Cc: org-mode-email <emacs-orgmode@gnu.org>
Subject: Re: tabs turned into space when going into Org Src...?
Date: Wed, 23 Dec 2020 15:34:06 +0300	[thread overview]
Message-ID: <418784.1608726846@apollo2.minshall.org> (raw)
In-Reply-To: Your message of "Wed, 23 Dec 2020 12:28:19 +0100." <CAGY83EdwHx6+49oFtV-hkdT7Uu-i5_zFkRCKE3PL=4jF6yE+8A@mail.gmail.com>

Diego,

thanks for looking at it.  i apologize for not having looked at an
"emacs -Q" (and, thanks to Ihor for, a few days ago, having pointed out
how to "emacs -Q" with one's "normal" org version).

: emacs -Q -L ~/.emacs.d/elpa/org-20201012/ -l org

exhibits *half* of the behavior i am mentioning.
----
#+begin_src makefile
  a:
	echo foo
#+end_src
----
a leading tab is converted to spaces in the Org Src buffer.  but, in
this vanilla configuration, when i return the source to the .org file,
the spaces have been converted back into a tab.

it turns out, this (in my ~/.emacs) is the culprit:
: (setq-default indent-tabs-mode nil)
when indent-tabs-mode is nil, the recovered contents of the source block
have had the tab converted into spaces.

i guess i'm at the same question: is it likely a bug, or a feature?

Greg


      reply	other threads:[~2020-12-23 12:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-23  7:05 tabs turned into space when going into Org Src...? Greg Minshall
2020-12-23 11:28 ` Diego Zamboni
2020-12-23 12:34   ` Greg Minshall [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=418784.1608726846@apollo2.minshall.org \
    --to=minshall@umich.edu \
    --cc=diego@zzamboni.org \
    --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).