[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [STUMP] package "swank-loader" not found

From: Dirk Sondermann
Subject: Re: [STUMP] package "swank-loader" not found
Date: Thu, 07 Jun 2012 23:52:48 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:10.0.4) Gecko/20120513 Thunderbird/10.0.4

On 06/07/12 12:11, Duncan Bayne wrote:
> Hi All,
> I'm trying to get SWANK to run when StumpWM starts.  But the following
> code in my .stumpwmrc:
> (let ((home (sb-unix::posix-getenv "HOME")))
>   (load (concatenate 'string home "/.emacs.d/slime/swank-loader.lisp"))
>   (swank-loader:init)
>   ;; ...
> ... doesn't work.  SBCL errors out with 'package "swank-loader" not
> found'.  However, when I run the above code from a SBCL REPL, it works
> just fine.
> I'm running SBCL 1.0.54 compiled from source with threading, and
> StumpWM 1:20110819.gitca08e08-2 (i.e., the version that comes with
> Linux Mint 13).
> Does anyone have any suggestions as to what I might be doing wrong?

You just have to make sure that the swank-loader package is created
early enough. Does the following version work?

(eval-when (:compile-toplevel :load-toplevel :execute)
  (let ((home (sb-unix::posix-getenv "HOME")))
    (load (concatenate 'string home "/.emacs.d/slime/swank-loader.lisp"))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]