diff options
author | Fabián Ezequiel Gallina <fgallina@gnu.org> | 2015-05-11 00:03:08 -0300 |
---|---|---|
committer | Fabián Ezequiel Gallina <fgallina@gnu.org> | 2015-05-11 00:03:08 -0300 |
commit | e35bf5727153bdc8be7178504a8b920b9560b7b0 (patch) | |
tree | a790f77430e2d3ed8a28d045e854f823a8c52089 /lisp/progmodes | |
parent | b47f3356fb7ef484a1dc12db58e203404a5d8eef (diff) | |
download | emacs-e35bf5727153bdc8be7178504a8b920b9560b7b0.tar.gz |
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')
-rw-r--r-- | lisp/progmodes/python.el | 3 |
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." (while t (when (not (accept-process-output process timeout)) (throw 'found nil)) - (when (looking-back regexp (point-min)) + (when (looking-back + regexp (car (python-util-comint-last-prompt))) (throw 'found t)))))) (defun python-shell-comint-end-of-output-p (output) |