summaryrefslogtreecommitdiff
path: root/lisp/net/eudc.el
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2022-06-24 10:54:01 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2022-06-24 11:04:51 +0200
commit49910adf872a98d9c144d34478a53ecb3e01856f (patch)
treee5b69dc0e59565cfd537ae14ba0dffef107de619 /lisp/net/eudc.el
parent2ff5cb4cb4420e2b18ea8451ad0b29f1a69bdb6c (diff)
downloademacs-49910adf872a98d9c144d34478a53ecb3e01856f.tar.gz
Fix cl-generic bootstrap problems
* lisp/sqlite-mode.el (require): * lisp/net/eudc.el (require): * lisp/arc-mode.el (require): Require subr-x, since these files are using macros from there. * lisp/emacs-lisp/subr-x.el (with-memoization): Move from here... * lisp/subr.el (with-memoization): ... to here, as it's used from the preloaded cl-generic.el file. * lisp/emacs-lisp/cl-generic.el (cl--generic-compiler): Don't use the autoloaded `byte-compile' function during bootstrap. (cl--generic-get-dispatcher): Don't require subr-x, either. cl-generic has been preloaded since 2015, and most usages of it (in preloaded files) work fine. In particular, using `cl-defgeneric' is unproblematic. However, `cl-defmethod' would end up pulling in the byte compiler (at load time), which would make it impossible to use `cl-defmethod' in pre-loaded files, and this change fixes that (but possibly not in the most self-evidently correct way).
Diffstat (limited to 'lisp/net/eudc.el')
-rw-r--r--lisp/net/eudc.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/net/eudc.el b/lisp/net/eudc.el
index 808d2ca509c..1d9dbbeb754 100644
--- a/lisp/net/eudc.el
+++ b/lisp/net/eudc.el
@@ -48,6 +48,7 @@
(require 'wid-edit)
(require 'cl-lib)
(require 'eudc-vars)
+(eval-when-compile (require 'subr-x))
;;{{{ Internal cooking