From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Andreas_R=F6hler?= Newsgroups: gmane.emacs.help Subject: Re: python-mode unexpectedly switches to tabs for indenting Date: Sun, 17 Mar 2013 09:38:34 +0100 Message-ID: <5145810A.7030004@easy-emacs.de> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1363509478 31450 80.91.229.3 (17 Mar 2013 08:37:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 17 Mar 2013 08:37:58 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Mar 17 09:38:23 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UH96h-000501-Qg for geh-help-gnu-emacs@m.gmane.org; Sun, 17 Mar 2013 09:38:19 +0100 Original-Received: from localhost ([::1]:46549 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UH96L-0000XH-0h for geh-help-gnu-emacs@m.gmane.org; Sun, 17 Mar 2013 04:37:57 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:60846) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UH96A-0000Vn-0z for help-gnu-emacs@gnu.org; Sun, 17 Mar 2013 04:37:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UH967-0000r4-Tw for help-gnu-emacs@gnu.org; Sun, 17 Mar 2013 04:37:45 -0400 Original-Received: from moutng.kundenserver.de ([212.227.126.187]:53398) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UH967-0000qO-LR for help-gnu-emacs@gnu.org; Sun, 17 Mar 2013 04:37:43 -0400 Original-Received: from [192.168.178.21] (brln-4d0c097f.pool.mediaWays.net [77.12.9.127]) by mrelayeu.kundenserver.de (node=mreu4) with ESMTP (Nemesis) id 0MWtPb-1UFLw60Dsp-00Y4T0; Sun, 17 Mar 2013 09:37:41 +0100 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130307 Thunderbird/17.0.4 In-Reply-To: X-Provags-ID: V02:K0:yO+J78faYCup7te7DPCtYjdgHXNVWCXemlt3pkGfV+W RDfBRIbh70+blxOAgJUzpXPseB2MN3S7lM5i6cn1l6cQTNwuOt +1oaV4Hhx5nUKdRsZqkRMZhEsCE8V+8qL2sdC04caAxYVbq4O4 714YKWwZJhHWVL6k7QVkNtqb8VDiLsT6iFNT8EiX7cJqwY5pDS zBh6gRUGzSrpBQu81A1A+HhfrwRUC5jYCXSweNLiQmUj3aJBA8 E4cqhQ7Ie8qeoZR0QNtH7pGQDaF91aJAiQCw8PH14dVJhrwZwp ANcNYr3vwHqRFaCIL4E+4rrhsvkeqlGBa272zrAQIoUSncoZCZ ra6Jb9/nd7PjUjiIsCIBEs7G51NffDPkje24GZFyK X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 212.227.126.187 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:89558 Archived-At: Am 16.03.2013 20:01, schrieb matt: > 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! > Seems indent-tabs-mode is on now. Should be off be default IMO. M-x customize-variable RET indent-tabs-mode