python-mode defaults to indenting with tab rather than spaces

Bug #953765 reported by Richard Stanton
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-mode.el
Fix Released
Medium
Andreas Roehler

Bug Description

I'm not sure if this is new behavior, but it looks like python-mode (today's version, 3/12/12) by default uses a tab to indent rather than 4 spaces when I press Return (running the command py-newline-and indent). I can override this by setting indent-tabs-mode to nil, but wouldn't it make more sense to have spaces as the default?

Changed in python-mode:
assignee: nobody → Andreas Roehler (a-roehler)
milestone: none → 6.0.6
importance: Undecided → Medium
Revision history for this message
Andreas Roehler (a-roehler) wrote :

indent-tabs-mode is a global variable

previously it was set to nil by python-mode, now a function toggle-indent-tabs-mode is delivered

will make it buffer-local and default it to nil again than, rename function into py-toggle-indent-tabs-mode

Changed in python-mode:
status: New → In Progress
Changed in python-mode:
status: In Progress → Fix Committed
Changed in python-mode:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.