py-mark-{block,clause} misbehave at beginning of block or clause

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

Bug Description

With this Python code:

if foo:
    try:
        pass

calling py-mark-block, py-mark-block-or-clause, or py-mark-clause with point on line 2 will mark the try block, if point is on or before the opening 't' of 'try'.

However, if point is on line 2 but somewhere past the opening 't', like at the end of the line, then the outer if block gets marked, which is unexpected, and different from how it worked in version 6.0.4.

This change is caused by the py-beginning-of-*-p functions, which used to use the py-statement-opens-*-p functions (which returned the same result no matter where you were on the line), but now they don't.

Revision history for this message
Andreas Roehler (a-roehler) wrote :

thanks for the report.
BTW bug does not exist in components branch.

Changed in python-mode:
assignee: nobody → Andreas Roehler (a-roehler)
milestone: none → 6.0.6
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Andreas Roehler (a-roehler) wrote :

please re-open, should you still get it,

thanks,

Andreas

Changed in python-mode:
status: Triaged → 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.