emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master e35bf57: python.el: better limit for looking-back c


From: Fabián Ezequiel Gallina
Subject: [Emacs-diffs] master e35bf57: python.el: better limit for looking-back calls
Date: Mon, 11 May 2015 03:03:49 +0000

branch: master
commit e35bf5727153bdc8be7178504a8b920b9560b7b0
Author: Fabián Ezequiel Gallina <address@hidden>
Commit: Fabián Ezequiel Gallina <address@hidden>

    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.
---
 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 2e7410a..4b0a028 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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]