(cl:defpackage #:mdw-hacks
- (:use #:cl)
- (:export #:crank-swank))
+ (:use #:cl))
(cl:defparameter mdw-hacks::*previous-package* cl:*package*)
(cl:in-package #:mdw-hacks)
-;; Obtain ASDF from somewhere.
-#+sbcl (require :asdf)
-#+clisp (let ((*compile-verbose* nil)
- (*load-verbose* nil))
- (handler-bind ((warning (lambda (cond)
- (declare (ignore cond))
- (muffle-warning))))
- (load "/usr/share/common-lisp/source/cl-asdf/asdf.lisp"
- :verbose nil)
- (funcall (find-symbol "LOAD-SYSTEM" :asdf) :asdf
- :verbose nil)))
-
;; Shut up.
(setf *load-verbose* nil)
(setf *compile-verbose* nil)
-#+cmu (setf *gc-verbose* nil)
+
+#+cmu
+(setf *gc-verbose* nil)
+
+;; Obtain ASDF from somewhere.
+(require "asdf")
;; Tell SBCL where to find its source source.
#+sbcl
("CL:SYSTEMS;**;*.*.*" #p"/usr/share/common-lisp/systems/**/*.*"))))
;; Various fixings.
-#+clisp (setf custom:*parse-namestring-ansi* t)
+#+clisp
+(setf custom:*parse-namestring-ansi* t)
;; Shebang.
(set-dispatch-macro-character
(values (read-line stream))))
;; Start up swank.
+(export 'crank-swank)
(defun crank-swank (&rest args)
(let ((swank (find-package "SWANK")))
(unless swank
(set (find-symbol "*GLOBAL-DEBUGGER*" swank) nil)
(apply (find-symbol "CREATE-SERVER" swank) args)))
-#+asdf (setf asdf:*compile-file-failure-behaviour* :warn)
+;; Treat warnings as, err, warnings.
+#+asdf
+(setf asdf:*compile-file-failure-behaviour* :warn)
;; Done.
(pushnew :mdw *features*)