summaryrefslogtreecommitdiffstats
path: root/Misc/python-mode.el
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2002-04-26 15:49:52 (GMT)
committerBarry Warsaw <barry@python.org>2002-04-26 15:49:52 (GMT)
commit17afa13a9fce3cf0c4a0b474d344c0471088849a (patch)
tree5727a2b18c426213aa3fee5a337941403d4da003 /Misc/python-mode.el
parent517c7d4fd366a03ab033e615b9a37a199c98d8a3 (diff)
downloadcpython-17afa13a9fce3cf0c4a0b474d344c0471088849a.zip
cpython-17afa13a9fce3cf0c4a0b474d344c0471088849a.tar.gz
cpython-17afa13a9fce3cf0c4a0b474d344c0471088849a.tar.bz2
(py-comint-output-filter-function): Put the pop-to-buffer call inside
the `when' condition so other non-Python shell comint changes won't cause random buffers to pop.
Diffstat (limited to 'Misc/python-mode.el')
-rw-r--r--Misc/python-mode.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/Misc/python-mode.el b/Misc/python-mode.el
index aed8df4..9e78579 100644
--- a/Misc/python-mode.el
+++ b/Misc/python-mode.el
@@ -1239,11 +1239,11 @@ comint believe the user typed this string so that
"Watch output for Python prompt and exec next file waiting in queue.
This function is appropriate for `comint-output-filter-functions'."
;; TBD: this should probably use split-string
- (pop-to-buffer (current-buffer))
(when (and (or (string-equal string ">>> ")
(and (>= (length string) 5)
(string-equal (substring string -5) "\n>>> ")))
py-file-queue)
+ (pop-to-buffer (current-buffer))
(py-safe (delete-file (car py-file-queue)))
(setq py-file-queue (cdr py-file-queue))
(if py-file-queue