Re: Could there be a way to disable LOAD-PREFERENCES?

Gary King <[email protected]> Mon, 25 Feb 2008 23:19:29 -0500
Newsgroups gmane.lisp.cclan.general
Message-ID <[email protected]>
P.S., here is the test I'm using for the change:

;;;; test6.script
> ;;; -*- Lisp -*-
>
> (load "script-support")
> (load "../asdf")
> (in-package #:common-lisp-user)
>
> (defvar *test6* nil)
>
> (exit-on-error
>  (setf asdf:*central-registry* '(*default-pathname-defaults*))
>  (defmethod asdf:preference-file-for-system/operation
>  	   ((system (eql (asdf:find-system 'test1))) operation)
>   (merge-pathnames (make-pathname :name "test1" :type  
> "preferences")))	
>  (asdf:operate 'asdf:load-op 'test1 :load-preferences nil)
>  (assert (null *test6*))
>
>  (print *test6*)
>  (asdf:operate 'asdf:load-op 'test1)
>  (print *test6*)
>  (assert (eq *test6* :yes)))

;;;; test1.preferences
> (in-package #:common-lisp-user)
>
> (setf *test6* :yes)
>


I'll get to the documentation eventually.
--
Gary Warren King, metabang.com
Cell: (413) 559 8738
Fax: (206) 338-4052
gwkkwg on Skype * garethsan on AIM





-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/