diff Misc/python-mode.el @ 9144:520583bdf0b0 legacy-trunk

(py-comint-output-filter-function): Horrible kludgearound for making the de-queing of exec files work for NT XEmacs 21.0.
author Barry Warsaw <barry@python.org>
date Fri, 25 Sep 1998 19:40:10 +0000
parents 98dc675d0913
children e5996279f58c
line wrap: on
line diff
--- a/Misc/python-mode.el	Fri Sep 25 14:11:46 1998 +0000
+++ b/Misc/python-mode.el	Fri Sep 25 19:40:10 1998 +0000
@@ -1053,7 +1053,10 @@
 (defun py-comint-output-filter-function (string)
   "Watch output for Python prompt and exec next file waiting in queue.
 This function is appropriate for `comint-output-filter-functions'."
-  (when (and (string-equal ">>> " string)
+  (when (and (or (string-equal string ">>> ")
+		 ;; NT XEmacs 21.0 kludge
+		 (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))