It seems that ,cd command from the REPL, which I think runs (swank:set-default-directory), does not work correctly with CLISP. It works _once_ but after that it doesn't change the directory anymore. CLISP's (ext:cd) works as longs as I don't touch REPL's ,cd command After that (ext:cd) stops working.
My Slime is up-to-date version from Git mirror and I can see the bug with CLISP version 2.44.1 and 2.48.
On Tue, Mar 2, 2010 at 8:43 PM, Teemu Likonen tlikonen@iki.fi wrote:
It seems that ,cd command from the REPL, which I think runs (swank:set-default-directory), does not work correctly with CLISP. It works _once_ but after that it doesn't change the directory anymore. CLISP's (ext:cd) works as longs as I don't touch REPL's ,cd command After that (ext:cd) stops working.
My Slime is up-to-date version from Git mirror and I can see the bug with CLISP version 2.44.1 and 2.48.
That's not a slime issue. Clisp doesn't change cwd when *default-pathname-defaults* is set:
(progn (setf *default-pathname-defaults* #"/") (list (cd (user-homedir-pathname)) (cd))) => #"/"
* 2010-03-02 23:31 (+0300), Stas Boukarev wrote:
On Tue, Mar 2, 2010 at 8:43 PM, Teemu Likonen tlikonen@iki.fi wrote:
It seems that ,cd command from the REPL, which I think runs (swank:set-default-directory), does not work correctly with CLISP.
That's not a slime issue. Clisp doesn't change cwd when *default-pathname-defaults* is set:
(progn (setf *default-pathname-defaults* #"/") (list (cd (user-homedir-pathname)) (cd))) => #"/"
OK, thanks, and sorry for blaming the wrong guy. What do you suggest as a work-around? Well, I could use (EXT:CD) or perhaps always reset *default-pathname-defaults* to #P"" in some hook?