]> git.eshelyaron.com Git - emacs.git/commitdiff
python.el: Fix warnings on looking-back calls missing LIMIT
authorFabián Ezequiel Gallina <fgallina@gnu.org>
Thu, 30 Apr 2015 00:09:58 +0000 (21:09 -0300)
committerFabián Ezequiel Gallina <fgallina@gnu.org>
Thu, 30 Apr 2015 00:09:58 +0000 (21:09 -0300)
* lisp/progmodes/python.el (python-shell-accept-process-output):
Pass LIMIT arg to looking-back.

lisp/progmodes/python.el

index eb17d075921dd27bc75e231d72ed94b437eb5f25..2e7410ac833296481a5236ba3633dd3f51a10987 100644 (file)
@@ -2268,7 +2268,7 @@ banner and the initial prompt are received separately."
       (while t
         (when (not (accept-process-output process timeout))
           (throw 'found nil))
-        (when (looking-back regexp)
+        (when (looking-back regexp (point-min))
           (throw 'found t))))))
 
 (defun python-shell-comint-end-of-output-p (output)