From: Hoehle, Joerg-C. <Joe...@t-...> - 2005-07-26 12:30:14
|
Lin Jingxian wonders: > Does slime really support clisp ? Yes. Although I don't know whether clisp-2.33.2 works out of the box. > WARNING: These Swank interfaces are unimplemented: [long list elided] This just means that people could contribute code e.g. to step through = code. OTOH just ignore all missing interfaces about threads, there are = no threads yet (trying to contribute them is a grade>=3D**** exercise). My .emacs (GNU Emacs-20.7) has the following. (setq slime-path (file-name-directory = "d:/hoehle/Code/Lisp/slime-1.2.1/")) ; http://common-lisp.net/pipermail/slime-devel/2004-October/002512.html (autoload 'slime-connect "slime" nil t) (autoload 'slime "slime" nil t) (autoload 'slime-selector "slime" "Select a SLIME buffer" t) (global-set-key "\^Cs" 'slime-selector) ;(load"d:/hoehle/Code/Lisp/slime-1.2.1/swank-loader.lisp") ;(swank:create-server) ;M-x (slime-connect) ;M-TAB slime-complete-symbol e.g. *p-p or m-v-b ;C-c M-i slime-fuzzy-complete-symbol I usually start a Lisp in the classic inferior-lisp-mode as follows, = and load silme afterwards. (defvar lisp-program-choices '()) (setq lisp-program-choices '(("jscheme" . "java -cp h:/sspace/archive/jscheme.jar jscheme.REPL") ("xquery" . "java -jar = c:/Programme/Jakarta/jakarta-tomcat-3.3.1/webapps/KBA-NCA/WEB-INF/lib/ka= wa-1.7.jar --xquery") ("kawa" . "java -classpath = c:/Programme/Jakarta/jakarta-tomcat-3.3.1/webapps/KBA-NCA/WEB-INF/lib/ka= wa-1.7.jar kawa.repl") ("Corman" . "C:\\Programme\\CORMAN~1.0\\clconsole.exe") ("clisp-cvs-base" . "S:\\src\\CVS\\clisp\\build-msvc\\lisp.exe -M = S:\\src\\CVS\\clisp\\build-msvc\\lispinit.mem -Efile UTF-8 -Eterminal = ISO-8859-1") )) (defun choose-lisp (program) (interactive (list (cdr (assoc (completing-read "Run Lisp: " lisp-program-choices = nil t) lisp-program-choices)))) (run-lisp program)) OTOH, I could just start SLIME directly -- I just tested it now. You could replace (run-lisp ...) with (slime ...) to choose among = several Lisps. Then clisp starts up as follows: ; CLISP Port: 3957 Pid: nil CL-USER>=20 Pid: nil means that ^C will not work. You better get the CVS version of = slime, where I contributed some patches. Pid will then show a number, = and if you started lisp.exe directly (not via clisp.exe), ^C will work. Since you're likely to use some asian character encoding, I urge you to = use the -Efile/terminal/xyz options of clisp to match your Emacs = settings and tastes, so that you can make use of non-ASCII characters. *inferior-lisp* contains: [1]>=20 ;; Loading file D:\hoehle\Code\Lisp\slime-1.2.1\swank-loader.lisp ... ;; Compiling file D:\hoehle\Code\Lisp\slime-1.2.1\swank-backend.lisp = ... ;; Wrote file = D:\hoehle\.slime\fasl\clisp-2.34-win32-pc386\swank-backend.fas ;; Loading file = D:\hoehle\.slime\fasl\clisp-2.34-win32-pc386\swank-backend.fas [...] ;; Loaded file D:\hoehle\.slime\fasl\clisp-2.34-win32-pc386\swank.fas The following functions were used but are deprecated: SET - This function name is anachronistic. Use SETF SYMBOL-VALUE = instead. 0 errors, 0 warnings WARNING: These Swank interfaces are unimplemented: (ACTIVATE-STEPPING ADD-FD-HANDLER ADD-SIGIO-HANDLER = ALL-THREADS CALLS-WHO DISASSEMBLE-FRAME FIND-THREAD GETPID INSPECT-FOR-EMACS INTERRUPT-THREAD RECEIVE REMOVE-FD-HANDLERS REMOVE-SIGIO-HANDLERS SEND SLDB-BREAK-AT-START SLDB-BREAK-ON-RETURN SPAWN THREAD-ID TOGGLE-TRACE = WHO-MACROEXPANDS WHO-SPECIALIZES) ;; Loaded file D:\hoehle\Code\Lisp\slime-1.2.1\swank-loader.lisp T [2]>=20 ;; Swank started at port: 3957. [this is the output from an unmodified slime-1.2.1] Regards, J=F6rg H=F6hle |