[slime-devel] Question about current directory and M-x cd behavior

edgar edgar-rft at web.de
Mon Jun 11 17:28:08 UTC 2012


Am Mon, 11 Jun 2012 09:58:52 -0700
schrieb Jeffrey Cunningham <jeffrey at jkcunningham.com>:

> Greetings,
> 
> This problem has been bothering me for awhile. If I start emacs and
> then slime in one directory and M-x cd to another, even though M-x
> pwd tells me I am in the other directory, running a simple piece of
> code like
> 
> (with-open-file (*standard-output*  "test" :direction :output) (print
> (get-universal-time)))
> 
> demonstrates that Lisp still thinks it's "current" directory is the
> first directory.
> 
> How do you get around this problem? The only way I know is to kill the
> current inferior-lisp, change directories, and start a new one, which
> seems somewhat over-kill to say the least.
> 
> Regards,
> 
> Jeff
> 
> 

The Emacs M-x cd command only changes the Emacs default-directory.
To change the Common Lisp *DEFAULT-PATHNAME-DEFAULTS*, too, type a
comma at the CL-USER> prompt in the *slime-repl* buffer, then a
Command: prompt appears in the Emacs minibuffer, where you type
cd, and then the directory where you want to change to.





More information about the slime-devel mailing list