]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix byte-compiled files that use 'bind-key' from use-package
authorEli Zaretskii <eliz@gnu.org>
Fri, 4 Aug 2023 06:41:30 +0000 (09:41 +0300)
committerEli Zaretskii <eliz@gnu.org>
Fri, 4 Aug 2023 06:41:30 +0000 (09:41 +0300)
* lisp/use-package/bind-key.el (bind-key): Ensure 'bind-key' is
loaded at run time.  Patch by John Wiegley <johnw@gnu.org>.
(Bug#64901)

lisp/use-package/bind-key.el

index 0ab72eafce2f06129910c422673dbbd94651e13b..95dda958375565e6390a33ee1e2ac1dc6419ebe7 100644 (file)
@@ -196,6 +196,7 @@ can safely be called at any time."
                                (key-description ,namevar))
                              (if (symbolp ,keymap) ,keymap (quote ,keymap))))
             (,bindingvar (lookup-key ,kmapvar ,keyvar)))
+       (require 'bind-key)      ; ensure `personal-keybindings' is in scope
        (let ((entry (assoc ,kdescvar personal-keybindings))
              (details (list ,command
                             (unless (numberp ,bindingvar)