py-mark-expression marks too much

Bug #941140 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 code like this:

  somevar = "some string"
  # some code

when point is on the first quote, calling py-mark-expression marks the next several lines, no matter what they are.

This only seems to happen when point is in the first quote of a string literal which is the last thing on a line.

  somevar = "some string".some_property()
  # point at first quote works

  somevar = "a" + "b"
  # works at quote before a, fails at quote before b

I am using version 6.0.4

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

checked in a fix.
Can you try again with current trunk?

Please re-open the report, if the bug still exists.

thanks,

Andreas

Changed in python-mode:
status: Triaged → Fix Committed
Changed in python-mode:
status: Fix Committed → Fix Released
Revision history for this message
Ed McCardell (edmccard) wrote :

For some reason I didn't get comment #1 in my email, but py-mark-expression works now.

But, was it intentional that all of the py-mark-* commands are no longer interactive?

Revision history for this message
Andreas Roehler (a-roehler) wrote : Re: [Bug 941140] Re: py-mark-expression marks too much

Am 05.03.2012 12:24, schrieb Ed McCardell:
> For some reason I didn't get comment #1 in my email, but py-mark-
> expression works now.
>
> But, was it intentional that all of the py-mark-* commands are no longer
> interactive?
>

that was just an error in my script, which produces these functions, sorry.
Made a test for commandp, so it should not happen again.

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.