aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
authorFabián Ezequiel Gallina2015-05-11 00:03:08 -0300
committerFabián Ezequiel Gallina2015-05-11 00:03:08 -0300
commite35bf5727153bdc8be7178504a8b920b9560b7b0 (patch)
treea790f77430e2d3ed8a28d045e854f823a8c52089 /lisp/progmodes/python.el
parentb47f3356fb7ef484a1dc12db58e203404a5d8eef (diff)
downloademacs-e35bf5727153bdc8be7178504a8b920b9560b7b0.tar.gz
emacs-e35bf5727153bdc8be7178504a8b920b9560b7b0.zip
python.el: better limit for looking-back calls
* lisp/progmodes/python.el (python-shell-accept-process-output): Use last comint prompt start as limit for looking-back.
Diffstat (limited to 'lisp/progmodes/python.el')
-rw-r--r--lisp/progmodes/python.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 2e7410ac833..4b0a028faa3 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -2268,7 +2268,8 @@ banner and the initial prompt are received separately."
2268 (while t 2268 (while t
2269 (when (not (accept-process-output process timeout)) 2269 (when (not (accept-process-output process timeout))
2270 (throw 'found nil)) 2270 (throw 'found nil))
2271 (when (looking-back regexp (point-min)) 2271 (when (looking-back
2272 regexp (car (python-util-comint-last-prompt)))
2272 (throw 'found t)))))) 2273 (throw 'found t))))))
2273 2274
2274(defun python-shell-comint-end-of-output-p (output) 2275(defun python-shell-comint-end-of-output-p (output)