[slime-devel] Re: fancy inspector problems

Knut Olav Bøhmer knobo at online.no
Tue Sep 18 07:38:08 UTC 2007


I got this warning/error though:

The following function is undefined:
(SETF SWANK-MOP:SLOT-VALUE-USING-CLASS) which is referenced by
INSPECT-SLOT-FOR-EMACS


And slime-read-object looks like it is undefined.

>From ChangeLog:
2007-08-23  Helmut Eller  <heller at common-lisp.net>
        Some inspector cleanups.
        * slime.el (slime-inspect): Remove dwim stuff and drop keyword args.
        (slime-read-object): Killed.



Johannes Groedem wrote:
> * Johannes Groedem <johs at netfonds.no>:
>   
>>> When I inspect the object from lispworks it works
>>>       
>> It appears to be Lispworks-specific, by the way.  (Yes, I got the
>> same error, but not with CLISP or SBCL.)
>>     
>
> I'm not entirely sure that this is the proper fix, but if anyone wants
> to take a look, here's a patch that fixes it.  (WFM, anyway...)
>
>   
> ------------------------------------------------------------------------
>
> Index: swank-lispworks.lisp
> ===================================================================
> RCS file: /project/slime/cvsroot/slime/swank-lispworks.lisp,v
> retrieving revision 1.92
> diff -u -r1.92 swank-lispworks.lisp
> --- swank-lispworks.lisp	23 Aug 2007 19:03:37 -0000	1.92
> +++ swank-lispworks.lisp	17 Sep 2007 13:32:35 -0000
> @@ -17,7 +17,9 @@
>  (import-swank-mop-symbols :clos '(:slot-definition-documentation
>                                    :eql-specializer
>                                    :eql-specializer-object
> -                                  :compute-applicable-methods-using-classes))
> +                                  :compute-applicable-methods-using-classes
> +                                  :slot-boundp-using-class
> +                                  :slot-value-using-class))
>  
>  (defun swank-mop:slot-definition-documentation (slot)
>    (documentation slot t))
> @@ -25,6 +27,12 @@
>  (defun swank-mop:compute-applicable-methods-using-classes (gf classes)
>    (clos::compute-applicable-methods-from-classes gf classes))
>  
> +(defun swank-mop:slot-boundp-using-class (class object slotd)
> +  (clos::slot-boundp-using-class class object (clos:slot-definition-name slotd)))
> +
> +(defun swank-mop:slot-value-using-class (class object slotd)
> +  (clos::slot-value-using-class class object (clos:slot-definition-name slotd)))
> +
>  ;; lispworks doesn't have the eql-specializer class, it represents
>  ;; them as a list of `(EQL ,OBJECT)
>  (deftype swank-mop:eql-specializer () 'cons)
>   
> ------------------------------------------------------------------------
>
> _______________________________________________
> slime-devel site list
> slime-devel at common-lisp.net
> http://common-lisp.net/mailman/listinfo/slime-devel


-- 
Free Software Consultant
Cell: +47 - 47 34 40 08
Phone: +47 - 21 53 69 00, Fax: +47 - 21 53 69 09
Addr: Slemdalsveien 70, PB 1 Vinderen, 0319 Oslo
<http://www.freecode.no/>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/slime-devel/attachments/20070918/dc64efa9/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: logo_horizontal.png
Type: image/png
Size: 7619 bytes
Desc: not available
URL: <https://mailman.common-lisp.net/pipermail/slime-devel/attachments/20070918/dc64efa9/attachment.png>


More information about the slime-devel mailing list