Mailing List Archive

python/dist/src/Misc python-mode.el,4.18,4.19
Update of /cvsroot/python/python/dist/src/Misc
In directory usw-pr-cvs1:/tmp/cvs-serv28450

Modified Files:
python-mode.el
Log Message:
(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.


Index: python-mode.el
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/python-mode.el,v
retrieving revision 4.18
retrieving revision 4.19
diff -C2 -d -r4.18 -r4.19
*** python-mode.el 25 Apr 2002 21:46:33 -0000 4.18
--- python-mode.el 26 Apr 2002 15:49:52 -0000 4.19
***************
*** 1240,1248 ****
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)
(py-safe (delete-file (car py-file-queue)))
(setq py-file-queue (cdr py-file-queue))
--- 1240,1248 ----
This function is appropriate for `comint-output-filter-functions'."
;; TBD: this should probably use split-string
(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))