converts tabs to spaces in indent-tabs-mode t
Bug #1019128 reported by
Yaroslav Halchenko
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-mode.el |
Fix Released
|
High
|
Andreas Roehler |
Bug Description
I have a codebase (fail2ban) which used tabs for indentation
now when e.g. standing on the front of middle line in
self.fd, self.name = tempfile.
self.filter = Filter_(None)
self.
I press Enter -- I would get a new empty line and that line would loose its tabs -- they would get replaced with spaces... yikes!
I have
indent-tabs-mode is a variable defined in `C source code'.
Its value is t
Local in buffer filtertestcase.py; global value is t
Changed in python-mode: | |
assignee: | nobody → Andreas Roehler (a-roehler) |
milestone: | none → 6.1.0 |
importance: | Undecided → High |
Changed in python-mode: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Am 29.06.2012 06:22, schrieb Yaroslav Halchenko: mkstemp( 'fail2ban' , 'monitorfailures') addLogPath( self.name)
> Public bug reported:
>
> I have a codebase (fail2ban) which used tabs for indentation
>
> now when e.g. standing on the front of middle line in
>
> self.fd, self.name = tempfile.
> self.filter = Filter_(None)
> self.filter.
>
> I press Enter -- I would get a new empty line and that line would loose
> its tabs -- they would get replaced with spaces... yikes!
>
> I have
>
> indent-tabs-mode is a variable defined in `C source code'.
> Its value is t
> Local in buffer filtertestcase.py; global value is t
>
> ** Affects: python-mode
> Importance: Undecided
> Status: New
>
py-indent-tabs-mode
toggles it.
See also in meny PyTools.
BTW py-indent- tabs-mode- on/off are broken, will be fixed, but don't interfere.
Thanks for the report,
Andreas