]> granicus.if.org Git - python/commitdiff
(py-comint-output-filter-function): Horrible kludgearound for making
authorBarry Warsaw <barry@python.org>
Fri, 25 Sep 1998 19:40:10 +0000 (19:40 +0000)
committerBarry Warsaw <barry@python.org>
Fri, 25 Sep 1998 19:40:10 +0000 (19:40 +0000)
the de-queing of exec files work for NT XEmacs 21.0.

Misc/python-mode.el

index 96da5de7e8ffbd4d002947902b418f514ab3dee1..e96e671641c9dbba5977f35891f629578c258b02 100644 (file)
@@ -1053,7 +1053,10 @@ comint believe the user typed this string so that
 (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))