From mboxrd@z Thu Jan 1 00:00:00 1970 From: Keisuke Nishida To: guile-emacs@sourceware.cygnus.com Cc: guile@sourceware.cygnus.com Subject: scheme-describe Date: Mon, 15 May 2000 22:10:00 -0000 Message-id: X-SW-Source: 2000-q2/msg00049.html Hello, I'm writing a new describe procedure and Emacs's scheme-describe command for Guile Emacs. So far, it works like this: % guile guile> (use-modules (oop goops)) guile> (use-modules (utils describe)) guile> (describe 'assq) `assq' is a primitive procedure. Defined in `$(LIBGUILE)/alist.c:147'. (assq key alist) Fetches the entry in ALIST that is associated with KEY. To decide whether the argument KEY matches a particular entry in ALIST, `assq' compares keys with `eq?', `assv' uses `eqv?' and `assoc' uses `equal?'. If KEY cannot be found in ALIST (according to whichever equality predicate is in use), then `#f' is returned. These functions return the entire alist entry found (i.e. both the key and the value). guile> (describe 'describe-value) `describe-value' is a generic function of class . Method: (describe-value ) Describe the value of OBJ, which is an instance of . Method: (describe-value ) (not documented) Method: (describe-value ) (not documented) Method: (describe-value ) (not documented) Method: (describe-value ) (not documented) Method: (describe-value ) (not documented) Not documented. guile> (describe ') `' is a class of . Class precedence list: Class: Not documented. Class: Not documented. Class: Not documented. Class: Not documented. Direct superclasses: Class: Not documented. Direct subclasses: Class: Not documented. Direct slots: Slot: methods Slot: n-specialized Slot: used-by Slot: cache-mutex Direct methods: Method: (describe-value ) (not documented) Method: (describe-type ) (not documented) Method: (apply-methods ) (not documented) Method: (apply-method ) (not documented) Method: (sort-applicable-methods ) (not documented) Method: (compute-applicable-methods ) (not documented) Method: (apply-generic ) (not documented) Method: (initialize ) (not documented) Method: (no-method ) (not documented) Method: (no-applicable-method ) (not documented) Method: (no-next-method ) (not documented) Method: (write ) (not documented) Method: (add-method! ) (not documented) Not documented. guile> These output can be redirected into an Emacs buffer. More work is needed to make it very useful. I'll work on this for more few days and release Guile Emacs 0.4. Thanks, Keisuke Nishida