[slime-cvs] CVS update: slime/swank-loader.lisp
Helmut Eller
heller at common-lisp.net
Thu Nov 27 00:38:08 UTC 2003
Update of /project/slime/cvsroot/slime
In directory common-lisp.net:/tmp/cvs-serv24025
Modified Files:
swank-loader.lisp
Log Message:
*sysdep-pathnames*: Add Lispworks files.
(compile-files-if-needed-serially): Compile all files in a compilation unit.
Date: Wed Nov 26 19:38:08 2003
Author: heller
Index: slime/swank-loader.lisp
diff -u slime/swank-loader.lisp:1.5 slime/swank-loader.lisp:1.6
--- slime/swank-loader.lisp:1.5 Sun Nov 23 00:00:13 2003
+++ slime/swank-loader.lisp Wed Nov 26 19:38:08 2003
@@ -7,7 +7,7 @@
;;; This code has been placed in the Public Domain. All warranties
;;; are disclaimed.
;;;
-;;; $Id: swank-loader.lisp,v 1.5 2003/11/23 05:00:13 lgorrie Exp $
+;;; $Id: swank-loader.lisp,v 1.6 2003/11/27 00:38:08 heller Exp $
;;;
(defpackage :swank-loader
@@ -27,9 +27,11 @@
(defparameter *sysdep-pathnames*
(mapcar #'make-swank-pathname
- #+cmu '("swank-cmucl")
- #+sbcl '("swank-sbcl" "swank-gray")
- #+openmcl '("swank-openmcl" "swank-gray")))
+ #+cmu '("swank-cmucl")
+ #+sbcl '("swank-sbcl" "swank-gray")
+ #+openmcl '("swank-openmcl" "swank-gray")
+ #+lispworks '("swank-lispworks" "swank-gray")
+ ))
(defparameter *swank-pathname* (make-swank-pathname "swank"))
@@ -41,25 +43,26 @@
"Compile each file in FILES if the source is newer than
its corresponding binary, or the file preceding it was
recompiled."
- (let ((needs-recompile nil))
- (dolist (source-pathname files)
- (let ((binary-pathname (compile-file-pathname source-pathname)))
- (handler-case
- (progn
- (when (or needs-recompile
- (not (probe-file binary-pathname))
- (file-newer-p source-pathname binary-pathname))
- (format t "~&;; Compiling ~A...~%" source-pathname)
- (compile-file source-pathname)
- (setq needs-recompile t))
- (load binary-pathname))
- (error ()
- ;; If an error occurs compiling, load the source instead
- ;; so we can try to debug it.
- (load source-pathname)))))))
+ (with-compilation-unit ()
+ (let ((needs-recompile nil))
+ (dolist (source-pathname files)
+ (let ((binary-pathname (compile-file-pathname source-pathname)))
+ (handler-case
+ (progn
+ (when (or needs-recompile
+ (not (probe-file binary-pathname))
+ (file-newer-p source-pathname binary-pathname))
+ (format t "~&;; Compiling ~A...~%" source-pathname)
+ (compile-file source-pathname)
+ (setq needs-recompile t))
+ (load binary-pathname))
+ (error ()
+ ;; If an error occurs compiling, load the source instead
+ ;; so we can try to debug it.
+ (load source-pathname))))))))
(defun user-init-file ()
- "Return a the name of the user init file or nil."
+ "Return the name of the user init file or nil."
(let ((filename (format nil "~A/.swank.lisp"
(namestring (user-homedir-pathname)))))
(cond ((probe-file filename) filename)
More information about the slime-cvs
mailing list