slime + chokes on temporary-file-directory set to "~/temp" on Windows

I am running Windows versions Emacs and CLISP. If I have temporary-file-directory set to "~/temp", slime loading will report ;; Loaded file C:\Users\977315\documents\.slime\fasl\2013-09-29\clisp-2.49-windows-x86\swank.fas ... *** - OPEN: Directory #P"C:\\Users\\...\\documents\\.emacs.d\\~\\temp\\" does not exist I set temporary-file-directory to an absolute path, such as ""c:/Users/.../AppData/Local/Temp/" slime loads OK. I grepped slime's lisp files for temporary-file-directory, but did not see it. I tested this with clisp -norc option. Is this a bug - since on Windows Emacs accepts `~' for the home directory? Thanks, Mirko

On Wed, Feb 26, 2014 at 6:50 PM, Mirko Vukovic <mirko.vukovic@gmail.com> wrote:
I grepped slime's lisp files for temporary-file-directory, but did not see it. I tested this with clisp -norc option.
IIUC, the issue lies in `slime-swank-port-file' which names the file "where the SWANK server writes its TCP port number." That function simply returns the value of `temporary-file-directory' which is later passed to swank. When swank tries to open that file, it fails to parse "~/temp".
Is this a bug - since on Windows Emacs accepts `~' for the home directory?
I think so. Can you confirm <https://github.com/slime/slime/pull/118> fixes things for you? BTW, is this a regression? I also noticed the swank side of this mechanism could be made a bit more robust. Created <https://github.com/slime/slime/issues/119> to track that. Cheers, -- Luís Oliveira http://kerno.org/~luis/
participants (2)
-
Luís Oliveira
-
Mirko Vukovic