M-x mark-defun should mark top-level form

Bug #1191078 reported by Andreas Roehler on 2013-06-14
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
python-mode.el
Medium
Andreas Roehler

Bug Description

bug#13501: 24.3.50; mark-defun and friends don't work correctly in python
From: Ivan Andrus
Subject: bug#13501: 24.3.50; mark-defun and friends don't work correctly in python-mode
Date: Sat, 19 Jan 2013 22:21:38 +0100

Starting from emacs -Q create a buffer in python-mode with contents

with open('someFile') as f:
    data = f.read()

Place the cursor (say) after some and before File. Then run mark-defun
(e.g. with C-M-h). It will set mark at the end of the line and not move
point. Instead, it should select the entire block.

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

Other bug subscribers