bug-gnu-emacs
[Top][All Lists]
Advanced

[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: Wed, 11 Feb 2015 12:52:35 -0300

Sorry I mistakenly posted the same patch twice. The "when the point is
in empty lines above a defun" concern is addressed by defining
python-mark-defun as follows:

(defun python-mark-defun ()
  (interactive)
  (unless (eq last-command this-command)
    (skip-chars-forward " \t\n")
    (when (python-info-looking-at-beginning-of-defun)
      (end-of-line 1)))
  (mark-defun 1))

Cheers
--
Carlos





reply via email to

[Prev in Thread] Current Thread [Next in Thread]