From 2fcd34f20275a9311ea5dc1709e5e565412ddd97 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Fri, 1 Oct 2021 15:34:09 -0400 Subject: [PATCH] * lisp/emacs-lisp/cl-generic.el (cl--generic-get-dispatcher): Fix regression --- lisp/emacs-lisp/cl-generic.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lisp/emacs-lisp/cl-generic.el b/lisp/emacs-lisp/cl-generic.el index a2bcad2d3aa..10490f0638c 100644 --- a/lisp/emacs-lisp/cl-generic.el +++ b/lisp/emacs-lisp/cl-generic.el @@ -631,6 +631,9 @@ The set of acceptable TYPEs (also called \"specializers\") is defined (setq dispatch-idx 0)) (dotimes (i dispatch-idx) (push (make-symbol (format "arg%d" (- dispatch-idx i 1))) fixedargs)) + ;; FIXME: We should find a way to expand `with-memoize' once and forall + ;; so we don't need `subr-x' when we get here. + (require 'subr-x) ;; FIXME: For generic functions with a single method (or with 2 methods, ;; one of which always matches), using a tagcode + hash-table is ;; overkill: better just use a `cl-typep' test. -- 2.39.5