py-compute-indentation wrong at EOL
Bug #858043 reported by
Georg Brandl
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-mode.el |
Fix Released
|
Medium
|
Andreas Roehler |
Bug Description
Take this code:
if maxdepth == 0 or depth < maxdepth:
item += build_toc(
Note that the second line is not indented correctly, which I'd like to fix. Previously I could place the point anywhere in the line and press TAB to reindent. Now point has to be on or before the "i" in "item".
Changed in python-mode: | |
assignee: | nobody → Andreas Roehler (a-roehler) |
Changed in python-mode: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Am 24.09.2011 08:37, schrieb Georg Brandl: sectionnode, depth+1)
> Public bug reported:
>
> Take this code:
>
> if maxdepth == 0 or depth< maxdepth:
> item += build_toc(
>
> Note that the second line is not indented correctly, which I'd like to
> fix. Previously I could place the point anywhere in the line and press
> TAB to reindent. Now point has to be on or before the "i" in "item".
>
> ** Affects: python-mode
> Importance: Undecided
> Status: New
>
Hi Georg,
can't reproduce, neither with 23 nor 24 Emacs.
Indents nicely to 4 from every position except end-of-line.
However, when going to the end of second line, py-compute- indentation
yields a wrong 11 - which is another bug.
Can you reproduce the latter and make a report if yes?
thanks,
Andreas