[Python-mode] [ python-mode-Bugs-834290 ]
py-beginning-of-def-or-class looks inside strings
SourceForge.net
noreply at sourceforge.net
Sat Nov 1 15:39:05 EST 2003
Bugs item #834290, was opened at 2003-11-01 20:36
Message generated for change (Comment added) made by dhagglund
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=581349&aid=834290&group_id=86916
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Dale Hagglund (dhagglund)
Assigned to: Nobody/Anonymous (nobody)
Summary: py-beginning-of-def-or-class looks inside strings
Initial Comment:
[I mistakenly submitted this to the python project first as bug 830374. Sorry...]
Using python-mode.el 4.6 and gnu emacs 21.1.
To demonstrate this problem:
1. Open the attached file with emacs.
2. Position point at the "#" on the last line.
3. Type `M-C-a', py-beginning-of-def-or-class.
Point will now be inside the docstring for class x.
py-b-o-d-o-c uses regexps to look backwards for def or class lines. When it finds a candidate line, should it maybe use partial-parse-sexp to decide if it's in a string or not?
----------------------------------------------------------------------
>Comment By: Dale Hagglund (dhagglund)
Date: 2003-11-01 20:39
Message:
Logged In: YES
user_id=895011
Attach a patch fixing the problem.
The patch also fixes an incorrect call to py-beginning-o-d-o-c in py-end-o-d-o-c.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=581349&aid=834290&group_id=86916
More information about the Python-mode
mailing list