Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

slime-to-lisp-filename is unused #696

Open
sionescu opened this issue Dec 25, 2021 · 0 comments
Open

slime-to-lisp-filename is unused #696

sionescu opened this issue Dec 25, 2021 · 0 comments

Comments

@sionescu
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant