X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/profile/blobdiff_plain/e623f04118295c92c75eacaed5c50ce72fd108b6..d9667bfae27d67af7495d151124772136afcc293:/dot/lisp-init.lisp diff --git a/dot/lisp-init.lisp b/dot/lisp-init.lisp index 2c5aaa4..24712fe 100644 --- a/dot/lisp-init.lisp +++ b/dot/lisp-init.lisp @@ -3,22 +3,15 @@ (cl:defpackage #:mdw-hacks (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 @@ -38,7 +31,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 +52,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*)