GNU bug report logs - #16297
24.3; Maybe wrong regexp in python.el (24.3)

Previous Next

Package: emacs;

Reported by: François Pinard <pinard <at> iro.umontreal.ca>

Date: Mon, 30 Dec 2013 02:08:02 UTC

Severity: normal

Tags: moreinfo

Found in version 24.3

Done: fgallina <at> gnu.org (Fabián Ezequiel Gallina)

Bug is archived. No further changes may be made.

Full log


Message #19 received at 16297-done <at> debbugs.gnu.org (full text, mbox):

From: fgallina <at> gnu.org (Fabián Ezequiel Gallina)
To: 16297-done <at> debbugs.gnu.org
Subject: Re: bug#16297: 24.3; Maybe wrong regexp in python.el (24.3)
Date: Mon, 30 Dec 2013 16:27:22 -0300
François Pinard <fpinard <at> 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.




This bug report was last modified 11 years and 146 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.