summaryrefslogtreecommitdiff
path: root/test/lisp/use-package/use-package-tests.el
diff options
context:
space:
mode:
Diffstat (limited to 'test/lisp/use-package/use-package-tests.el')
-rw-r--r--test/lisp/use-package/use-package-tests.el12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/lisp/use-package/use-package-tests.el b/test/lisp/use-package/use-package-tests.el
index 1e89a5679ff..42bf07453b4 100644
--- a/test/lisp/use-package/use-package-tests.el
+++ b/test/lisp/use-package/use-package-tests.el
@@ -1940,6 +1940,18 @@
(define-prefix-command 'my/map)
(bind-key "<f1>" 'my/map nil nil))))
+
+(ert-deftest bind-key/845 ()
+ (defvar test-map (make-keymap))
+ (bind-key "<f1>" 'ignore 'test-map)
+ (should (eq (lookup-key test-map (kbd "<f1>")) 'ignore))
+ (let ((binding (cl-find "<f1>" personal-keybindings :test 'string= :key 'caar)))
+ (message "test-map %s" test-map)
+ (message "binding %s" binding)
+ (should (eq (cdar binding) 'test-map))
+ (should (eq (nth 1 binding) 'ignore))
+ (should (eq (nth 2 binding) nil))))
+
;; Local Variables:
;; indent-tabs-mode: nil
;; no-byte-compile: t