]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/emacs-lisp/cl-generic.el: Fix test/lisp/loadhist-tests
authorStefan Monnier <monnier@iro.umontreal.ca>
Sat, 2 Oct 2021 03:53:20 +0000 (23:53 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sat, 2 Oct 2021 03:53:20 +0000 (23:53 -0400)
Revert 2fcd34f202 which was redundant anyway since e165bf3d4
had fixed it in a better way anyway (a way which doesn't litter the
`load-history`).

lisp/emacs-lisp/cl-generic.el

index 10490f0638cc43ae37a91ed3bc0403a94effcfce..2c292415cfe7c69abeb71463867cb99797e0357b 100644 (file)
@@ -631,14 +631,13 @@ 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.
       (byte-compile
        `(lambda (generic dispatches-left methods)
+          ;; FIXME: We should find a way to expand `with-memoize' once
+          ;; and forall so we don't need `subr-x' when we get here.
           (eval-when-compile (require 'subr-x))
           (let ((method-cache (make-hash-table :test #'eql)))
             (lambda (,@fixedargs &rest args)