Function: soap-inspect-binding
soap-inspect-binding is a byte-compiled function defined in
soap-inspect.el.gz.
Signature
(soap-inspect-binding BINDING)
Documentation
Insert information about BINDING into the current buffer.
Source Code
;; Defined in /usr/src/emacs/lisp/net/soap-inspect.el.gz
(defun soap-inspect-binding (binding)
"Insert information about BINDING into the current buffer."
(insert "Binding: " (soap-element-fq-name binding) "\n")
(insert "\n")
(insert "Bound operations:\n")
(let* ((ophash (soap-binding-operations binding))
(operations (cl-loop for o being the hash-keys of ophash
collect o))
op-name-width)
(setq operations (sort operations #'string<))
(setq op-name-width (cl-loop for o in operations maximizing (length o)))
(dolist (op operations)
(let* ((bound-op (gethash op ophash))
(soap-action (soap-bound-operation-soap-action bound-op))
(use (soap-bound-operation-use bound-op)))
(unless soap-action
(setq soap-action ""))
(insert "\t")
(soap-insert-describe-button (soap-bound-operation-operation bound-op))
(when (or use (not (equal soap-action "")))
(insert (make-string (- op-name-width (length op)) ?\s))
(insert " (")
(insert soap-action)
(when use
(insert " " (symbol-name use)))
(insert ")"))
(insert "\n")))))