From: John Wiegley Date: Fri, 8 Dec 2017 06:04:24 +0000 (-0800) Subject: Add another :bind test X-Git-Tag: emacs-29.0.90~1306^2~15^2~102 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ae0d243681;p=emacs.git Add another :bind test --- diff --git a/test/lisp/use-package/use-package-tests.el b/test/lisp/use-package/use-package-tests.el index 2f4a7b897c4..0b40fb582ad 100644 --- a/test/lisp/use-package/use-package-tests.el +++ b/test/lisp/use-package/use-package-tests.el @@ -680,6 +680,24 @@ (ignore (bind-keys :package foo ("C-c r" . browse-at-remote)))))) +(ert-deftest use-package-test/:bind-8 () + (match-expansion + (use-package foo + :ensure + :bind (:map foo-map + (("C-c r" . foo) + ("C-c r" . bar)))) + `(progn + (use-package-ensure-elpa 'foo '(t) 'nil) + (unless (fboundp 'foo) + (autoload #'foo "foo" nil t)) + (unless (fboundp 'bar) + (autoload #'bar "foo" nil t)) + (ignore + (bind-keys :package foo :map foo-map + ("C-c r" . foo) + ("C-c r" . bar)))))) + (ert-deftest use-package-test/:bind*-1 () (match-expansion (use-package foo :bind* ("C-k" . key))