Skip to content

Commit

Permalink
(describe-symbol-for-emacs): Include information about setf-functions…
Browse files Browse the repository at this point in the history
… stuff.

(emacs-connected): Add a default method to
defenv-internals:environment-display-debugger.
  • Loading branch information
Helmut Eller committed Jun 30, 2004
1 parent 500221c commit f8c9312
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions swank-lispworks.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
stream:stream-line-column
))

(when (fboundp 'dspec::define-form-parser)
(dspec::define-form-parser defimplementation (name args &rest body)
`(defmethod ,name ,args ,@body)))

;;; TCP server

(defimplementation preferred-communication-style ()
Expand Down Expand Up @@ -76,7 +80,10 @@
(env &key restarts condition)
(declare (ignore restarts))
(funcall (find-symbol (string :swank-debugger-hook) :swank)
condition *debugger-hook*))))
condition *debugger-hook*))
(defmethod env-internals:environment-display-debugger
(env)
*debug-io*)))

;;; Unix signals

Expand Down Expand Up @@ -144,6 +151,10 @@ Return NIL if the symbol is unbound."
:function (if (and (fboundp symbol)
(not (generic-function-p (fdefinition symbol))))
(doc 'function)))
(maybe-push
:setf (let ((setf-name (sys:underlying-setf-name `(setf ,symbol))))
(if (fboundp setf-name)
(doc 'setf))))
(maybe-push
:class (if (find-class symbol nil)
(doc 'class)))
Expand All @@ -153,7 +164,8 @@ Return NIL if the symbol is unbound."
(ecase type
(:variable (describe-symbol symbol))
(:class (describe (find-class symbol)))
((:function :generic-function) (describe-function symbol))))
((:function :generic-function) (describe-function symbol))
(:setf (describe-function (sys:underlying-setf-name `(setf ,symbol))))))

(defun describe-function (symbol)
(cond ((fboundp symbol)
Expand Down

0 comments on commit f8c9312

Please sign in to comment.