Incorrect re-indentation
Bug #1006643 reported by
Barry Warsaw
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-mode.el |
Opinion
|
Medium
|
Andreas Roehler |
Bug Description
Start with this code:
def foo():
if a == 1:
x = 7
if b == 2
with point right after the '2'. Now hit : and watch the line get re-indented to line up under the 'x'. This should not happen since I just explicitly dedented it when I started the line.
Changed in python-mode: | |
importance: | Undecided → Medium |
assignee: | nobody → Andreas Roehler (a-roehler) |
milestone: | none → 6.0.9 |
Changed in python-mode: | |
status: | New → Opinion |
To post a comment you must log in.
Am 31.05.2012 00:48, schrieb Barry Warsaw:
> Public bug reported:
>
> Start with this code:
>
> def foo():
> if a == 1:
> x = 7
> if b == 2
>
> with point right after the '2'. Now hit : and watch the line get re-
> indented to line up under the 'x'. This should not happen since I just
> explicitly dedented it when I started the line.
Hi Barry,
the rationale of smart-indentation is: "go to the outmost reasonable indent"
C-u :
should DTRT
Cheers