projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e7aca52
)
Guard advancing past leading meta-comments.
author
Ken Manheimer
<klm@digicool.com>
Mon, 3 Mar 2003 04:05:03 +0000
(
04:05
+0000)
committer
Ken Manheimer
<klm@digicool.com>
Mon, 3 Mar 2003 04:05:03 +0000
(
04:05
+0000)
Misc/python-mode.el
patch
|
blob
|
history
diff --git
a/Misc/python-mode.el
b/Misc/python-mode.el
index 13070421bbcf5c0b6e39f60be120003cfefad5e1..c8423f1e5730e822dfa3f0fa1a33d3439da17be3 100644
(file)
--- a/
Misc/python-mode.el
+++ b/
Misc/python-mode.el
@@
-1360,10
+1360,12
@@
problem as best as we can determine."
(set-buffer funcbuffer)
(count-lines
(point-min)
- (string-match "^\\([^#]\\|#[^#]\\|#$\\)"
- (buffer-substring (point-min)
- (point-max)
- funcbuffer)))))))
+ (max (point-min)
+ (string-match "^\\([^#]\\|#[^#]\\|#$\\)"
+ (buffer-substring (point-min)
+ (point-max)
+ funcbuffer))
+ ))))))
(list lineno funcbuffer))
((= (elt filename 0) ?\<)