Replace occurrences of `*the-non-printing-object*' with `unspecific'.
authorChris Hanson <org/chris-hanson/cph>
Fri, 5 Aug 1988 20:49:51 +0000 (20:49 +0000)
committerChris Hanson <org/chris-hanson/cph>
Fri, 5 Aug 1988 20:49:51 +0000 (20:49 +0000)
Flush randomness dealing with old `error' macro, specifically because
it referred to `*the-non-printing-object*'.

24 files changed:
v7/src/runtime/advice.scm
v7/src/runtime/dbgcmd.scm
v7/src/runtime/error.scm
v7/src/runtime/format.scm
v7/src/runtime/gcnote.scm
v7/src/runtime/global.scm
v7/src/runtime/infutl.scm
v7/src/runtime/list.scm
v7/src/runtime/load.scm
v7/src/runtime/output.scm
v7/src/runtime/packag.scm
v7/src/runtime/parse.scm
v7/src/runtime/pp.scm
v7/src/runtime/rep.scm
v7/src/runtime/savres.scm
v7/src/runtime/sfile.scm
v7/src/runtime/syntax.scm
v7/src/runtime/system.scm
v7/src/runtime/uerror.scm
v7/src/runtime/unsyn.scm
v7/src/runtime/where.scm
v8/src/runtime/global.scm
v8/src/runtime/infutl.scm
v8/src/runtime/load.scm

index 1e93e0aa0407befb61650a6aae8023de68abfc31..93efc1e710eb263b62940e00451c38b52b506369 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/advice.scm,v 14.1 1988/06/13 11:38:43 cph Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/advice.scm,v 14.2 1988/08/05 20:46:42 cph Exp $
 
 Copyright (c) 1988 Massachusetts Institute of Technology
 
@@ -418,7 +418,7 @@ MIT in each case. |#
 
 (define ((wrap-general-advisor advisor) procedure advice . path)
   (advisor (find-internal-lambda procedure path) advice)
-  *the-non-printing-object*)
+  unspecific)
 
 (define advise-entry)
 (define advise-exit)
@@ -428,7 +428,7 @@ MIT in each case. |#
       (map-over-population unadvisor)
       (unadvisor (find-internal-lambda (car procedure&path)
                                       (cdr procedure&path))))
-  *the-non-printing-object*)
+  unspecific)
 
 (define wrap-entry-unadvisor)
 (define wrap-exit-unadvisor)
@@ -445,7 +445,7 @@ MIT in each case. |#
 
 (define ((wrap-advisor advisor) procedure . path)
   (advisor (find-internal-lambda procedure path))
-  *the-non-printing-object*)
+  unspecific)
 
 (define trace-entry)
 (define trace-exit)
index 7f36da71ea518b0470f5238ebe39e16331c7d27d..40efcc6a934c0a4bd5f6835a5a986d0d3622d046 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/dbgcmd.scm,v 14.2 1988/06/13 11:43:06 cph Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/dbgcmd.scm,v 14.3 1988/08/05 20:46:52 cph Exp $
 
 Copyright (c) 1988 Massachusetts Institute of Technology
 
@@ -94,7 +94,7 @@ MIT in each case. |#
              (write-string "   ")
              (write-string (caddr entry)))
            (cdr command-set))
-  *the-non-printing-object*)
+  unspecific)
 
 (define (standard-exit-command)  (proceed))
 \f
index 7157632b98546a9eb0c5920367f580a867105e83..708a046346c89c27f7e5fc08a5a06ea14509d1f8 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/error.scm,v 14.4 1988/07/14 07:40:00 cph Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/error.scm,v 14.5 1988/08/05 20:47:00 cph Exp $
 
 Copyright (c) 1988 Massachusetts Institute of Technology
 
@@ -65,15 +65,7 @@ MIT in each case. |#
 (define (error-procedure-handler message irritants environment)
   (with-proceed-point proceed-value-filter
     (lambda ()
-      (simple-error
-       environment
-       message
-       ;; Kludge to support minimal upwards compatibility with `error'
-       ;; forms syntaxed by older syntaxer.  Should be flushed after
-       ;; new runtime system has been in use for a while.
-       (cond ((eq? irritants *the-non-printing-object*) '())
-            ((or (null? irritants) (pair? irritants)) irritants)
-            (else (list irritants)))))))
+      (simple-error environment message irritants))))
 
 (define (error-from-compiled-code message . irritants)
   (with-proceed-point proceed-value-filter
@@ -89,7 +81,7 @@ MIT in each case. |#
              (continuation/first-subproblem continuation))))
     (if next-subproblem
        ((stack-frame->continuation next-subproblem) (car values))
-       (continuation *the-non-printing-object*))))
+       (continuation unspecific))))
 \f
 (define (simple-error environment message irritants)
   (signal-error
index 1f4e6867df4f322d1bc4b984b6b9b68a9686a73f..10bfdab381553b9b3ac39cca49d409de567efa4f 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/format.scm,v 14.3 1988/07/07 15:45:54 cph Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/format.scm,v 14.4 1988/08/05 20:47:10 cph Rel $
 
 Copyright (c) 1988 Massachusetts Institute of Technology
 
@@ -68,7 +68,7 @@ MIT in each case. |#
         (lambda (port)
           (format-loop port format-string arguments)
           (output-port/flush-output port)
-          *the-non-printing-object*)))
+          unspecific)))
     (cond ((not destination)
           (with-output-to-string (lambda () (start (current-output-port)))))
          ((eq? destination true)
index dc3f2dd1f6bba20348c6b687108ddca7982fde90..b4433283faabe3267e191c750b2ccb7ae41fa07a 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/gcnote.scm,v 14.2 1988/06/13 11:45:12 cph Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/gcnote.scm,v 14.3 1988/08/05 20:47:17 cph Rel $
 
 Copyright (c) 1988 Massachusetts Institute of Technology
 
@@ -43,8 +43,7 @@ MIT in each case. |#
          (cond ((eq? current gc-notification) default/record-statistic!)
                ((eq? current default/record-statistic!) gc-notification)
                (else (error "Can't grab GC statistics hook")))))
-  *the-non-printing-object*)
-
+  unspecific)
 (define (gc-notification statistic)
   (with-output-to-port (cmdl/output-port (nearest-cmdl))
     (lambda ()
index 75dbbe5c6a80273493e00aea784b5341533b9086..355019d8086157c7c2d1edea822518f4aaf88b3e 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/global.scm,v 14.4 1988/08/05 20:15:45 cph Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/global.scm,v 14.5 1988/08/05 20:47:24 cph Exp $
 
 Copyright (c) 1988 Massachusetts Institute of Technology
 
@@ -176,7 +176,7 @@ MIT in each case. |#
 
 (define (quit)
   (with-absolutely-no-interrupts (ucode-primitive halt))
-  *the-non-printing-object*)
+  unspecific)
 
 (define syntaxer/default-environment
   (let () (the-environment)))
index 6fb4b128c3c7af66db519034875d9189876814ae..01820ce3f20e86236b195e775ecb0231148339e9 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/infutl.scm,v 1.2 1988/06/16 06:31:04 cph Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/infutl.scm,v 1.3 1988/08/05 20:47:32 cph Exp $
 
 Copyright (c) 1988 Massachusetts Institute of Technology
 
@@ -370,7 +370,7 @@ MIT in each case. |#
          (procedure (vector-ref vector index))
          (if (< index high)
              (loop (1+ index))))))
-    (lambda () *the-non-printing-object*)))
+    (lambda () unspecific)))
 \f
 (define (vector-binary-search-range vector key key=? compare if-found
                                    if-not-found)
index cfcb8e8f671cbafb5b0c2b3dddbd90a7a4c44192..096c848ed69ae6ec2b5934cc159d94fe91bfdb57 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/list.scm,v 14.1 1988/06/13 11:47:11 cph Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/list.scm,v 14.2 1988/08/05 20:47:45 cph Exp $
 
 Copyright (c) 1988 Massachusetts Institute of Technology
 
@@ -345,7 +345,7 @@ MIT in each case. |#
                                         (cons (cdr (car lists)) cdrs)))))
                ((not (null? (car lists)))
                 (error "FOR-EACH: Argument not a list" (car lists)))))))
-  *the-non-printing-object*)
+  unspecific)
 
 (define (mapcan f . lists)
   ;; Compiler doesn't, but ought to, make this very fast.
index 94820fbf9d4cfcd0b43e24ed3e8a01ff37faa8fd..713aad527975c47139f81dd108580373eb62faaa 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/load.scm,v 14.3 1988/07/14 07:40:16 cph Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/load.scm,v 14.4 1988/08/05 20:47:59 cph Exp $
 
 Copyright (c) 1988 Massachusetts Institute of Technology
 
@@ -80,7 +80,7 @@ MIT in each case. |#
   (let ((truename (init-file-truename)))
     (if truename
        (load truename user-initial-environment)))
-  *the-non-printing-object*)
+  unspecific)
 \f
 ;;; This is careful to do the minimum number of file existence probes
 ;;; before opening the input file.
@@ -185,4 +185,4 @@ MIT in each case. |#
        (if (stream-pair? stream)
            (begin (write value)
                   (loop (stream-car stream) (stream-cdr stream)))          value))
-      *the-non-printing-object*))
\ No newline at end of file
+      unspecific))
\ No newline at end of file
index 4feb28fba65d499b332f5bab54694d4f3e394b8d..e617bdda0eb353161c7dc8f9213e94c6644c9dca 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/output.scm,v 14.2 1988/07/14 07:40:24 cph Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/output.scm,v 14.3 1988/08/05 20:48:08 cph Exp $
 
 Copyright (c) 1988 Massachusetts Institute of Technology
 
@@ -172,7 +172,7 @@ MIT in each case. |#
             (guarantee-output-port port))))
     (output-port/write-char port #\Newline)
     (output-port/flush-output port))
-  *the-non-printing-object*)
+  unspecific)
 
 (define (write-char char #!optional port)
   (let ((port
@@ -181,7 +181,7 @@ MIT in each case. |#
             (guarantee-output-port port))))
     (output-port/write-char port char)
     (output-port/flush-output port))
-  *the-non-printing-object*)
+  unspecific)
 
 (define (write-string string #!optional port)
   (let ((port
@@ -190,13 +190,13 @@ MIT in each case. |#
             (guarantee-output-port port))))
     (output-port/write-string port string)
     (output-port/flush-output port))
-  *the-non-printing-object*)
+  unspecific)
 
 (define (close-output-port port)
   (let ((operation (output-port/custom-operation port 'CLOSE)))
     (if operation
        (operation port)))
-  *the-non-printing-object*)
+  unspecific)
 
 (define (wrap-custom-operation-0 operation-name)
   (lambda (#!optional port)
@@ -209,7 +209,7 @@ MIT in each case. |#
            (begin
              (operation port)
              (output-port/flush-output port)))))
-    *the-non-printing-object*))
+    unspecific))
 
 (define beep)
 (define clear)
@@ -227,7 +227,7 @@ MIT in each case. |#
        (output-port/write-string port object)
        (unparse-object/internal object port 0 false unparser-table))
     (output-port/flush-output port))
-  *the-non-printing-object*)
+  unspecific)
 
 (define (write object #!optional port unparser-table)
   (let ((port
@@ -240,7 +240,7 @@ MIT in each case. |#
             (guarantee-unparser-table unparser-table))))
     (unparse-object/internal object port 0 true unparser-table)
     (output-port/flush-output port))
-  *the-non-printing-object*)
+  unspecific)
 
 (define (write-line object #!optional port unparser-table)
   (let ((port
@@ -254,4 +254,4 @@ MIT in each case. |#
     (output-port/write-char port #\Newline)
     (unparse-object/internal object port 0 true unparser-table)
     (output-port/flush-output port))
-  *the-non-printing-object*)
\ No newline at end of file
+  unspecific)
\ No newline at end of file
index d423d4b53c16c2235742dc40b50ca1da3950518c..e429e90f1ca9237718e882eb2072118c883a3de6 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/packag.scm,v 14.3 1988/07/14 07:40:31 cph Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/packag.scm,v 14.4 1988/08/05 20:48:18 cph Exp $
 
 Copyright (c) 1988 Massachusetts Institute of Technology
 
@@ -106,8 +106,7 @@ MIT in each case. |#
             (lambda (filename environment)
               (load filename environment syntax-table true)))
           options)))))
-  *the-non-printing-object*)
-
+  unspecific)
 (define-integrable (package/reference package name)
   (lexical-reference (package/environment package) name))
 
index 6f083605308ef82725a3cca0a9e791150f303d86..c8cab44a1b34cebf9b728e0975de18c83372b810 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/parse.scm,v 14.3 1988/07/15 22:31:58 cph Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/parse.scm,v 14.4 1988/08/05 20:48:25 cph Exp $
 
 Copyright (c) 1988 Massachusetts Institute of Technology
 
@@ -206,8 +206,10 @@ MIT in each case. |#
   (parse-error "end of file"))
 
 (define (parse-error message #!optional irritant)
-  (error (string-append "PARSE-OBJECT: " message)
-        (if (default-object? irritant) *the-non-printing-object* irritant)))
+  (let ((message (string-append "PARSE-OBJECT: " message)))
+    (if (default-object? irritant)
+       (error message)
+       (error message irritant))))
 \f
 ;;;; Dispatch Points
 
index 0f87f8d409197400c2c8b78c479902a4923f2ea8..572f1a079d5ebcb8b60d9e1aafca2554ba92f112 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/pp.scm,v 14.2 1988/08/05 19:44:30 cph Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/pp.scm,v 14.3 1988/08/05 20:48:37 cph Exp $
 
 Copyright (c) 1988 Massachusetts Institute of Technology
 
@@ -83,7 +83,7 @@ MIT in each case. |#
                     (named-structure/description object)))
          (else
           (pp-top-level port object as-code?))))
-  *the-non-printing-object*)
+  unspecific)
 
 (define (pp-top-level port expression as-code?)
   (fluid-let
index 24cb5a822cbfceee8b70a655c59bf15cb0297c46..77cce9478d834f3092a51dd7d30fb066e81a7703 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/rep.scm,v 14.5 1988/08/01 23:09:21 cph Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/rep.scm,v 14.6 1988/08/05 20:48:47 cph Exp $
 
 Copyright (c) 1988 Massachusetts Institute of Technology
 
@@ -242,7 +242,7 @@ MIT in each case. |#
 (define (standard-value-filter continuation arguments)
   (continuation
    (if (null? arguments)
-       *the-non-printing-object*
+       unspecific
        (car arguments))))
 \f
 ;;;; REP Loops
@@ -469,12 +469,12 @@ MIT in each case. |#
   (guarantee-syntax-table syntax-table)
   (set! user-repl-syntax-table syntax-table)
   (set-repl-state/syntax-table! (cmdl/state (nearest-repl)) syntax-table)
-  *the-non-printing-object*)
+  unspecific)
 
 (define (vst syntax-table)
   (guarantee-syntax-table syntax-table)
   (set-repl-state/syntax-table! (cmdl/state (nearest-repl)) syntax-table)
-  *the-non-printing-object*)
+  unspecific)
 
 (define (re #!optional index)
   (let ((repl (nearest-repl)))
index 03be208bd0b50cce17b860a638a82b11c606ee8e..c249a93958450a6c8e2fcac65d5b723248b2caaf 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/savres.scm,v 14.2 1988/06/13 11:50:50 cph Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/savres.scm,v 14.3 1988/08/05 20:48:56 cph Exp $
 
 Copyright (c) 1988 Massachusetts Institute of Technology
 
@@ -65,7 +65,7 @@ MIT in each case. |#
       (save-image filename
                  (lambda ()
                    (set! time-world-saved time)
-                   *the-non-printing-object*)
+                   unspecific)
                  (lambda ()
                    (set! time-world-saved time)
                    (event-distributor/invoke! event:after-restore)
index e654bb83e848259a8be2c50660493396cb70d2e9..72ec44ea534c5b55dffd1874d0a62a256dc159aa 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/sfile.scm,v 14.1 1988/06/13 11:51:34 cph Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/sfile.scm,v 14.2 1988/08/05 20:49:04 cph Exp $
 
 Copyright (c) 1988 Massachusetts Institute of Technology
 
@@ -52,9 +52,9 @@ MIT in each case. |#
   (if (not ((ucode-primitive photo-open)
            (canonicalize-output-filename filename)))
       (error "TRANSCRIPT-ON: Transcript file already open" filename))
-  *the-non-printing-object*)
+  unspecific)
 
 (define (transcript-off)
   (if (not ((ucode-primitive photo-close)))
       (error "TRANSCRIPT-OFF: Transcript file already closed"))
-  *the-non-printing-object*)
\ No newline at end of file
+  unspecific)
\ No newline at end of file
index c1de76193126dbac5fcc8109e21f45559d20b095..c4d5b6fa2a178958d0b66a087b8900a24d9a8411 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/Attic/syntax.scm,v 14.4 1988/07/16 10:14:30 cph Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/Attic/syntax.scm,v 14.5 1988/08/05 20:49:14 cph Exp $
 
 Copyright (c) 1988 Massachusetts Institute of Technology
 
@@ -166,15 +166,16 @@ MIT in each case. |#
     (apply transform (cdr expression))))
 
 (define (syntax-error message . irritants)
-  (error (string-append "SYNTAX: "
-                       (if *current-keyword*
-                           (string-append (symbol->string *current-keyword*)
-                                          ": "
-                                          message)
-                           message))
-        (cond ((null? irritants) *the-non-printing-object*)
-              ((null? (cdr irritants)) (car irritants))
-              (else irritants))))
+  (error-procedure
+   (string-append "SYNTAX: "
+                 (if *current-keyword*
+                     (string-append (symbol->string *current-keyword*)
+                                    ": "
+                                    message)
+                     message))
+   irritants
+   ;; This is not really the right environment.  Perhaps nothing is.
+   syntaxer/default-environment))
 
 (define (syntax-expressions expressions)
   (if (null? expressions)
index 71edd83da755925c8c5564ed6c317b73c5bb381a..87de2cc27943f5855a16ef3d41503edf0e66e071 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/system.scm,v 14.3 1988/06/30 22:22:23 cph Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/system.scm,v 14.4 1988/08/05 20:49:26 cph Exp $
 
 Copyright (c) 1988 Massachusetts Institute of Technology
 
@@ -55,7 +55,7 @@ MIT in each case. |#
 
 (define (add-system! system)
   (set! known-systems (append! known-systems (list system)))
-  *the-non-printing-object*)
+  unspecific)
 
 (define (for-each-system! procedure)
   (for-each procedure known-systems))
@@ -106,7 +106,7 @@ MIT in each case. |#
     (newline)
     (write-string "Done"))
   (add-system! system)
-  *the-non-printing-object*)
+  unspecific)
 
 (define (split-list list n receiver)
   (if (or (not (pair? list)) (zero? n))
index b0deb974d970e0d80832ffa90bcfaf793073370b..e4a43399e62c2b9ce14f7139755918a5e4593b80 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/uerror.scm,v 14.3 1988/07/22 22:53:14 cph Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/uerror.scm,v 14.4 1988/08/05 20:49:33 cph Exp $
 
 Copyright (c) 1988 Massachusetts Institute of Technology
 
@@ -385,7 +385,7 @@ MIT in each case. |#
                                          (cons frame-filter handler)))))
                (else
                 (error "Can't overwrite error handler" entry)))))
-      *the-non-printing-object*)
+      unspecific)
 
     (define (define-standard-frame-handler error-type frame-type frame-filter
              irritant)
index b509f8127c925917dd99c94cd6dff6925817bc05..8f39dcb7edec19be7c2746926327ae21ea052a3a 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/unsyn.scm,v 14.2 1988/06/14 14:45:31 cph Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/unsyn.scm,v 14.3 1988/08/05 20:49:43 cph Rel $
 
 Copyright (c) 1988 Massachusetts Institute of Technology
 
@@ -76,13 +76,10 @@ MIT in each case. |#
            (unsyntax-objects (cdr objects)))))
 
 (define (unsyntax-error keyword message . irritants)
-  (error (string-append "UNSYNTAX: "
-                       (symbol->string keyword)
-                       ": "
-                       message)
-        (cond ((null? irritants) *the-non-printing-object*)
-              ((null? (cdr irritants)) (car irritants))
-              (else irritants))))
+  (error-procedure
+   (string-append "UNSYNTAX: " (symbol->string keyword) ": " message)
+   irritants
+   system-global-environment))
 \f
 ;;;; Unsyntax Quanta
 
@@ -319,17 +316,23 @@ MIT in each case. |#
 (define (unsyntax-error-like-form operands name)
   (cons* name
         (unsyntax-object (first operands))
-        (let ((operand (second operands)))
-          (cond ((absolute-reference-to? operand '*THE-NON-PRINTING-OBJECT*)
-                 '())
-                ((combination? operand)
-                 (combination-components operand
-                   (lambda (operator operands)
-                     (if (absolute-reference-to? operator 'LIST)
-                         (unsyntax-objects operands)
-                         `(,(unsyntax-object operand))))))
-                (else
-                 `(,(unsyntax-object operand)))))))
+        (unsyntax-objects
+         (let loop ((irritants (cadr operands)))
+           (cond ((null? irritants) '())
+                 ((and (combination? irritants)
+                       (absolute-reference-to?
+                        (combination-operator irritants)
+                        'LIST))
+                  (combination-operands irritants))
+                 ((and (combination? irritants)
+                       (eq? (combination-operator irritants) cons))
+                  (let ((operands (combination-operands irritants)))
+                    (cons (car operands)
+                          (loop (cadr operands)))))
+                 (else
+                  ;; Actually, this is an error.  But do something useful
+                  ;; here just in case it actually happens.
+                  (list irritants)))))))
 \f
 (define (unsyntax/fluid-let names values body if-malformed)
   (combination-components body
index e4a87b669b02f49a2cf529bd5dd63062ac853702..407a1c3853d7d066fb47f16520ccef8588e832f4 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/where.scm,v 14.3 1988/08/01 23:09:58 cph Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/where.scm,v 14.4 1988/08/05 20:49:51 cph Exp $
 
 Copyright (c) 1988 Massachusetts Institute of Technology
 
@@ -93,7 +93,7 @@ MIT in each case. |#
        (begin (show-frame env depth)
               (if (environment-has-parent? env)
                   (s1 (environment-parent env) (1+ depth))))))
-  *the-non-printing-object*)
+  unspecific)
 
 ;;;; Motion Commands
 
index e7cbdad1603c6103436993e671b9d4b38c7e7939..e041c4203e3f7f2b14b71526a8df7854dce9fef9 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v8/src/runtime/global.scm,v 14.4 1988/08/05 20:15:45 cph Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v8/src/runtime/global.scm,v 14.5 1988/08/05 20:47:24 cph Exp $
 
 Copyright (c) 1988 Massachusetts Institute of Technology
 
@@ -176,7 +176,7 @@ MIT in each case. |#
 
 (define (quit)
   (with-absolutely-no-interrupts (ucode-primitive halt))
-  *the-non-printing-object*)
+  unspecific)
 
 (define syntaxer/default-environment
   (let () (the-environment)))
index a8a700dee61aa7e92d8d92406230baa9405ca41b..da5deddfa2d7c25f54471ab843f9e68027aa9e56 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v8/src/runtime/infutl.scm,v 1.2 1988/06/16 06:31:04 cph Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v8/src/runtime/infutl.scm,v 1.3 1988/08/05 20:47:32 cph Exp $
 
 Copyright (c) 1988 Massachusetts Institute of Technology
 
@@ -370,7 +370,7 @@ MIT in each case. |#
          (procedure (vector-ref vector index))
          (if (< index high)
              (loop (1+ index))))))
-    (lambda () *the-non-printing-object*)))
+    (lambda () unspecific)))
 \f
 (define (vector-binary-search-range vector key key=? compare if-found
                                    if-not-found)
index 21cddeddb45d36a173384bf5db9c6eb6c120be09..0cd85c80686f46dbe81fc21e1853f428270a78c1 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v8/src/runtime/load.scm,v 14.3 1988/07/14 07:40:16 cph Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v8/src/runtime/load.scm,v 14.4 1988/08/05 20:47:59 cph Exp $
 
 Copyright (c) 1988 Massachusetts Institute of Technology
 
@@ -80,7 +80,7 @@ MIT in each case. |#
   (let ((truename (init-file-truename)))
     (if truename
        (load truename user-initial-environment)))
-  *the-non-printing-object*)
+  unspecific)
 \f
 ;;; This is careful to do the minimum number of file existence probes
 ;;; before opening the input file.
@@ -185,4 +185,4 @@ MIT in each case. |#
        (if (stream-pair? stream)
            (begin (write value)
                   (loop (stream-car stream) (stream-cdr stream)))          value))
-      *the-non-printing-object*))
\ No newline at end of file
+      unspecific))
\ No newline at end of file