-
Notifications
You must be signed in to change notification settings - Fork 11
/
slynk.lisp
17 lines (15 loc) · 919 Bytes
/
slynk.lisp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
;;;; slynk.lisp - extra functionality/creature comforts for Sly/Slynk.
(in-package #:cl-patterns)
;; show the arguments of the function being called in pnary
(defmethod slynk::compute-enriched-decoded-arglist ((operator-form (eql 'pnary)) argument-forms)
(let ((function-name-form (car argument-forms)))
(when (and (listp function-name-form)
(length= 2 function-name-form)
(member (car function-name-form) '(quote function) :test #'eq))
(let ((function-name (cadr function-name-form)))
(when (fboundp function-name)
(let ((function-arglist (slynk::compute-enriched-decoded-arglist function-name (cdr argument-forms))))
(push 'operator (slynk::arglist.required-args function-arglist))
(return-from slynk::compute-enriched-decoded-arglist
(values function-arglist (list function-name-form) t)))))))
(call-next-method))