]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
(py-comint-output-filter-function): Add a pop-to-buffer call so you
authorBarry Warsaw <barry@python.org>
Thu, 25 Apr 2002 16:26:38 +0000 (16:26 +0000)
committerBarry Warsaw <barry@python.org>
Thu, 25 Apr 2002 16:26:38 +0000 (16:26 +0000)
always get to see the result of e.g. a py-execute-region.  Funny, this
bugged both me /and/ Guido!

Misc/python-mode.el

index 4cfcc899f580e12e7f0d49ba7cc186bb650a5ac9..f8b05f57bb8a86d525676805dec2085e85c2b41d 100644 (file)
@@ -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>>> ")))