[slime-cvs] CVS update: slime/swank-loader.lisp

Helmut Eller heller at common-lisp.net
Tue Jan 6 13:10:29 UTC 2004


Update of /project/slime/cvsroot/slime
In directory common-lisp.net:/tmp/cvs-serv26407

Modified Files:
	swank-loader.lisp 
Log Message:
(user-init-file): Use mergepathame.  Fix Windows support.  Patch by
Ignas Mikalajunas <i.mikalajunas at mbt.lt>.

Date: Tue Jan  6 08:10:29 2004
Author: heller

Index: slime/swank-loader.lisp
diff -u slime/swank-loader.lisp:1.11 slime/swank-loader.lisp:1.12
--- slime/swank-loader.lisp:1.11	Fri Jan  2 03:16:46 2004
+++ slime/swank-loader.lisp	Tue Jan  6 08:10:29 2004
@@ -7,7 +7,7 @@
 ;;; This code has been placed in the Public Domain.  All warranties
 ;;; are disclaimed.
 ;;;
-;;;   $Id: swank-loader.lisp,v 1.11 2004/01/02 08:16:46 heller Exp $
+;;;   $Id: swank-loader.lisp,v 1.12 2004/01/06 13:10:29 heller Exp $
 ;;;
 
 (cl:defpackage :swank-loader
@@ -65,12 +65,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)))))))
+  (probe-file
+   (merge-pathnames (user-homedir-pathname)
+                    #-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*





More information about the slime-cvs mailing list