On Mon, 01 Jun 2009 16:52:29 +0900, Benjamin L. Russell DekuDekuplex@Yahoo.com wrote:
On Fri, 29 May 2009 23:09:30 +0800, Stephen Lee leejianm@hotmail.com wrote:
Hi I am using Windows XP SP 2. Gave up and changed to CLISP,now it works.
Are you sure? I thought so, too, but when I evaluated the following program for computing the solution to the Towers of Hanoi problem with "(hanoi 3)", the output from the "format" statement directed to standard output that should have been sent to the REPL got sent to the "*inferior-lisp*" buffer, instead:
(defun hanoi (n) (hanoi-helper n 'A 'B 'C))
(defun hanoi-helper (n source dest using) (cond ((equalp n 1) (format t "Move disc from ~A to ~A.~%" source dest)) (t (progn (hanoi-helper (- n 1) source using dest) (hanoi-helper 1 source dest using) (hanoi-helper (- n 1) using dest source)))))
Are you sure that "format" doesn't redirect output directed to standard output to the "*inferior-lisp*" buffer instead of the REPL?
Actually, whether you have this problem probably depends on your setup; I only have it with my regular GNU Emacs (which reads in my .emacs file) when calling "M-x slime RET", but not when using the default Lispbox (which ignores that file). Here's the relevant section from my .emacs file:
;; Setup for SLIME (setq inferior-lisp-program "C:/bin/clisp-2.45/full/lisp.exe -B C:/bin/clisp-2.45/full -M C:/bin/clisp-2.45/full/lispinit.mem -ansi -q") (add-to-list 'load-path "C:/bin/emacs/site-lisp/slime/") (require 'slime) (slime-setup '(slime-fancy slime-asdf slime-banner))
-- Benjamin L. Russell
-- Benjamin L. Russell
My Blog: http://sljm.blogspot.com My Twitter: http://www.twitter.com/stephenleejm
To: slime-devel@common-lisp.net From: DekuDekuplex@Yahoo.com Date: Fri, 29 May 2009 17:22:45 +0900 Subject: Re: [slime-devel] REPL problems
On Fri, 29 May 2009 11:22:49 +0800, Stephen Lee leejianm@hotmail.com wrote:
I have manage to install SLIME (latest cvs), Emacs 22.3 and SBCL 1.0.22 on Windows.
Managed to configure and start SLIME. But REPL is not working. after i entered the code and press enter the code dosen't seem to execute
Example CL-USER>(+ 1 2) <enter>
No 3 is displayed
I set up SLIME on Ubuntu before and it works so is it a windows thing?
I followed the instructions here http://common-lisp.net/pipermail/slime-devel/2008-May/007331.html
I have the same setup and the same bug on the same OS, too, and am also interested in a solution.
This bug is almost certainly Windows-specific. I'm using Windows XP Professional, Service Pack 3; which version of Windows are you using?
-- Benjamin L. Russell
Benjamin L. Russell / DekuDekuplex at Yahoo dot com http://dekudekuplex.wordpress.com/ Translator/Interpreter / Mobile: +011 81 80-3603-6725 "Furuike ya, kawazu tobikomu mizu no oto." -- Matsuo Basho^
slime-devel site list slime-devel@common-lisp.net http://common-lisp.net/mailman/listinfo/slime-devel
More than messages?check out the rest of the Windows Live?. http://www.microsoft.com/windows/windowslive/