From: fgallina@gnu.org (Fabián Ezequiel Gallina)
To: 16297-done@debbugs.gnu.org
Subject: bug#16297: 24.3; Maybe wrong regexp in python.el (24.3)
Date: Mon, 30 Dec 2013 16:27:22 -0300 [thread overview]
Message-ID: <87mwjicf6t.fsf@gnu.org> (raw)
In-Reply-To: <CABN5ifJy1SXm5nHYtbyoz18ZouuoopPnZBMmssjD_3g4XWZN_A@mail.gmail.com> ("François Pinard"'s message of "Mon, 30 Dec 2013 01:03:14 -0500")
François Pinard <fpinard@gmail.com> writes:
> In some code of mine, I was checking if the cursor was at the
> beginning class using python-nav-beginning-of-defun-regexp using
> looking-at, and the looking-at was returning nil, while I expected a
> match.
Please, use `python-info-looking-at-beginning-of-defun' for such
thing. The regexp is constructed in a way that point must be at
beginning-of-line to match, and that function takes into account not
only that, but other possible situations (like point being inside of
string or comment).
--
Regards,
Fabián.
next prev parent reply other threads:[~2013-12-30 19:27 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-30 1:27 bug#16297: 24.3; Maybe wrong regexp in python.el (24.3) François Pinard
2013-12-30 3:06 ` Glenn Morris
2013-12-30 6:03 ` François Pinard
2013-12-30 19:27 ` Fabián Ezequiel Gallina [this message]
2013-12-30 4:06 ` 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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87mwjicf6t.fsf@gnu.org \
--to=fgallina@gnu.org \
--cc=16297-done@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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).