GNU bug report logs -
#16297
24.3; Maybe wrong regexp in python.el (24.3)
Previous Next
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
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
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 <at> 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
[Message part 2 (text/html, inline)]
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.