START-NOTIFIER modified per CPH's request.
authorBrian A. LaMacchia <edu/mit/csail/zurich/bal>
Tue, 18 Feb 1992 03:25:07 +0000 (03:25 +0000)
committerBrian A. LaMacchia <edu/mit/csail/zurich/bal>
Tue, 18 Feb 1992 03:25:07 +0000 (03:25 +0000)
v7/src/edwin/notify.scm

index 7a48af9fa2ce97596588794890eaa7d39dff9c99..561bcd0e1e8834b58bc0f782b848c35471e3f6f0 100644 (file)
@@ -1,6 +1,6 @@
 ;;; -*-Scheme-*-
 ;;;
-;;;    $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/edwin/notify.scm,v 1.2 1992/02/17 22:10:28 bal Exp $
+;;;    $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/edwin/notify.scm,v 1.3 1992/02/18 03:25:07 bal Exp $
 ;;;
 ;;;    Copyright (c) 1992 Massachusetts Institute of Technology
 ;;;
 
 (define (start-notifier notifier)
   (if current-notifier-thread
-      (signal-thread-event
-       current-notifier-thread
-       (lambda () (exit-current-thread false))))
-  (call-with-current-continuation
-   (lambda (continuation)
-     (let ((thread (create-thread continuation notifier)))
-       (set! current-notifier-thread thread)
-       thread))))
+      (signal-thread-event current-notifier-thread
+                          (lambda () (exit-current-thread false))))
+  (let ((thread (create-thread editor-thread-root-continuation notifier)))
+    (set! current-notifier-thread thread)
+    thread))
 
 (define (mail-notify)
   (install-mail-notify-hook! false)
        (get-load-average-string)
        (if (check-for-mail)
           mail-present-string
-          mail-not-present-string))))))
\ No newline at end of file
+          mail-not-present-string))))))