[slime-devel] Setting FASL directory

David Neu david at davidneu.com
Thu Aug 13 14:56:01 UTC 2009


Hi,

I'd like to be able to set the location of the *.fasl files that are
ending up in ~/.slime/fasl/..., preferably from my .emacs.

I tried setting slime-compile-file-options in my .emacs file as follows
  (eval-after-load "slime"
    '(progn
       (setq slime-compile-file-options (append '(:fasl-directory
"/tmp/") slime-compile-file-options))
       ...))
but that didn't seem to do it.

Then I tried to put the following in my ~/.swank.lisp file
(setf swank:*fasl-pathname-function*
      (lambda (input-file options)
	(declare (ignore options))
	(let* ((str "/tmp/")
	       (dir (filename-to-pathname str)))
	  (assert (char= (aref str (1- (length str))) #\/))
	  (compile-file-pathname input-file :output-file dir))))
but that didn't seem to do it.

Many thanks for any suggestions!

Cheers,
David




More information about the slime-devel mailing list