Change `load-edwin-file' to default the directory of the input
authorChris Hanson <org/chris-hanson/cph>
Wed, 5 Apr 1989 18:11:32 +0000 (18:11 +0000)
committerChris Hanson <org/chris-hanson/cph>
Wed, 5 Apr 1989 18:11:32 +0000 (18:11 +0000)
pathname to the library directory.

v7/src/edwin/autold.scm

index 3c4568eb5f1561ea45d0184b3eab026003e0766f..a761036c48b6fb2caa032f81861cf8f63f91f903 100644 (file)
@@ -1,6 +1,6 @@
 ;;; -*-Scheme-*-
 ;;;
-;;;    $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/edwin/autold.scm,v 1.40 1989/03/15 19:08:39 cph Exp $
+;;;    $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/edwin/autold.scm,v 1.41 1989/04/05 18:11:32 cph Exp $
 ;;;
 ;;;    Copyright (c) 1986, 1989 Massachusetts Institute of Technology
 ;;;
 ;;;; Loading
 
 (define (load-edwin-file filename package #!optional purify?)
-  (temporary-message "Loading file \""
-                    (pathname->string (->pathname filename))
-                    "\"")
-  (let ((scode (fasload filename true)))
-    (if (or (default-object? purify?) purify?) (purify scode))
-    (scode-eval scode (->environment package)))
-  (append-message " -- done"))
+  (let ((pathname
+        (merge-pathnames (->pathname filename) edwin-binary-directory)))    (temporary-message "Loading file \"" (pathname->string pathname) "\"")
+    (let ((scode (fasload pathname true)))
+      (if (or (default-object? purify?) purify?) (purify scode))
+      (scode-eval scode (->environment package))))  (append-message " -- done"))
 
 (define-variable "Load File Default"
   "Pathname given as default for \\[Load File]."
-  (merge-pathnames (string->pathname "FOO.BIN.0") edwin-binary-directory))
+  edwin-binary-directory)
 
 (define-command ("Load File" argument)
   "Load an Edwin binary file.
@@ -197,4 +195,4 @@ An argument, if given, means purify the file too."
                           (map (lambda (library)
                                  (cons (symbol->string (car library))
                                        library))
-                               known-libraries))))
\ No newline at end of file
+                               known-libraries))))