[slime-devel] newbie question regarding slime and xemacs and cygwin - slime loading fails

Helmut Eller heller at common-lisp.net
Mon Jan 9 07:28:15 UTC 2006


* Sean McGrath [2006-01-09 00:47+0100] writes:

> when loading slime (1.2.1)  with xemacs (21.4 - patch 13)  (on a winxp
> box with the latest cygwin setup) i get the following error:
>
> WARNING: DEFMETHOD: redefining method (LISP-IMPLEMENTATION-TYPE-NAME NIL)

This is just a warning. You can safely ignore it.

> ** - Continuable Error
> INTERN("*DOCUMENTATION*"): #<PACKAGE SYSTEM> is locked
> If you continue (by typing 'continue'): Ignore the lock and proceed
> The following restarts are also available:
> SKIP           :R1      skip (COMPILE-FILES-IF-NEEDED-SERIALLY #)
> STOP           :R2      stop loading file
> /usr/local/lib/xemacs/xemacs-packages/lisp/slime-1.2.1/swank-loader.lisp
> ABORT          :R3      ABORT

I think this has been fixed in CVS.  If you don't want to switch to
the CVS version, but are willing to patch your swank-clisp.lisp here's
the current definition:

(defun fspec-pathname (symbol)
  (let ((path (documentation symbol 'sys::file))
	lines)
    (when (consp path)
      (psetq path (car path)
	     lines (cdr path)))
    (when (and path
	       (member (pathname-type path)
		       custom:*compiled-file-types* :test #'equal))
      (setq path
	    (loop for suffix in custom:*source-file-types*
	       thereis (probe-file (make-pathname :defaults path
						  :type suffix)))))
    (values path lines)))

> any thoughts?  btw, i've gotten this to work on a different box with
> an older version of xemacs and cygwin.

The bug was triggered by a change from CLISP 2.34 to 2.35.  Maybe your
older cygwin had an older CLISP.

Helmut.



More information about the slime-devel mailing list