Skip to content

Commit

Permalink
use arglist hooks from my slime tree
Browse files Browse the repository at this point in the history
  • Loading branch information
3b committed Jun 4, 2011
1 parent aa8f29c commit a2daaca
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions contrib/slime-parenscript/swank-proxy-ps.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,13 @@
(let ((*arglist-dispatch-hooks* (cons 'ps-arglist-dispatch
*arglist-dispatch-hooks*))
(*operator-p-hooks* (cons 'ps-operator-p
*operator-p-hooks*)))
*operator-p-hooks*))
(swank::*valid-operator-symbol-p-hooks*
(cons 'ps::parenscript-function-p
swank::*valid-operator-symbol-p-hooks*))
(swank-backend::*arglist-hooks*
(cons 'ps::parenscript-arglist
swank-backend::*arglist-hooks*)))
(call-next-method)))

;;; Mostly ordered by how difficult these were to implement
Expand Down Expand Up @@ -248,14 +254,13 @@ emacs with :proxy-new-package."
;;;; Swank arglists (autodoc)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(defmacro with-ps-autodoc-env (&body body)
#++`(let ((swank::*external-valid-function-name-p-hooks*
`(let ((swank::*valid-operator-symbol-p-hooks*
(cons 'ps::parenscript-function-p
swank::*external-valid-function-name-p-hooks*))
(swank::*external-arglist-hooks*
swank::*valid-operator-symbol-p-hooks*))
(swank-backend::*arglist-hooks*
(cons 'ps::parenscript-arglist
swank::*external-arglist-hooks*)))
,@body)
`(progn ,@body))
swank-backend::*arglist-hooks*)))
,@body))

(define-proxy-fun swank::autodoc :ps (raw-form &rest args &key print-right-margin)
"Return a string representing the arglist for the deepest subform in
Expand Down

0 comments on commit a2daaca

Please sign in to comment.