mirror of
https://github.com/python/cpython.git
synced 2025-11-03 11:23:31 +00:00
(py-comint-output-filter-function): Add a pop-to-buffer call so you
always get to see the result of e.g. a py-execute-region. Funny, this bugged both me /and/ Guido!
This commit is contained in:
parent
56bd2edeef
commit
13caba30b8
1 changed files with 1 additions and 0 deletions
|
|
@ -1123,6 +1123,7 @@ comint believe the user typed this string so that
|
||||||
"Watch output for Python prompt and exec next file waiting in queue.
|
"Watch output for Python prompt and exec next file waiting in queue.
|
||||||
This function is appropriate for `comint-output-filter-functions'."
|
This function is appropriate for `comint-output-filter-functions'."
|
||||||
;; TBD: this should probably use split-string
|
;; TBD: this should probably use split-string
|
||||||
|
(pop-to-buffer (current-buffer))
|
||||||
(when (and (or (string-equal string ">>> ")
|
(when (and (or (string-equal string ">>> ")
|
||||||
(and (>= (length string) 5)
|
(and (>= (length string) 5)
|
||||||
(string-equal (substring string -5) "\n>>> ")))
|
(string-equal (substring string -5) "\n>>> ")))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue