chiark / gitweb /
dot/lisp-init.lisp: Also squelch `*require-verbose*' on CMU CL.
[profile] / dot / lisp-init.lisp
index 2c5aaa47c06a8101c78cff57cf5e224c08d7e2cd..ba26d224cc2db430be622d14945cd9c7cdd0a2aa 100644 (file)
@@ -1,24 +1,20 @@
+;;; -*-lisp-*-
+
 (cl:defpackage #:mdw-hacks
   (: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)
+(setf *load-verbose* nil
+      *compile-verbose* nil)
+
+#+cmu
+(setf ext:*gc-verbose* nil
+      ext:*require-verbose* nil)
+
+;; Obtain ASDF from somewhere.
+(require "asdf")
 
 ;; Tell SBCL where to find its source source.
 #+sbcl
@@ -38,7 +34,8 @@ (let* ((homestring (or #+sbcl (sb-ext:posix-getenv "HOME")
          ("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
@@ -58,7 +55,9 @@ (defun crank-swank (&rest args)
     (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*)