Updates to make sure that Edwin can be compiled by previous snapshot.
authorChris Hanson <org/chris-hanson/cph>
Mon, 5 Feb 2007 18:26:38 +0000 (18:26 +0000)
committerChris Hanson <org/chris-hanson/cph>
Mon, 5 Feb 2007 18:26:38 +0000 (18:26 +0000)
v7/src/edwin/decls.scm
v7/src/edwin/edwin.sf

index 2e576170ced61ee18cc2845f1ccf542efa2f4e3f..1de7c4ca4b6dd8665822357c66d8e6fb8e185ae0 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Id: decls.scm,v 1.80 2007/01/05 21:19:23 cph Exp $
+$Id: decls.scm,v 1.81 2007/02/05 18:26:37 cph Exp $
 
 Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994,
     1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
@@ -53,15 +53,27 @@ USA.
                                   true))))))))
              (if (not (null? reasons))
                  (begin
-                   (write-notification-line
-                    (lambda (port)
-                      (write-string "Processing " port)
-                      (write source port)
-                      (write-string " because of:" port)
-                      (for-each (lambda (reason)
-                                  (write-char #\space port)
-                                  (write reason port))
-                                reasons)))
+                   (if (environment-bound? system-global-environment
+                                           'write-notification-line)
+                       (write-notification-line
+                        (lambda (port)
+                          (write-string "Processing " port)
+                          (write source port)
+                          (write-string " because of:" port)
+                          (for-each (lambda (reason)
+                                      (write-char #\space port)
+                                      (write reason port))
+                                    reasons)))
+                       (begin
+                         (fresh-line)
+                         (write-string "Processing ")
+                         (write source)
+                         (write-string " because of:")
+                         (for-each (lambda (reason)
+                                     (write-char #\space)
+                                     (write reason))
+                                   reasons)
+                         (newline)))
                    (fluid-let ((sf/default-syntax-table environment)
                                (sf/default-declarations
                                 (map (lambda (dependency)
index 461bf0ed98d1ea6cd496db6ef0a372d54bab5fab..aca3fffc5027e2b257735b5f7ca5d98d5afab8fd 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Id: edwin.sf,v 1.36 2007/01/05 21:19:23 cph Exp $
+$Id: edwin.sf,v 1.37 2007/02/05 18:26:38 cph Exp $
 
 Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994,
     1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
@@ -52,13 +52,22 @@ USA.
 
 (let ((read-class-definitions
        (lambda (filename)
-        (with-notification
-            (lambda (port)
-              (write-string "Pre-loading class definitions from " port)
-              (write filename port))
-          (lambda ()
-            (syntax* (read-file (string-append filename ".scm"))
-                     (->environment '(EDWIN WINDOW))))))))
+        (if (environment-bound? system-global-environment 'with-notification)
+            (with-notification
+                (lambda (port)
+                  (write-string "Pre-loading class definitions from " port)
+                  (write filename port))
+              (lambda ()
+                (syntax* (read-file (string-append filename ".scm"))
+                         (->environment '(EDWIN WINDOW)))))
+            (begin
+              (fresh-line)
+              (write-string "Pre-loading class definitions from ")
+              (write filename)
+              (syntax* (read-file (string-append filename ".scm"))
+                       (->environment '(EDWIN WINDOW)))
+              (write-string " -- done")
+              (newline))))))
   (read-class-definitions "window")
   (read-class-definitions "utlwin")
   (read-class-definitions "modwin")