[slime-devel] Patch proposal

Ignas Mikalajunas i.mikalajunas at mbt.lt
Tue Jan 6 09:17:31 UTC 2004


   To solve the portability issues (i am running slime in windows) i
think the following source should be included into the slime
distribution:

--- swank-loader.lisp	2 Jan 2004 08:16:46 -0000	1.11
+++ swank-loader.lisp	5 Jan 2004 13:24:05 -0000
@@ -66,11 +66,10 @@
 (defun user-init-file ()
   "Return the name of the user init file or nil."
   (let ((home (user-homedir-pathname)))
-    (and (probe-file home)
-         (probe-file (format nil 
-                             #-mswindows "~A/.swank.lisp"
-                             #+mswindows "~A\\_swank.lsp"
-                             (namestring (truename home)))))))
+    (when (probe-file home)
+      (probe-file (merge-pathnames (truename home) 
+                                   #-mswindows (make-pathname :name ".swank" :type "lisp")
+                                   #+mswindows (make-pathname :name "_swank" :type "lsp"))))))
 
 (compile-files-if-needed-serially
  (list* (make-swank-pathname "swank-backend") *swank-pathname*

I am not sure whether the part with #-mswindows and #+mswindows is
necessary windows at least win2K handles the .swank.lisp without any
problems at all.

  The old version of this function was not working in windows anyway ;)
i had to remove the "\\".
  Ignas Mikalajunas





More information about the slime-devel mailing list