From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: fgallina@gnu.org (=?UTF-8?Q?Fabi=C3=A1n?= Ezequiel Gallina) Newsgroups: gmane.emacs.bugs Subject: bug#16297: 24.3; Maybe wrong regexp in python.el (24.3) Date: Mon, 30 Dec 2013 16:27:22 -0300 Message-ID: <87mwjicf6t.fsf@gnu.org> References: <87zjnj3z78.fsf@iro.umontreal.ca> <87k3enjav8.fsf@fencepost.gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1388431685 5352 80.91.229.3 (30 Dec 2013 19:28:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 30 Dec 2013 19:28:05 +0000 (UTC) To: 16297-done@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Dec 30 20:28:10 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 1VxiVW-0001EF-H3 for geb-bug-gnu-emacs@m.gmane.org; Mon, 30 Dec 2013 20:28:10 +0100 Original-Received: from localhost ([::1]:59565 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VxiVW-0006nH-46 for geb-bug-gnu-emacs@m.gmane.org; Mon, 30 Dec 2013 14:28:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58633) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VxiVS-0006nC-Lb for bug-gnu-emacs@gnu.org; Mon, 30 Dec 2013 14:28:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VxiVR-00040t-KH for bug-gnu-emacs@gnu.org; Mon, 30 Dec 2013 14:28:06 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39088) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VxiVR-00040p-HA for bug-gnu-emacs@gnu.org; Mon, 30 Dec 2013 14:28:05 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VxiVQ-0006B4-D9 for bug-gnu-emacs@gnu.org; Mon, 30 Dec 2013 14:28:05 -0500 Resent-From: fgallina@gnu.org (=?UTF-8?Q?Fabi=C3=A1n?= Ezequiel Gallina) Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Mon, 30 Dec 2013 19:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 16297 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Mail-Followup-To: 16297@debbugs.gnu.org, fgallina@gnu.org, pinard@iro.umontreal.ca Original-Received: via spool by 16297-done@debbugs.gnu.org id=D16297.138843168223737 (code D ref 16297); Mon, 30 Dec 2013 19:28:02 +0000 Original-Received: (at 16297-done) by debbugs.gnu.org; 30 Dec 2013 19:28:02 +0000 Original-Received: from localhost ([127.0.0.1]:53106 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VxiVN-0006Ah-Cc for submit@debbugs.gnu.org; Mon, 30 Dec 2013 14:28:01 -0500 Original-Received: from fencepost.gnu.org ([208.118.235.10]:35743) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VxiVL-0006AW-4f for 16297-done@debbugs.gnu.org; Mon, 30 Dec 2013 14:27:59 -0500 Original-Received: from host190.190-30-119.telecom.net.ar ([190.30.119.190]:53367 helo=localhost) by fencepost.gnu.org with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1VxiVK-0006y6-5Y for 16297-done@debbugs.gnu.org; Mon, 30 Dec 2013 14:27:58 -0500 In-Reply-To: ("=?UTF-8?Q?Fran=C3=A7ois?= Pinard"'s message of "Mon, 30 Dec 2013 01:03:14 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) 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:82764 Archived-At: Fran=C3=A7ois Pinard 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=C3=A1n.