Show "aborted" when leaving the extent of an unfinished notification
authorChris Hanson <org/chris-hanson/cph>
Sun, 8 Nov 2009 01:06:26 +0000 (17:06 -0800)
committerChris Hanson <org/chris-hanson/cph>
Sun, 8 Nov 2009 01:06:26 +0000 (17:06 -0800)
thunk.

src/runtime/usrint.scm

index 87a20d01e152d168ff1acac3c92ae4abf37318e3..5d0e5f2d37cf69cda030e2c3ea6d7d120e2880bc 100644 (file)
@@ -322,18 +322,17 @@ USA.
             (set! done? #t)
             v))
         (lambda ()
-          (if done?
-              (let ((port (notification-output-port)))
-                (if (if n
-                        (> (output-port/bytes-written port) n)
-                        (output-port/line-start? port))
-                    (begin
-                      (fresh-line port)
-                      (write-notification-prefix port)
-                      (write-string "... " port)))
-                (set! n)
-                (write-string "done" port)
-                (newline port))))))))
+          (let ((port (notification-output-port)))
+            (if (if n
+                    (> (output-port/bytes-written port) n)
+                    (output-port/line-start? port))
+                (begin
+                  (fresh-line port)
+                  (write-notification-prefix port)
+                  (write-string "... " port)))
+            (set! n)
+            (write-string (if done? "done" "aborted") port)
+            (newline port)))))))
 \f
 (define (wrap-notification-port port)
   (make-port wrapped-notification-port-type port))