GNU bug report logs - #19665
25.0.50; python.el: mark defun bug when point is in class statement

Previous Next

Package: emacs;

Reported by: Carlos Pita <carlosjosepita <at> gmail.com>

Date: Fri, 23 Jan 2015 16:13:02 UTC

Severity: normal

Tags: notabug, patch

Merged with 19748

Fixed in version 25.0.50

Done: fgallina <at> gnu.org (Fabián Ezequiel Gallina)

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Carlos Pita <carlosjosepita <at> gmail.com>
To: 19665 <at> debbugs.gnu.org
Cc: Fabián Ezequiel Gallina <fgallina <at> gnu.org>
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




This bug report was last modified 10 years and 17 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.