From: Barry Warsaw Date: Thu, 25 Apr 2002 16:26:38 +0000 (+0000) Subject: (py-comint-output-filter-function): Add a pop-to-buffer call so you X-Git-Tag: v2.3c1~5798 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=13caba30b80bdd13e3c702ede6fa4df1d2b1d988;p=thirdparty%2FPython%2Fcpython.git (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! --- diff --git a/Misc/python-mode.el b/Misc/python-mode.el index 4cfcc899f580..f8b05f57bb8a 100644 --- a/Misc/python-mode.el +++ b/Misc/python-mode.el @@ -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>>> ")))