From: Damien Cassou Date: Sun, 11 Mar 2018 12:21:00 +0000 (+0100) Subject: Add missing require X-Git-Tag: emacs-29.0.90~1306^2~15^2~75^2~1 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2a479988443c3264a2f67e643f2acf6055014c30;p=emacs.git Add missing require This is used for `hash-table-keys`. Fix https://github.com/jwiegley/use-package/issues/644. --- diff --git a/lisp/use-package/use-package-core.el b/lisp/use-package/use-package-core.el index 83630b80785..2c27351d0bd 100644 --- a/lisp/use-package/use-package-core.el +++ b/lisp/use-package/use-package-core.el @@ -43,6 +43,12 @@ (require 'cl-lib) (require 'tabulated-list) +(if (and (eq emacs-major-version 24) (eq emacs-minor-version 3)) + (defsubst hash-table-keys (hash-table) + "Return a list of keys in HASH-TABLE." + (cl-loop for k being the hash-keys of hash-table collect k)) + (require 'subr-x)) + (eval-when-compile (require 'cl) (require 'regexp-opt))