py-indent-region hangs if region ends at EOF

Bug #1564331 reported by T045T on 2016-03-31
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

If I try to indent a region of code that ends on the last line of a file (no trailing newline), py-indent-region hangs indefinitely (or at least, as long as I've been willing to wait so far, multiple minutes).
Example code:

asd = 1
if True:

Aborting py-indent-region with Ctrl-G causes the buffer to change to

asd = 1
if True:

with the cursor at the beginning of the last line with the rest of the line selected.

Trying to undo this change hangs for about as long as py-indent-region did, then reverts the indentation.

T045T (berg-nils) on 2016-03-31
description: updated
Andreas Roehler (a-roehler) wrote :

Hmm, can't reproduce. Please give some more info WRT emacs-version, python-mode.el version, which key used etc.

Changed in python-mode:
status: New → Incomplete
T045T (berg-nils) wrote :

Neither can I :(
I no longer have access to the machine I originally encountered the bug on because I've changed jobs since then. Looks like it was a quirk of that machine and/or has been fixed since.

Changed in python-mode:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers