TAB leaves point in the wrong place

Bug #1178453 reported by Barry Warsaw
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-mode.el
Fix Released
Medium
Andreas Roehler

Bug Description

r1225

import tarfile

src = tarfile.open('src.tgz', 'r:gz')
dst = tarfile.open('dst.tgz', 'w:gz')

for name in src.getnames():
    print('name:', name)
    info = src.getmember(name)
    fp = src.extractfile(name)
    dst.addfile(info, fp)

src.close()
dst.close()

Put point at the end of the `dst.addfile` line and hit return. Point is properly left on the next line right under the first 'd'. Now hit TAB. Point is correctly left at the beginning of the line. Hit TAB one more time.

Now, while 4 spaces have been added to the beginning of the line, point is left at the beginning of the line instead of at the end of the just inserted whitespace. Point should be at column 4.

Changed in python-mode:
importance: Undecided → Medium
assignee: nobody → Andreas Roehler (a-roehler)
milestone: none → 6.1.2
Changed in python-mode:
status: New → In Progress
Changed in python-mode:
status: In Progress → Fix Committed
Changed in python-mode:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.