Skip to content

Commit

Permalink
(py-comint-output-filter-function): Add a pop-to-buffer call so you
Browse files Browse the repository at this point in the history
always get to see the result of e.g. a py-execute-region.  Funny, this
bugged both me /and/ Guido!
  • Loading branch information
warsaw committed Apr 25, 2002
1 parent 56bd2ed commit 13caba3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Misc/python-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -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.
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>>> ")))
Expand Down

0 comments on commit 13caba3

Please sign in to comment.