bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#16297: 24.3; Maybe wrong regexp in python.el (24.3)


From: Fabián Ezequiel Gallina
Subject: bug#16297: 24.3; Maybe wrong regexp in python.el (24.3)
Date: Mon, 30 Dec 2013 16:27:22 -0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]