From: Carlos Pita <carlosjosepita@gmail.com>
To: 19665@debbugs.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 [thread overview]
Message-ID: <CAELgYhdVX92bhXS3v9gwL+D6KVEBPA9DVsQ9F6jKArBC7taU_g@mail.gmail.com> (raw)
In-Reply-To: <CAELgYhdvG1mU8TuVVOsL8dqG6S0TKOZDUAZYd4_ydFO6_Wkn9A@mail.gmail.com>
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
next prev parent reply other threads:[~2015-02-11 15:52 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-23 16:12 bug#19665: 25.0.50; python.el: mark defun bug when point is in class statement Carlos Pita
2015-01-23 21:17 ` bug#19665: Carlos Pita
2015-02-02 19:33 ` bug#19665: Carlos Pita
2015-02-09 16:46 ` bug#19665: 25.0.50; python.el: mark defun bug when point is in class statement Carlos Pita
2015-02-09 17:36 ` Carlos Pita
2015-02-11 15:52 ` Carlos Pita [this message]
2015-07-06 4:05 ` Fabián Ezequiel Gallina
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAELgYhdVX92bhXS3v9gwL+D6KVEBPA9DVsQ9F6jKArBC7taU_g@mail.gmail.com \
--to=carlosjosepita@gmail.com \
--cc=19665@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.