Skip to content

Commit

Permalink
previous method did not work, as emacs (getenv "HOME") returned somet…
Browse files Browse the repository at this point in the history
…hing different on emacs startup than when evaluating elisp manually. Now calculates the full windows path, including drive letter, and just issues the right elisp LOAD call.
  • Loading branch information
ryepup committed Oct 10, 2010
1 parent 381ef27 commit ddfbf8c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion slime-helper.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,12 @@
;; windows emacs can map ~ all over the place, see
;; http://www.gnu.org/software/emacs/windows/big.html#index-HOME-directory-49
;; emit elisp so emacs calculates the right path to slime-helper.el based on where it thinks ~ is
(format t " (load (expand-file-name (file-relative-name ~S (getenv \"HOME\"))))~%" (namestring target)))
(format t " (load ~S)~%"
(concatenate 'string
#-lispworks (pathname-device (user-homedir-pathname))
#+lispworks (pathname-host (user-homedir-pathname))
":"
(namestring target))))
#-win32
(let ((enough (enough-namestring target (user-homedir-pathname))))
(unless (equal (pathname enough) target)
Expand Down

0 comments on commit ddfbf8c

Please sign in to comment.