[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#19665: 25.0.50; python.el: mark defun bug when point is in class sta
From: |
Carlos Pita |
Subject: |
bug#19665: 25.0.50; python.el: mark defun bug when point is in class statement |
Date: |
Mon, 9 Feb 2015 14:36:33 -0300 |
Here is a variation of the last patch that behaves better when the
point is in empty lines above a defun.
Another entirely different approach to solve this issue without
redefining mark-defun could be to differentiate:
class M:
def m():
pass*
and
class M:
def m():
pass
*
(where * stands for the point)
In the second case, C-M-h will select the class, while in the first it
will select the method. Then, there would be no need to hack
mark-defun.
What do you think?
mark-defun.patch
Description: Text Data