diff options
| author | John Wiegley | 2017-12-09 16:28:49 -0800 |
|---|---|---|
| committer | John Wiegley | 2017-12-09 16:29:11 -0800 |
| commit | ec84ed0dfbeebb8683330449aa4e476debd2f72c (patch) | |
| tree | 717f0bbd1295ec79b925df7429a2e3de1e38f28a /test | |
| parent | 5a02d61ac61d52e55bf642006f75afce95270376 (diff) | |
| download | emacs-ec84ed0dfbeebb8683330449aa4e476debd2f72c.tar.gz emacs-ec84ed0dfbeebb8683330449aa4e476debd2f72c.zip | |
Fix a scoping issues with multiple occurrences of :bind
Fixes https://github.com/jwiegley/use-package/issues/585
Diffstat (limited to 'test')
| -rw-r--r-- | test/lisp/use-package/use-package-tests.el | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/lisp/use-package/use-package-tests.el b/test/lisp/use-package/use-package-tests.el index 5ba6db8a4b5..5aab6bb1170 100644 --- a/test/lisp/use-package/use-package-tests.el +++ b/test/lisp/use-package/use-package-tests.el | |||
| @@ -1769,6 +1769,21 @@ | |||
| 1769 | t)) | 1769 | t)) |
| 1770 | (bind-keys :package helm ("C-c d" . helm-mini))))) | 1770 | (bind-keys :package helm ("C-c d" . helm-mini))))) |
| 1771 | 1771 | ||
| 1772 | (ert-deftest use-package-test/585 () | ||
| 1773 | (match-expansion | ||
| 1774 | (use-package bug | ||
| 1775 | :bind (:map bug-map ("C-a" . alpha)) | ||
| 1776 | :bind (("C-b" . beta))) | ||
| 1777 | `(progn | ||
| 1778 | (unless (fboundp 'alpha) | ||
| 1779 | (autoload #'alpha "bug" nil t)) | ||
| 1780 | (unless (fboundp 'beta) | ||
| 1781 | (autoload #'beta "bug" nil t)) | ||
| 1782 | (bind-keys :package bug :map bug-map | ||
| 1783 | ("C-a" . alpha)) | ||
| 1784 | (bind-keys :package bug | ||
| 1785 | ("C-b" . beta))))) | ||
| 1786 | |||
| 1772 | (ert-deftest bind-key/:prefix-map () | 1787 | (ert-deftest bind-key/:prefix-map () |
| 1773 | (match-expansion | 1788 | (match-expansion |
| 1774 | (bind-keys :prefix "<f1>" | 1789 | (bind-keys :prefix "<f1>" |