Function: cl-generic-all-functions
cl-generic-all-functions is a byte-compiled function defined in
cl-generic.el.gz.
Signature
(cl-generic-all-functions &optional TYPE)
Documentation
Return a list of all generic functions.
Optional TYPE argument returns only those functions that contain methods for TYPE.
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/cl-generic.el.gz
(defun cl-generic-all-functions (&optional type)
"Return a list of all generic functions.
Optional TYPE argument returns only those functions that contain
methods for TYPE."
(let ((l nil))
(mapatoms
(lambda (symbol)
(let ((generic (and (fboundp symbol) (cl--generic symbol))))
(and generic
(catch 'found
(if (null type) (throw 'found t))
(dolist (method (cl--generic-method-table generic))
(if (cl--generic-specializers-apply-to-type-p
(cl--generic-method-specializers method) type)
(throw 'found t))))
(push symbol l)))))
l))