]> git.eshelyaron.com Git - emacs.git/commitdiff
(python-maybe-jython): Don't assume point-min==1.
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 21 Apr 2004 20:48:47 +0000 (20:48 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 21 Apr 2004 20:48:47 +0000 (20:48 +0000)
lisp/progmodes/python.el

index 7a7e62d06eec0252d94f06e7965d6989b5ad0c21..a85cd2296ae5733fe76e2cc3c8ce7a8a6d780a34 100644 (file)
@@ -1415,7 +1415,7 @@ The criterion is either a match for `jython-mode' via
                (while (re-search-forward
                        (rx (and line-start (or "import" "from") (1+ space)
                                 (group (1+ (not (any " \t\n."))))))
-                       10000        ; Probably not worth customizing.
+                       (+ (point-min) 10000) ; Probably not worth customizing.
                        t)
                  (if (member (match-string 1) python-jython-packages)
                      (throw 'done t))))