Return statements are sometimes indented incorrectly.
Bug #1019601 reported by
Matthew Woodcraft
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-mode.el |
Fix Released
|
Medium
|
Andreas Roehler |
Bug Description
Return statements are sometimes indented incorrectly.
For example, if I enter the following code and press TAB with the cursor on
the 'return' line, the return statement is indented two steps, to align with
'bar()'. It should be indented only one step, to align with 'baz()'.
def foo():
while True:
bar()
baz()
return 1
Observed with python-mode 6.0.10, emacs versions 23.4 and 24.1, with all
default configuration variables.
Changed in python-mode: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Am 30.06.2012 16:36, schrieb Matthew Woodcraft:
> Public bug reported:
>
> Return statements are sometimes indented incorrectly.
>
> For example, if I enter the following code and press TAB with the cursor on
> the 'return' line, the return statement is indented two steps, to align with
> 'bar()'. It should be indented only one step, to align with 'baz()'.
Hi,
thanks for the report.
When cursor is behind baz()
C-j --M-x py-newline- and-and- indent- - should reach col 4, right?
Than insert "return 1"
Question: which command caused the dedent?
Andreas
>
> def foo():
> while True:
> bar()
> baz()
> return 1
>
> Observed with python-mode 6.0.10, emacs versions 23.4 and 24.1, with all
> default configuration variables.
>
> ** Affects: python-mode
> Importance: Undecided
> Status: New
>