diff options
author | John Wiegley <johnw@newartisans.com> | 2020-08-05 10:27:15 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-05 10:27:15 -0700 |
commit | 10c6400d346d0ca589d3c5fc355b42ad71715df5 (patch) | |
tree | 095c8b9ae1d62d14f7cd94d715b014a4fccfdf4a /test/lisp/use-package/use-package-tests.el | |
parent | c358eedcf9f5c8921005bbaae78a3abc1fe8cc86 (diff) | |
parent | 1f54de9210a2add3a2e7f0416069bab5fe15d8e4 (diff) | |
download | emacs-10c6400d346d0ca589d3c5fc355b42ad71715df5.tar.gz emacs-10c6400d346d0ca589d3c5fc355b42ad71715df5.tar.bz2 emacs-10c6400d346d0ca589d3c5fc355b42ad71715df5.zip |
Merge pull request from wyuenho/patch-1
GitHub-reference: https://github.com/jwiegley/use-package/issues/846
Diffstat (limited to 'test/lisp/use-package/use-package-tests.el')
-rw-r--r-- | test/lisp/use-package/use-package-tests.el | 12 |
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 |