Activity log for bug #1067633

Date Who What changed Old value New value Message
2012-10-17 07:16:12 Simon Safar bug added bug
2012-10-17 07:16:12 Simon Safar attachment added output of report-emacs-bug (without the mail text) https://bugs.launchpad.net/bugs/1067633/+attachment/3401133/+files/report-emacs-bug.txt
2012-10-17 08:01:05 Simon Safar description When indenting Python code, python-mode incorrectly indents functions whose first line is "return <something>" or "pass". For example, when having the code def foo: pass and pressing tab on the "pass" line, "pass" gets put to the beginning of the line, like this: def foo: pass Later code is also affected: class foo: def bar: [here "pass" gets indented either in line with "def" or the beginning of the line] pass [and here we only get the beginning of the line as the only indentation] The phenomenon is present with both 6.0.12 and the newest development branch (that declares itself 6.0.13), with emacs 23 on both OSX and Ubuntu 12.04 (latter also tried on a relatively fresh VM), also starting with emacs -Q. Steps to reproduce -------------------------- 1) load the file (add-to-list 'load-path "~/path-to-python-mode") (require 'python-mode) 2) open a new Python buffer C-c C-f ~/test.py 3) enter code def foo: [press Enter, indentation is still correct, we stand in the next line on the 4th column] 4) enter "return" or "pass" (and observe the indentation described above.) When indenting Python code, python-mode incorrectly indents functions whose first line is "return <something>" or "pass". For example, when having the code def foo():     pass and pressing tab on the "pass" line, "pass" gets put to the beginning of the line, like this: def foo(): pass Later code is also affected: class foo:     def bar(): [here "pass" gets indented either in line with "def" or the beginning of the line]     pass [and here we only get the beginning of the line as the only indentation] The phenomenon is present with both 6.0.12 and the newest development branch (that declares itself 6.0.13), with emacs 23 on both OSX and Ubuntu 12.04 (latter also tried on a relatively fresh VM), also starting with emacs -Q. Steps to reproduce -------------------------- 1) load the file (add-to-list 'load-path "~/path-to-python-mode") (require 'python-mode) 2) open a new Python buffer C-c C-f ~/test.py 3) enter code def foo(): [press Enter, indentation is still correct, we stand in the next line on the 4th column] 4) enter "return" or "pass" (and observe the indentation described above.)
2012-10-17 10:12:45 Andreas Roehler python-mode: milestone 6.1.0
2012-10-17 10:12:49 Andreas Roehler python-mode: assignee Andreas Roehler (a-roehler)
2012-10-17 10:12:54 Andreas Roehler python-mode: importance Undecided Medium
2012-10-17 10:12:59 Andreas Roehler python-mode: status New Confirmed
2012-10-17 19:19:36 Launchpad Janitor branch linked lp:python-mode
2012-10-17 19:19:59 Launchpad Janitor branch linked lp:python-mode/components-python-mode
2012-10-17 19:23:29 Andreas Roehler python-mode: status Confirmed Fix Committed
2012-12-05 18:20:30 Andreas Roehler python-mode: status Fix Committed Fix Released
2012-12-05 18:33:34 Jiaxing Song bug added subscriber Jiaxing Song