Function: cl--generic-make-next-function
cl--generic-make-next-function is a byte-compiled function defined in
cl-generic.el.gz.
Signature
(cl--generic-make-next-function GENERIC DISPATCHES METHODS)
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/cl-generic.el.gz
(defun cl--generic-make-next-function (generic dispatches methods)
(let* ((dispatch
(progn
(while (and dispatches
(let ((x (nth 1 (car dispatches))))
;; No need to dispatch for t specializers.
(or (null x) (equal x cl--generic-t-generalizer))))
(setq dispatches (cdr dispatches)))
(pop dispatches))))
(if (not (and dispatch
;; If there's no method left, there's no point checking
;; further arguments.
methods))
(cl--generic-build-combined-method generic methods)
(let ((dispatcher (cl--generic-get-dispatcher dispatch)))
(funcall dispatcher generic dispatches methods)))))