From: matt <matthew.a.hess@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: python-mode unexpectedly switches to tabs for indenting
Date: Sat, 16 Mar 2013 12:01:19 -0700 (PDT) [thread overview]
Message-ID: <e0f801da-3b70-4f80-b32b-13b4b2ca123f@googlegroups.com> (raw)
For reasons I don't understand, emacs has unexpectedly switched to using tabs instead of spaces for auto-indenting and commands like (newline-and-indent) [key sequence: C-j] for one of of the python files in the project I'm working on. It was using the 4-space indent that the python mode has configured previously. I checked and none of the python-mode configuration has changed. It doesn't happen for any of the other files in the same directory-- just for this one file-- which makes me thing that I somehow unwittingly set some file-local variables. The file has DOS style newlines.
I tried using the "M-x untabify" command and then query-replacing all the tabs in the file to see if that might toggle the behavior, but tab insertion on C-j still persists.
I'm really at a loss to explain what happened, and it really disturbs me that this can happen without me having any clue. Any help/insight is appreciated! Thanks in advance!
next reply other threads:[~2013-03-16 19:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-16 19:01 matt [this message]
2013-03-17 8:38 ` python-mode unexpectedly switches to tabs for indenting Andreas Röhler
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e0f801da-3b70-4f80-b32b-13b4b2ca123f@googlegroups.com \
--to=matthew.a.hess@gmail.com \
--cc=help-gnu-emacs@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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.