mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 17:24:23 +00:00
Add :bind test for a single cons cell
Relates to https://github.com/jwiegley/use-package/issues/566
This commit is contained in:
parent
2a85d81c47
commit
e8a7ae1ea1
1 changed files with 12 additions and 0 deletions
|
|
@ -666,6 +666,18 @@
|
|||
:map my-map ("C-u" . key2)
|
||||
:map my-map2 ("C-u" . key3))))))
|
||||
|
||||
(ert-deftest use-package-test/:bind-7 ()
|
||||
(match-expansion
|
||||
(use-package foo
|
||||
:ensure
|
||||
:bind ("C-c r" . browse-at-remote))
|
||||
`(progn
|
||||
(use-package-ensure-elpa 'foo '(t) 'nil)
|
||||
(unless (fboundp 'browse-at-remote)
|
||||
(autoload #'browse-at-remote "foo" nil t))
|
||||
(ignore
|
||||
(bind-keys :package foo ("C-c r" . browse-at-remote))))))
|
||||
|
||||
(ert-deftest use-package-test/:bind*-1 ()
|
||||
(match-expansion
|
||||
(use-package foo :bind* ("C-k" . key))
|
||||
|
|
|
|||
Loading…
Reference in a new issue