From: "François Pinard" <fpinard@gmail.com>
To: Glenn Morris <rgm@gnu.org>
Subject: bug#16297: 24.3; Maybe wrong regexp in python.el (24.3)
Date: Mon, 30 Dec 2013 01:03:14 -0500 [thread overview]
Message-ID: <CABN5ifJy1SXm5nHYtbyoz18ZouuoopPnZBMmssjD_3g4XWZN_A@mail.gmail.com> (raw)
In-Reply-To: <87k3enjav8.fsf@fencepost.gnu.org>
[-- Attachment #1: Type: text/plain, Size: 901 bytes --]
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.
2013/12/29 Glenn Morris <rgm@gnu.org>
> François Pinard wrote:
>
> > Well, I was adapting some of my Emacs Lisp from python-mode.el to use
> > Fabian Gallina's python.el instead. After loading python.el in Emacs
> > 24.3, the value of python-nav-beginning-of-defun-regexp is:
> >
> >
> "^[[:space:]]*\\_<\\(?:class\\|def\\)\\_>[[:space:]]+\\([_[:alpha:]][_[:word:]]*\\)"
> >
> > Maybe I merely miss the meaning of "?:" in this regexp, if any. Yet,
> > by removing "?:" from the above value solved my problem, so maybe the
> > value as defined by Emacs has problem?
>
> Please say what the actual problem is.
>
>
--
François Pinard http://pinard.progiciels-bpi.ca
[-- Attachment #2: Type: text/html, Size: 1370 bytes --]
next prev parent reply other threads:[~2013-12-30 6:03 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 [this message]
2013-12-30 19:27 ` Fabián Ezequiel Gallina
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=CABN5ifJy1SXm5nHYtbyoz18ZouuoopPnZBMmssjD_3g4XWZN_A@mail.gmail.com \
--to=fpinard@gmail.com \
--cc=pinard@iro.umontreal.ca \
--cc=rgm@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).