From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?Fran=C3=A7ois?= Pinard Newsgroups: gmane.emacs.bugs Subject: bug#16297: 24.3; Maybe wrong regexp in python.el (24.3) Date: Mon, 30 Dec 2013 01:03:14 -0500 Message-ID: References: <87zjnj3z78.fsf@iro.umontreal.ca> <87k3enjav8.fsf@fencepost.gnu.org> Reply-To: pinard@iro.umontreal.ca NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b4721420edff804eeba33a3 X-Trace: ger.gmane.org 1388427967 29983 80.91.229.3 (30 Dec 2013 18:26:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 30 Dec 2013 18:26:07 +0000 (UTC) Bcc: rgm@gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Dec 30 19:26:13 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VxhXZ-0006NA-38 for geb-bug-gnu-emacs@m.gmane.org; Mon, 30 Dec 2013 19:26:13 +0100 Original-Received: from localhost ([::1]:59369 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VxhXY-0001Ia-N7 for geb-bug-gnu-emacs@m.gmane.org; Mon, 30 Dec 2013 13:26:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48742) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VxhXT-0001IV-Mu for bug-gnu-emacs@gnu.org; Mon, 30 Dec 2013 13:26:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VxhXP-0003MY-3r for bug-gnu-emacs@gnu.org; Mon, 30 Dec 2013 13:26:07 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38992) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VxhXP-0003MT-0i for bug-gnu-emacs@gnu.org; Mon, 30 Dec 2013 13:26:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VxhXO-0004Ed-5o for bug-gnu-emacs@gnu.org; Mon, 30 Dec 2013 13:26:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Fran=C3=A7ois?= Pinard Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 30 Dec 2013 18:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16297 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 16297-submit@debbugs.gnu.org id=B16297.138842795716266 (code B ref 16297); Mon, 30 Dec 2013 18:26:02 +0000 Original-Received: (at 16297) by debbugs.gnu.org; 30 Dec 2013 18:25:57 +0000 Original-Received: from localhost ([127.0.0.1]:53011 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VxhXJ-0004EI-0v for submit@debbugs.gnu.org; Mon, 30 Dec 2013 13:25:57 -0500 Original-Received: from fencepost.gnu.org ([208.118.235.10]:34887) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VxhWj-0004D5-Sm for 16297@debbugs.gnu.org; Mon, 30 Dec 2013 13:25:23 -0500 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1VxhWj-0004tc-Eq for 16297@debbugs.gnu.org; Mon, 30 Dec 2013 13:25:21 -0500 Resent-Message-ID: <21185.47761.323823.70516@gnu.org> Resent-Date: Mon, 30 Dec 2013 13:25:21 -0500 Resent-From: Glenn Morris Resent-To: 16297@debbugs.gnu.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=Xi/UZ6zf7XqksINYxiH6TXZioespN+RUJ405Sx+eT4Y=; b=FxH/c00PrzfWL8cONQ9YMjZMb3ziO23QtJ6efuWwtR7gynjwikv3u/qNVoOmSXO3BH s45VPHsiZeANWacB9+j0W70zOINmSWcCoy30iB72TJb5GBzN2UW1QiY7sYrr3mCaAzo6 nDPoE7UmaKsCX6Exk+No9ejzWChtPYMeqSJTf/jV4tfjCuWTHaNdnIvwJipe2tWWuVSB cJSwuYQ3WZAlkanbyCXx+KvW0DOV/vubmvzAmitpw63Byraw9m8eE5K+qTx+9MSEyWju XMAFfChZMff8fuaV2OiJ0/We9DhoUDUYsLMIf+6dCNZ2ejb5MWGYZIW0yLQfg6RJwVFo xhyQ== X-Received: by 10.194.24.65 with SMTP id s1mr2397921wjf.38.1388383394781; Sun, 29 Dec 2013 22:03:14 -0800 (PST) In-Reply-To: <87k3enjav8.fsf@fencepost.gnu.org> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Mailman-Approved-At: Mon, 30 Dec 2013 13:25:55 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:82759 Archived-At: --047d7b4721420edff804eeba33a3 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 > Fran=C3=A7ois 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:]][_[:w= ord:]]*\\)" > > > > 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. > > --=20 Fran=C3=A7ois Pinard http://pinard.progiciels-bpi.ca --047d7b4721420edff804eeba33a3 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
In some code of mine, I was checking if the cursor was at = the beginning class using python-nav-beginning-of-defun-regexp using lookin= g-at, and the looking-at was returning nil, while I expected a match.


2013/12/29 Gl= enn Morris <rgm@gnu.org>
Fran=C3=A7ois Pinard wrote:

> Well, I was adapting some of my Emacs Lisp from python-mode.el to use<= br> > Fabian Gallina's python.el instead. After loading python.el in Ema= cs
> 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 a= ny. 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=C3=A7oi= s Pinard http= ://pinard.progiciels-bpi.ca
--047d7b4721420edff804eeba33a3--