You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
there is a hook in slime.el for converting between Emac's notion of filenames and the inferior lisp's notion. Ideally these would be the same, but this is not always so, hence the hooks "slime-to-lisp-filename-function" and "slime-from-lisp-filename-function".
However, these hooks aren't called in all of the places they need to be. For my purposes, I needed to patch slime-init-command as follows:
(defun slime-init-command (port-filename _coding-system)
"Return a string to initialize Lisp."
(let ((loader (if (file-name-absolute-p slime-backend)
slime-backend
(concat slime-path slime-backend))))
;; Return a single form to avoid problems with buffered input.
(format "%S\n\n"
`(progn
(load ,(slime-to-lisp-filename (expand-file-name loader)) ;; WC: convert to target's notion of filenames
:verbose t)
(funcall (read-from-string "swank-loader:init"))
(funcall (read-from-string "swank:start-server")
,(slime-to-lisp-filename port-filename)))))) ;; WC: convert to target's notion of filenames
Probably the src-loc reading functions don't use slime-from-lisp-filename, but I haven't yet run into that problem.
there is a hook in slime.el for converting between Emac's notion of filenames and the inferior lisp's notion. Ideally these would be the same, but this is not always so, hence the hooks "slime-to-lisp-filename-function" and "slime-from-lisp-filename-function".
However, these hooks aren't called in all of the places they need to be. For my purposes, I needed to patch slime-init-command as follows:
(defun slime-init-command (port-filename _coding-system)
"Return a string to initialize Lisp."
(let ((loader (if (file-name-absolute-p slime-backend)
slime-backend
(concat slime-path slime-backend))))
;; Return a single form to avoid problems with buffered input.
(format "%S\n\n"
`(progn
(load ,(slime-to-lisp-filename (expand-file-name loader)) ;; WC: convert to target's notion of filenames
:verbose t)
(funcall (read-from-string "swank-loader:init"))
(funcall (read-from-string "swank:start-server")
,(slime-to-lisp-filename port-filename)))))) ;; WC: convert to target's notion of filenames
Probably the src-loc reading functions don't use slime-from-lisp-filename, but I haven't yet run into that problem.
--
Emacs 24.3.1
Slime 2.5
SBCL 1.1.17
Windows7+Cygwin
X86-64
Launchpad Details: #LP1309783 William Cushing - 2014-04-18 22:40:37 +0000
The text was updated successfully, but these errors were encountered: