From c3f85d9536aa964e7c1881e3a7e5c18189d01894 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Wed, 21 Apr 2004 20:48:47 +0000 Subject: [PATCH] (python-maybe-jython): Don't assume point-min==1. --- lisp/progmodes/python.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 7a7e62d06ee..a85cd2296ae 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -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)))) -- 2.39.5