diff Misc/python-mode.el @ 28140:f9db9dc456ab legacy-trunk

Guard advancing past leading meta-comments.
author Ken Manheimer <klm@digicool.com>
date Mon, 03 Mar 2003 04:05:03 +0000
parents b20a3685d23e
children 95abf3fc2b2d
line wrap: on
line diff
--- a/Misc/python-mode.el	Mon Mar 03 00:35:32 2003 +0000
+++ b/Misc/python-mode.el	Mon Mar 03 04:05:03 2003 +0000
@@ -1360,10 +1360,12 @@
                             (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) ?\<)